MySQL相关事项

重启MySQL

service mysql stop
service mysql start

service mysql restart

创建MySQL用户并允许远程访问

CREATE USER 'terwer'@'%' IDENTIFIED BY '123456';
GRANT ALL PRIVILEGES ON *.* TO 'terwer'@'%' WITH GRANT OPTION;
flush privileges;

关闭防火墙

systemctl stop firewalld;
systemctl stop iptables;

posted @ 2022-09-28 02:18  灯塔下的守望者  阅读(13)  评论(0编辑  收藏  举报