MariaDB/MySQL broken on fresh installation
As usual I am trying to initialize MariaDB/MySQL on 14.2. Unfortunately can't run secure installation:
Code:
# mysql_install_db Code:
# mysqladmin -u root password 'password' log: Code:
160725 16:45:57 [ERROR] InnoDB: Could not find a valid tablespace file for 'mysql/innodb_table_stats'. See http://dev.mysql.com/doc/refman/5.6/en/innodb-troubleshooting-datadict.html for how to resolve the issue. |
Hi,
I think you miss to start the server after "mysql_install_db" Code:
/etc/rc.d/rc.mysqld start |
You should create the database
this way to get the right permissions. Code:
mysql_install_db --user=mysql |
Quote:
Code:
root@:/var/lib/mysql# mysql_install_db Code:
root@:/var/lib/mysql# /etc/rc.d/rc.mysqld start Code:
root@:/var/lib/mysql# /usr/bin/mysqladmin -u root password 'new-password' |
Quote:
Code:
root@:/var/lib/mysql# mysql_install_db --user=mysql |
maybe it's because you created the db first with wrong permissions: try removing the db directory and recreate it with the right permissions or change directly its permissions, then start the mysql daemon with the dedicated init script
Code:
rm -fR /var/lib/mysql Code:
$ head -27 /etc/rc.d/rc.mysqld | tail -16 |
Quote:
|
Thank you very much, Ponce
Quote:
|
All times are GMT -5. The time now is 05:57 AM. |