打开cmd: mysql -u root -p mysql>ALTER USER 'root'@'%' IDENTIFIED WITH mysql_native_password BY 'root'; 这样其它局域网的电脑就可以连上了。