Linux mysql Error Log

navicate远程连接数据库报错

1045 access denied for user ‘test’@‘localhost’ using password yes

linux mysql添加用户,删除用户,以及用户权限:
https://www.cnblogs.com/zhchoutai/p/6929103.html
解决方案:

  • mysql -u root -p
    Enter password:
    Welcome to the MySQL monitor. Commands end with ; or \g.
    ……
  • mysql> CREATE USER ‘test’@’%’ IDENTIFIED BY ‘123456’;
  • mysql> grant all privileges on testDB.* to ‘test’@’%’ identified by ‘123456’;
  • mysql> flush privileges;

猜你喜欢

转载自blog.csdn.net/weixin_33127753/article/details/84289311