[Résolu]MySQL inactive inactif

Il me fallait faire un upgrade

su - mysql -s /bin/bash -c “/usr/bin/mysql_upgrade”

chaque message d’erreur donne la liste des tables à reparer

Il me restait d’autre repair à faire

repair table db use_frm;
repair table tables_priv use_frm;
repair table columns_priv use_frm;
repair table func use_frm;
repair table plugin use_frm;
repair table event use_frm;
repair table proc use_frm;

puis on refait un msql_upgrade

en cas de message d’erreur du type

Running ‘mysql_fix_privilege_tables’…
ERROR 1436 (HY000) at line 1151: Thread stack overrun: 6056 bytes used of a 131072 byte stack, and 128000 bytes needed. Use ‘mysqld --thread_stack=#’ to specify a bigger stack.
FATAL ERROR: Upgrade failed

il suffit de lancer mysqld comme ceci

su - mysql -s /bin/bash -c “/usr/sbin/mysqld --skip-grant-tables --thread_stack=256k”

et puis

pi@raspberrypi ~ $ sudo yunohost service start mysql
Succès ! Service ‘mysql’ démarré avec succès

\O/
:sunny: :smile:

1 Like