MySQL installation common error grooming

Source: Internet
Author: User

Question one: #mysql

ERROR 1045:access denied for user ' root ' @ ' localhost ' (using Password:no)

Problem Reason: initialization problem

WORKAROUND: Delete the data directory rebuild and reinitialize.


Question two:

When you install and reload the could not start the service MySQL error:0
cause: uninstalling MySQL does not completely delete the relevant files and services, you need to manually clear


Question three:

MAKE[2]: * * * No rule to do target '/usr/lib/libcurses.so ', needed by ' bin/ccmake '. Stop.

MAKE[1]: * * * [Source/cmakefiles/ccmake.dir/all] Error 2

Make: * * * [ALL] Error 2

Solution: Cp/usr/lib64/libcurses*/usr/lib


Problem four: There are no MySQL users and groups.

The MySQL server process is generally run as a non-root user, so as not to use the root user for security purposes.

[Email protected] bin]#/mysqld_safe--basedir=/usr/local/mysql--datadir=/usr/local/mysql/data
140704 16:10:10 mysqld_safe Logging to '/usr/local/mysql/data/db135.err '.
Chown: "MySQL": Invalid user

Start the MySQL server process, without the specified user, the server process will run as a MySQL user, if there is no such user error.


Question five:

[Email protected] mysql]#/scripts/mysql_install_db--user=mysql

Installing MySQL system tables ...
140704 16:13:37 [ERROR]./bin/mysqld:can ' t find file: './mysql/db.frm ' (errno:13)
error:1017 Can ' t find file: './mysql/db.frm ' (errno:13)
140704 16:13:37 [ERROR] Aborting

140704 16:13:37 [Note]./bin/mysqld:shutdown Complete


Installation of system tables failed! Examine the logs in
./data for more information.

Cause: permission error. Before installing, you need to change the installation target owner and group to MySQL, otherwise perform an error in initialization script.

Solution:chown-r mysql.mysql/appli


cation/mysql/


MySQL installation common error grooming

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.