参考官方文档:
https://dev.mysql.com/doc/mysql-yum-repo-quick-guide/en/
允许mysql远程连接:
参考:
https://www.cnblogs.com/davidgu/p/3706663.html
mysql> GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'MyNewPass4!' WITH GRANT OPTION;
Query OK, 0 rows affected, 1 warning (0.01 sec)
mysql> FLUSH PRIVILEGES;
Query OK, 0 rows affected (0.00 sec)
网友评论