Sto usando mac e ho installato mysql usando homebrew.cambia il motore predefinito mysql in innodb
brew install mysql
installazione abbastanza standard.
mysql> show engines;
+------------+---------+------------------------------------------------------------+--------------+------+------------+
| Engine | Support | Comment | Transactions | XA | Savepoints |
+------------+---------+------------------------------------------------------------+--------------+------+------------+
| MRG_MYISAM | YES | Collection of identical MyISAM tables | NO | NO | NO |
| CSV | YES | CSV storage engine | NO | NO | NO |
| MyISAM | DEFAULT | Default engine as of MySQL 3.23 with great performance | NO | NO | NO |
| InnoDB | YES | Supports transactions, row-level locking, and foreign keys | YES | YES | YES |
| MEMORY | YES | Hash based, stored in memory, useful for temporary tables | NO | NO | NO |
+------------+---------+------------------------------------------------------------+--------------+------+------------+
Vorrei che innodb fosse il motore di archiviazione predefinito. Cosa devo fare?
dov'è il mio file ini. Come faccio a trovare dove mysql cercherà il file ini. –
capito. /etc/my.cnf ha funzionato perché sto ottenendo mysql: variabile sconosciuta 'default-storage-engine = innodb' –
@Nadal: lo hai posizionato in '[mysqld]'? – Quassnoi