登录mysql,在mysql下输入如下命令:
GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY '123456' WITH GRANT OPTION; //允许用户root使用密码123456从任何主机连接到MYSQL服务器
登录mysql,在mysql下输入如下命令:
GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY '123456' WITH GRANT OPTION; //允许用户root使用密码123456从任何主机连接到MYSQL服务器