CentOS6.5下RPM方式安装mysql5.6.33的详细教程
程序员文章站
2023-12-19 16:01:16
1、mysql下载
下载地址:https://dev.mysql.com/downloads/mysql/5.6.html
下载以下安装包:...
下载以下安装包:...
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的详细教程,希望对大家有所帮助
推荐阅读
-
Centos7下使用yum安装mysql数据库的详细教程(增强版)
-
Linux下rpm方式安装mysql教程
-
CentOS6.5下RPM方式安装mysql5.6.33的详细教程
-
Centos7下使用yum安装mysql数据库的详细教程(增强版)
-
centos6.5 Linux下用安装包方式安装MySQL的步骤教程
-
crentso7.4下rpm方式安装MySQL5.7.22出现安装冲突conflicts的解决办法
-
mysql8.0.18下安装winx64的详细教程(图文详解)
-
Linux下Centos7安装Mysql5.7.19的详细教程
-
CentOS下RPM方式安装MySQL5.6教程
-
CentOS6.4 下安装SVN的详细教程(超详细)