虚拟机CentOS6.5 安装mysql
打开终端,进入管理员模式
执行以下命令
yum -y remove mysql-libs.x86_64
yum list | grep mysql
yum install -y mysql-server mysql mysql-deve
service mysqld start
service mysqld restart
chkconfig --list | grep mysqld
chkconfig mysqld on
chkconfig --list | grep mysql
mysqladmin -u root password '123456'
mysql -u root -p
CREATE USER 'root'@'%' IDENTIFIED BY '123456';
GRANT ALL ON *.* TO 'root'@'%';
FLUSH PRIVILEGES;
完毕!