Страница 1 из 1

незапускается mysq

Добавлено: 2015-07-20 14:34:26
nikodim
Установил mysq. При запуске вываливает ошибку:

Код: Выделить всё

150720 14:23:43 mysqld_safe Starting mysqld daemon with databases from /var/db/mysql
150720 14:23:43 [Warning] '--skip-locking' is deprecated and will be removed in a future release. Please use '--skip-external-locking' instead.
150720 14:23:43 [Warning] '--skip-locking' is deprecated and will be removed in a future release. Please use '--skip-external-locking' instead.
150720 14:23:43 [Warning] '--skip-locking' is deprecated and will be removed in a future release. Please use '--skip-external-locking' instead.
150720 14:23:43 [Note] Plugin 'FEDERATED' is disabled.
/usr/local/libexec/mysqld: Can't find file: './mysql/plugin.frm' (errno: 13)
150720 14:23:43 [ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it.
150720 14:23:43  InnoDB: Initializing buffer pool, size = 16.0M
150720 14:23:43  InnoDB: Completed initialization of buffer pool
InnoDB: The first specified data file /var/db/mysql/ibdata1 did not exist:
InnoDB: a new database to be created!
150720 14:23:43  InnoDB: Setting file /var/db/mysql/ibdata1 size to 10 MB
InnoDB: Database physically writes the file full: wait...
150720 14:23:43  InnoDB: Log file /var/db/mysql/ib_logfile0 did not exist: new to be created
InnoDB: Setting log file /var/db/mysql/ib_logfile0 size to 5 MB
InnoDB: Database physically writes the file full: wait...
150720 14:23:43  InnoDB: Log file /var/db/mysql/ib_logfile1 did not exist: new to be created
InnoDB: Setting log file /var/db/mysql/ib_logfile1 size to 5 MB
InnoDB: Database physically writes the file full: wait...
InnoDB: Doublewrite buffer not found: creating new
InnoDB: Doublewrite buffer created
InnoDB: Creating foreign key constraint system tables
InnoDB: Foreign key constraint system tables created
150720 14:23:44  InnoDB: Started; log sequence number 0 0
150720 14:23:44 [ERROR] /usr/local/libexec/mysqld: Can't find file: './mysql/host.frm' (errno: 13)
150720 14:23:44 [ERROR] Fatal error: Can't open and lock privilege tables: Can't find file: './mysql/host.frm' (errno: 13)
150720 14:23:44 mysqld_safe mysqld from pid file /var/db/mysql/****.****.****.pid ended
Установлено:

Код: Выделить всё

root@ns2:/usr/local/data # pkg info | grep mysql
mysql51-client-5.1.73_3        Multithreaded SQL database (client)
mysql51-server-5.1.73_2        Multithreaded SQL database (server)
Порты обновлены, ставил 5.5 то же самое. Раньше ставил, все без "бубна" становилось.

незапускается mysq

Добавлено: 2015-07-20 21:53:05
Bayerische
Непонятно, вы на пустое место поставили? Тогда надо создать с помощью mysql_install_db.

незапускается mysq

Добавлено: 2015-07-21 8:46:27
nikodim
Bayerische, все постисталы были зделаны, база появилась, даже при выполнении mysql_install_db вываливается такой лог.

незапускается mysq

Добавлено: 2015-07-24 20:29:00
nikodim
Разобрался! Посыпаю голову пеплом. Утилита mysql_install_db запускалась от имени рута!!!! Права на файлы в папке /var/db/mysql тоже root:root. Поменял права на mysql:mysql и произошло чудо, все поднялось