MySQL installation error solved a case

Source: Internet
Author: User

Error log:

[[email protected] scripts]# tail /var/log/mysqld.loginnodb: apply batch  Completed2014-12-08 11:01:37 15721 [note] innodb: 128 rollback segment (s)  are active.2014-12-08 11:01:37 15721 [Note] InnoDB: Waiting for  purge to start2014-12-08 11:01:37 15721 [note] innodb: 5.6.12 started;  log sequence number 16006072014-12-08 11:01:37 15721 [note] server  hostname  (bind-address):  ' * ';  port: 33062014-12-08 11:01:37 15721 [ note] ipv6 is available.2014-12-08 11:01:37 15721 [note]   -   ':: '  resolves to  ':: ';2014-12-08 11:01:37 15721 [note] server  socket created on ip:  ':: '. 2014-12-08 11:01:37 15721 [error] fatal  error: can ' T open and lock privilege tables: table  ' mysql.user '  doesn ' t exist141208  11:01:37 mysqld_safe mysqld from pid file /var/lib/mysql/HKBO.pid  Ended

Cause of Error:

The DataDir path specified by mysql_install_db is/home/tools/mysql/data, and MY.CNF is the default path

So modify the/ETC/MY.CNF path and he'll be the same.

[Email protected] scripts]# VIM/ETC/MY.CNF
[Mysqld]

..........
Datadir=/home/tools/mysql/data
Socket=/var/lib/mysql/mysql.sock
User=mysql
..........

Then re-mysql_install_db, problem solving

[[email protected] scripts]#/etc/init.d/mysqld start
Starting MySQL. success!

This article is from the "it--Brother" blog, please make sure to keep this source http://402753795.blog.51cto.com/10788998/1764136

MySQL installation error solved a case

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.