1. 程式人生 > >Linux mysql Error Log

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;