#1045 - Access denied for user 'root'@'localhost' (using password: YES)

前端 未结 23 3407
刺人心
刺人心 2020-11-30 01:39

This might seem redundant but I was unable to find a correct solution.

I was unable to login to mysql using the mysql console.It is asking for a password and I have

23条回答
  •  野趣味
    野趣味 (楼主)
    2020-11-30 02:28

    1. mysql -u root -p
    2. UPDATE mysql.user SET Password=PASSWORD('mypass') WHERE User='root';
    3. Flush the privileges: FLUSH PRIVILEGES;
    4. Exit by typing: Exit
    5. Edited line in the file config.inc.php with the new root password: $cfg['Servers'][$i]['password'] = 'mypass'

    6. be succss

提交回复
热议问题