centos 6.5 安裝 mysql5.6html
從mysql官網下載安裝包 MySQL-5.6.35-1.el6.i686.rpm-bundle.tarnode
1.檢查系統是否默認安裝mysqlmysql
rpm -qa | grep -i mysqllinux
2.若有安裝默認的,先卸載c++
rpm -qa |grep -i mysql|xargs rpm -e --nodepssql
3.刪除默認數據庫的數據文件數據庫
rm -rf /var/lib/mysql/centos
4.安裝mysqlide
rpm -ivh MySQL-server-5.6.35-1.el6.i686.rpm
rpm -ivh MySQL-devel-5.6.35-1.el6.i686.rpm
rpm -ivh MySQL-client-5.6.35-1.el6.i686.rpmrest
5.設置root密碼
service mysql start
默認密碼在 /root/.mysql_secret下面
運行 /usr/bin/mysql_secure_installation
service mysql restart
6.設置遠程鏈接
grant all privileges on *.* to 'root'@'%' identified by '123456' with grant option;
flush privileges;
若有遇到依賴庫缺失的問題
yum install libaio.so.1
yum install glibc.i686
yum install libstdc++.i686
yum install numactl
yum install libnuma.so.1
yum install libncurses.so.5
如遇到版本依賴庫版本衝突的問題
vi /etc/yum.conf
在 [main] 下面添加 (避免升級的時候升級centos系統內核)
exclude=kernel*
exclude=centos-release*
執行
yum update
參考連接
http://www.centoscn.com/CentOS/config/2014/1030/4026.html
http://raksmart.idcspy.com/781
http://www.linuxidc.com/Linux/2015-01/111413.htm