rpm -qa | grep mysql
yum list installed | grep mysql
yum remove mysql-community-client.x86_64 -y
wget dev.mysql.com/get/mysql-community-release-el6-5.noarch.rpm
yum install mysql-community-release-el6-5.noarch.rpm
yum repolist enabled | grep mysql
yum install mysql-community-server -y
service mysqld start
mysql
use mysql
delete from user;
grant all privileges on *.* to 'root'@'%' identified by '123456' with grant option;
flush privileges;
exit
vim /etc/my.cnf
[*****]
skip-name-resolve
chkconfig
grep "password" /var/log/mysqld.log
[mysqld]
character-set-server=utf8
[client]
default-character-set=utf8