MySQL 8 - The designated data directory /var/lib/mysql/ is unusable. You can remove all files that the server added to it
Материал из Wiki - Iphoster - the best ever hosting and support. 2005 - 2024
MySQL 8 - The designated data directory /var/lib/mysql/ is unusable. You can remove all files that the server added to it
Ошибка при выполнении
# mysqld --initialize --user=mysql --basedir=/usr --datadir=/var/lib/mysql [ERROR] [MY-013236] [Server] The designated data directory /var/lib/mysql/ is unusable. You can remove all files that the server added to it.
Решение - очистить файл auto.cnf:
# rm -rf /var/lib/mysql/auto.cnf
и перезапустить команду заново
# mysqld --initialize --user=mysql --basedir=/usr --datadir=/var/lib/mysql