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