Centos6.5 install MySQL cannot start, should install Mysql-server

Source: Internet
Author: User
Tags mysql in

Installing MySQL in CentOS is as simple as the following commands

Yum install MySQL installed,

Run MySQL ERROR 2002 (HY000): Can ' t connect to local MySQL server through socket '/var/lib/mysql/mysql.sock ' (2). There is an article that is the issue of authority, and then the authority into 777 do not. Said it didn't start MySQL. Then start it.

[[Email protected] mysql]# service MySQL start mysql:unrecognized Service No

/etc/rc.d/init.d/mysqld Start-bash:/etc/rc.d/init.d/mysqld:no such file or directory still does not work.

Someone is pretending to be a mysql-server. Remove MySQL with yum remove.

Then Yum install mysql-server

It's all packed. Start

[[Email protected] mysql]# service MySQL start mysql:unrecognized service

Then the /etc/rc.d/init.d/mysql starts .

/etc/init.d/mysqld start Initializing mysql database:installing mysql system tables ... 110112 15:24:06 [Warning] option ' max_join_size ': Unsigned value 18446744073709551615 adjusted to 4294967295 110112 15:24: [Warning] option ' max_join_size ': Unsigned value 18446744073709551615 adjusted to 4294967295 OK Filling help tables ... Www.111cn.net
110112 15:24:06 [Warning] option ' max_join_size ': Unsigned value 18446744073709551615 adjusted to 4294967295 110112 15:24: [Warning] option ' max_join_size ': Unsigned value 18446744073709551615 adjusted to 4294967295 OK

To start mysqld at boot time with the to copy Support-files/mysql.server to the right place for your system

REMEMBER to SET A PASSWORD for the MySQL root USER! To does, start the server, then issue the following commands:/usr/bin/mysqladmin-u root password ' New-password '/US R/bin/mysqladmin-u root-h localhost.localdomain password ' new-password '

Alternatively you can run:/usr/bin/mysql_secure_installation

Which would also give you the option of removing the test databases and anonymous user created by default. This is the strongly recommended for production servers.

See the Manual for more instructions.

You can start the MySQL daemon with:www.111cn.net cd/usr; /usr/bin/mysqld_safe &

You can test the MySQL daemon with mysql-test-run.pl CD mysql-test; Perl mysql-test-run.pl

Problems with The/usr/bin/mysqlbug script!

The latest information about MySQL was available on the web-support MySQL by buying support/licenses at [OK] Star Ting MySQL: [OK]

Blog Source http://www.cnblogs.com/xiaobo-Linux/QQ463431476

Add it to self-priming. Province of trouble

Chkconfig mysqld on

Look, this is mysqld, not MySQL.

Run MySQL, please.

[[email protected]/]# MySQL Welcome to the MySQL monitor. Commands End With; or G. Your MySQL Connection ID is 2 Server version:5.0.77 Source distribution

Type ' help ', ' or ' h ' for help. Type ' C ' to clear the buffer.

Try again [[email protected] mysql]# service mysqld restart stopping MySQL: [OK] starting MySQL: [OK]

It's all OK!

Centos6.5 installation of MySQL does not start, you should install Mysql-server

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.