mysql 设置ROOT密码登录及允许所有IP访问。(开发)

 alter user 'root'@'%' identified by '12345678' password expire never;
 alter user 'root'@'%' identified with mysql_native_password by '12345678';
 update user set host='%' where user='root';

flush privileges;

你可能感兴趣的:(Extension,mysql,数据库)