First time to start MySQL times wrong

Source: Internet
Author: User
Tags mysql manual

[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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.