时间:2021-07-01 10:21:17 帮助过:22人阅读
yum -y install libaio
wget http://repo.mysql.com/mysql80-community-release-el7-1.noarch.rpm
yum localinstall mysql80-community-release-el7-1.noarch.rpm
yum repolist enabled |grep "mysql.*-community.*"
mysql-connectors-community/x86_64 MySQL Connectors Community 203
mysql-tools-community/x86_64 MySQL Tools Community 129
mysql80-community/x86_64 MySQL 8.0 Community Server 265
yum install mysql-community-server -y
systemctl start mysqld
systemctl status mysql
grep password /var/log/mysqld.log
mysql -uroot -p
Enter password:
Server version: 8.0.25-----(MySQL版本)
......
Type ‘help;‘ or ‘\h‘ for help. Type ‘\c‘ to clear the current input statement.
mysql>
mysql> ALTER USER ‘root‘@‘localhost‘ IDENTIFIED BY ‘你的密码‘;
mysql> select host,user,authentication_string,plugin from user;
mysql> update user set host=‘%‘ where user=‘root‘;
mysql> flush privileges;
yum安装8.0mysql数据库
标签:mysql数据库 查看 gre stat put get use clear serve