当前位置:网站首页>Set MySQL as externally connectable

Set MySQL as externally connectable

2022-06-11 09:20:00 Asurplus、

MySQL After successful installation , External connections are not allowed by default , We can make the local MySQL It is externally connectable

  • 1、 Get into MySQL
mysql -uroot -p

Input password , Get into MySQL

  • 2、 Switch database
use mysql;
  • 3、 Change to externally connectable
update user set host = '%' where user = 'root';
  • 4、 Refresh now
FLUSH PRIVILEGES;

If you find deficiencies in reading , Welcome to leave a message !!!

原网站

版权声明
本文为[Asurplus、]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/03/202203020507001891.html