1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
| cd /data
wget http://repo.mysql.com/mysql-apt-config_0.8.17-1_all.deb
apt-get install ./mysql-apt-config_0.8.17-1_all.deb
apt-get update
apt-get install mysql-server
systemctl status mysql
systemctl enable mysql
mysql -u root -p
use mysql;
select user, host from user;
update user set host = 'localhost' where user ='root'; update user set host = '%' where user ='root';
ALTER USER 'root'@'%' IDENTIFIED WITH mysql_native_password BY 'password';
ALTER USER 'root'@'%' IDENTIFIED BY 'password';
create database wordpress;
|