- mysql -
- mysql - mysql yum list installed | grep mysql mysql yum -y remove mysql-libs.x86_64 CentOSrpm, # wget dev.mysql.com/get/mysql-community-release-el6-5.noarch.rpm # yum localinstall mysql-community-release-el6-5.noarch.rpm # yum repolist all | grep mysql # yum-config-manager --disable mysql55-community # yum-config-manager --disable mysql56-community # yum-config-manager --enable mysql57-community-dmr # yum repolist enabled | grep mysql mysql yum install mysql-community-server mysql service mysqld start mysql, chkconfig --list | grep mysqld chkconfig mysqld on mysql 5.7 MySQL ( /etc/my.cnf ), [mysqld] skip-grant-tables Mysql service mysqld restart,mysql mysql> update mysql.user set authentication_string=password('root') where user='root' and Host = 'localhost'; mysql> flush privileges; mysql> quit; /etc/my.cnf , mysql:service mysql restart mysql -u root -p mysql.sockmysql, /var/log/mysql.log , ,( 128M ) join_buffer_size = 32M phpmysql : SQLSTATE[HY000] [2002] No such file or directory 