[Email protected]~]#/usr/local/webserver/mysql/bin/mysql_install_db--basedir=/usr/local/webserver/mysql-- Datadir=/data0/mysql/3306/data--user=mysql
Installing MySQL system tables ...
Error:1 Can ' t create/write to file '/tmp/#sql_2b11_0. MYI ' (errcode:13)
120807 17:40:27 [ERROR] aborting
120807 17:40:27 [Note]/usr/local/webserver/mysql/libexec/mysqld:shutdown complete
Installation of system tables failed! Examine the logs in
/data0/mysql/3306/data for more information.
You can try to start the mysqld daemon with:
shell>/usr/local/webserver/mysql/libexec/mysqld--skip-grant &
and use the command line Tool/usr/local/webserver/mysql/bin/mysql
To connect to the MySQL database and look at the grant tables:
shell>/usr/local/webserver/mysql/bin/mysql-u Root MySQL
mysql> Show Tables
Try ' mysqld--help ' if you had problems with paths. Using--log
Gives you a log in/data0/mysql/3306/data the May helpful.
Consult the MySQL manual section
' Problems running mysql_install_db ', and the manual section that
Describes problems on your OS. Another information source is the
MySQL Email Archives available at http://lists.mysql.com/.
Please check the above before mailing us! And remember, if
You do mail us, you must use The/usr/local/webserver/mysql/scripts/mysqlbug script!
[Email protected] ~]#
Workaround:
/tmp directory does not have write permission, use chmod 777/tmp
First time to start MySQL times wrong