mysql MySql局域网配置 mysql -uroot -p use mysql; // 代表的是所有的数据库 root:代表的是数据库访问账号,123456:密码 GRANT ALL PRIVILEGES ON * .* TO 'root'@'%' IDENTIFIED BY '123456' WITH GRANT OPTION; // 刷新授权 flush privileges;