找到 my.cnf 看看是否有需要跳过密码验证
#skip-grant-tables=1 mysql 进去 use mysql;
update user set authentication_string=PASSWORD(‘MyPassword‘) where user="root"; desc user;
//create user ‘173‘@‘%‘ identified by ‘mima‘ password expire never;//grant all privileges on 173.* to ‘173‘@‘%‘;
时间: 2024-11-07 05:12:48