《MYSQL教程CentOS6.5下RPM方式安装mysql5.6.33的详细教程》要点:
本文介绍了MYSQL教程CentOS6.5下RPM方式安装mysql5.6.33的详细教程,希望对您有用。如果有疑问,可以联系我们。
1、mysql下载MYSQL学习
下载地址:https://dev.mysql.com/downloads/mysql/5.6.html<br>下载以下安装包:MYSQL学习
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,有则移除MYSQL学习
rpm -qa|grep -i mysql mysql-libs-5.1.66-2.el6_3.x86_64 yum -y remove mysql-libs*
3、安装mysql5.6MYSQL学习
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及设置暗码MYSQL学习
/usr/bin/mysql_install_db service mysql start cat /root/.mysql_secret mysql -uroot -p初始暗码 set PASSWORD=PASSWORD('123456'); exit
5、开启远程访问MYSQL学习
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、设置开机自启动MYSQL学习
chkconfig mysql on
7、优化my.cnf配置MYSQL学习
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的详细教程,希望对大家有所赞助,如果大家有任何疑问请给我留言,小编会及时回复大家的.在此也非常感谢大家对维易PHP网站的支持!MYSQL学习
欢迎参与《MYSQL教程CentOS6.5下RPM方式安装mysql5.6.33的详细教程》讨论,分享您的想法,维易PHP学院为您提供专业教程。
转载请注明本页网址:
http://www.vephp.com/jiaocheng/9888.html