sudo apt-get update
sudo apt-get upgrate
sudo apt install mysql-server
设置运行远程访问
修改:sudo vim /etc/mysql/mysql.conf.d/mysqld.cnf
用# 注释掉bind-address = 127.0.0.1
进入mysql创建用户
mysql -u root -p
CREATE USER 'test'@'%' IDENTIFIED BY '12345678';
GRANT ALL PRIVILEGES ON *.* TO 'test'@'%' WITH GRANT OPTION;
FLUSH PRIVILEGES;
退出mysql
systemctl restart mysql
标签:20.4,GRANT,PRIVILEGES,sudo,apt,msyql,mysql,ubuntu From: https://www.cnblogs.com/lzyyyds/p/17436517.html