mysql 提示Host ‘DESKTOP-FJ1G3EV‘ is not allowed to connect to this MysQL server 5.7

點擊mysql client show databases 顯示所有數據庫 切換到mysql; use mysql 修改配置 update user set host = ‘%’ where user =‘root’; host修改完成後執行以下命令使配置立即生效。 flush privileges; 然後在查看配置 select host from user where user=‘root’;
相關文章
相關標籤/搜索