简体   繁体   中英

Mysql access denied error 1045

I'm trying to connect to mysql on redhat 6.4 (On VM), but I'm getting the below error using this command line :

mysql -u root

ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)

Coudl you help with this please ?

Thank's Best regards,

我会尝试包含密码

   mysql --user=user_name --password db_name

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM