修改密码命令

set password for root@localhost = password('admin@123');

连接命令

ln -s /usr/local/mysql/bin/mysql /usr/bin

允许远程连接mysql配置

update user set host='%' where user='root';

如果出现错误:ERROR 1175 (HY000): You are using safe update mode and you tried to update a table without a WHERE that uses a KEY column

则输入 SET SQL_SAFE_UPDATES = 0; 然后再次update

最后别忘了

flush privileges;

 

相关文章:

  • 2022-02-08
  • 2021-10-03
  • 2022-12-23
  • 2021-12-19
  • 2021-07-11
  • 2021-06-17
猜你喜欢
  • 2021-12-19
  • 2022-02-21
  • 2022-12-23
  • 2021-11-28
  • 2021-05-23
相关资源
相似解决方案