关于我们

质量为本、客户为根、勇于拼搏、务实创新

< 返回新闻公共列表

centos6下yum安装mysql8.0

发布时间:2019-10-10 17:21:05

先删除mysql
yum remove mysql-community-server -y
rm -rf /usr/lib64/mysql
rm -rf /usr/lib/mysql
rm -rf /usr/share/mysql
rm -rf /var/lib/mysql
安装mysql8.0
wget https://dev.mysql.com/get/mysql80-community-release-el6-1.noarch.rpm
rpm -ivh mysql80-community-release-el6-1.noarch.rpm
yum install mysql-server
service mysqld start
安装成功后查看mysql版本
mysqladmin -V
启动mysql
service mysqld start
查看mysql默认密码
cat /var/log/mysqld.log
登录mysql
mysql -uroot -p
密码
修改密码
ALTER USER 'root'@'localhost' IDENTIFIED BY 'chiakAwd&*lw1259';
set global validate_password.policy=0;
set global validate_password.length=1;
flush privileges;



/template/Home/Zkeys/PC/Static