1、rpm -ivh MySQL-server-5.6.19-linux_glibc2.5.x86_64.rpm(这是复制过来的,用Tab键自动补齐吧)
2、rpm -ivh MySQL-client-5.6.19-linux_glibc2.5.x86_64.rpm 

出现问题一:
file /usr/share/man/man1/mysqlshow.1.gz from install of MySQL-client-4.1.16-1.glibc23
conflicts with file from package mysql-3.23.54a-11

----------------------------------------------------------

解决方案:卸载软件原因有包冲突。解决冲突:
 
yum -y remove mysql-libs-*
yum -y remove mysql-libs-5.1.61*        -y的意思就是不用询问是否remove
卸载完成之后,再安装MySQL成功了,呵呵

 
出现问题二:
Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
--------------------------------------------------------
解决方案:
chown -R mysql:mysql /var/lib/mysql

 

出现问题三:
第一次如何登陆linux 的mysql
mysql -uroot -p
需要输入密码
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
------------------------------------
解决方案:
在这个目录下找密码/root/.mysql_secret
cd /root
ls -la
cat .mysql_secret

登陆进去重新设置密码
set password=password('admin');

-----------------------------------
其他问题:

/etc/init.d/mysql stop
/etc/init.d/mysql start 开启mysql
查看一下这个目录cd /etc/rc.d/init.d/
查看mysql启动状态/etc/rc.d/init.d/mysql status

 

 

-----------------------------------------------------