赞
踩
1.1点击进入网址:https://downloads.mysql.com/archives/community/
我这里下在的是5.6版本的
2.1如果没有xftp工具点击下载链接:xshell和xftp下载
提取码:q3s2
2.2上传后通过命令解压至 /usr/local/ 下
[root@hadoop103 ~]# tar -zxvf mysql-5.6.44-linux-glibc2.12-x86_64.tar.gz -C /usr/local/
[root@hadoop103 local]# mv mysql-5.6.44-linux-glibc2.12-x86_64 mysql
[root@hadoop103 local]# useradd mysql
[root@hadoop103 local]# chown -R mysql:mysql mysql/
[root@hadoop103 mysql]# scripts/mysql_install_db --user=mysql
[root@hadoop103 mysql]# yum -y install autoconf
[root@hadoop103 mysql]# yum remove mariadb-libs
[root@hadoop103 mysql]# ll data
[root@hadoop103 mysql]# cp support-files/mysql.server /etc/init.d/mysql
[root@hadoop103 mysql]# service mysql start
[root@hadoop103 mysql]# bin/mysqladmin -u root password '123456'
[root@hadoop103 mysql]# bin/mysql -uroot -p123456
mysql>GRANT ALL PRIVILEGES ON *.* TO 'root'@'%'IDENTIFIED BY '123456' WITH GRANT OPTION;
Query OK,0rows affected,1 warning (0.00 sec)
mysql>flush privileges;
Query OK,0rows affected,1 warning (0.00 sec)
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。