CentOS6.5下RPM方法裝置mysql5.6.33的具體教程。本站提示廣大學習愛好者:(CentOS6.5下RPM方法裝置mysql5.6.33的具體教程)文章只能為提供參考,不一定能成為您想要的結果。以下是CentOS6.5下RPM方法裝置mysql5.6.33的具體教程正文
1、mysql下載
下載地址:https://dev.mysql.com/downloads/mysql/5.6.html<br>下載以下裝置包:
MySQL-client-5.6.33-1.el6.x86_64.rpm MySQL-devel-5.6.33-1.el6.x86_64.rpm MySQL-server-5.6.33-1.el6.x86_64.rpm
2、檢查能否曾經裝置了mysql,有則移除
rpm -qa|grep -i mysql mysql-libs-5.1.66-2.el6_3.x86_64 yum -y remove mysql-libs*
3、裝置mysql5.6
rpm -ivh MySQL-client-5.6.33-1.el6.x86_64.rpm rpm -ivh MySQL-devel-5.6.33-1.el6.x86_64.rpm rpm -ivh MySQL-server-5.6.33-1.el6.x86_64.rpm cp /usr/share/mysql/my-default.cnf /etc/my.cn
4、初始化MySQL及設置暗碼
/usr/bin/mysql_install_db service mysql start cat /root/.mysql_secret mysql -uroot -p初始暗碼 set PASSWORD=PASSWORD('123456'); exit
5、開啟長途拜訪
mysql -uroot -p123456 use mysql; update user set password=password('123456') where user='root'; update user set host='%' where user='root' and host='localhost'; flush privileges; exit
6、設置開機自啟動
chkconfig mysql on
7、優化my.cnf設置裝備擺設
vim /etc/my.cnf [mysqld] port = 3306 default-storage-engine = InnoDB lower_case_table_names = 1 max-connections=3000 character_set_server=utf8 [mysql] default-character-set=utf8
以上所述是小編給年夜家引見的CentOS6.5下RPM方法裝置mysql5.6.33的具體教程,願望對年夜家有所贊助,假如年夜家有任何疑問請給我留言,小編會實時答復年夜家的。在此也異常感激年夜家對網站的支撐!