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;

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章