- 论坛徽章:
- 3
|
[root@dp tmp]# /usr/bin/mysql_install_db --user=mysql
Installing MySQL system tables...
ERROR: 1 Can't create/write to file '/hdata4/mysql/mysql/db.MYI' (Errcode: 13)
150910 10:34:01 [ERROR] Aborting
150910 10:34:01 [Note] /usr/libexec/mysqld: Shutdown complete
Installation of system tables failed! Examine the logs in
/hdata4/mysql for more information.
You can try to start the mysqld daemon with:
shell> /usr/libexec/mysqld --skip-grant &
and use the command line tool /usr/bin/mysql
to connect to the mysql database and look at the grant tables:
shell> /usr/bin/mysql -u root mysql
mysql> show tables
Try 'mysqld --help' if you have problems with paths. Using --log
gives you a log in /hdata4/mysql that may be helpful.
Please consult the MySQL manual section
'Problems running mysql_install_db', and the manual section that
describes problems on your OS. Another information source are the
MySQL email archives available at http://lists.mysql.com/.
Please check all of the above before mailing us! And remember, if
you do mail us, you MUST use the /usr/bin/mysqlbug script!
[root@dp tmp]# |
|