mysqlで下記のようなエラーが出た場合

mysql: [Warning] Using a password on the command line interface can be insecure.

ERROR 1045 (28000): Access denied for user 'ユーザー名'@'ホスト' (using password: YES)

 

 
 
ユーザー権限を変更する。

 

GRANT select,update,insert,insert on DB.* to 'ユーザー名'@'ホスト''identified by 'パスワード';

set password for ユーザー名@'ホスト' = password('パスワード');