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

前端 未结 23 3404
刺人心
刺人心 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:21

    After I updated my MySql, I was getting the same error message. It turned out that after installing a different version on MySql, inside the my.ini, the port was different. Previous MySql version had port 3306 but the new one have port 3308. Check your MySql my.ini, if it is different use the port from .ini in your connection.

    0 讨论(0)
  • 2020-11-30 02:22

    The problem was I have 2 instances of Mysql installed and I didn't know the password for both instances.Just check if port 80 is used by any of the programs. This is what I did

    1.Quit Skype because it was using port 80.(Please check if port 80 is used by any other program).

    2.Search for Mysql services in task manager and stop it.

    3.Now delete all the related mysql files.Make sure you delete all the files.

    4.Reinstall

    0 讨论(0)
  • 2020-11-30 02:22

    This process is quite simple in correcting the the error. What is happening is a failure to connect to phpMyAdmin. In order to fix the problem you simply need to provide the correct password to the system phpMyAdmin configuration file located in apps\phpMyadmin\config.ini.php 1. the root should already be set as user 2. Insert the password between ' ' and that it.

    If you still have problems then this means that the user name and /or the password need to be updated or inserted into the DB. to do this use the command line tool and do an update.

    UPDATE mysql.user SET Password=PASSWORD('Johnny59 or whatever you want to use') WHERE User='root';

    0 讨论(0)
  • 2020-11-30 02:23

    if multiple myslq running on same port no enter image description here

    Right click on wamp and test port 3306 if its wampmysqld64 its correct else change port no and restart server

    0 讨论(0)
  • 2020-11-30 02:24

    Go to 'config.inc.php'. Write your password over here - $cfg['Servers'][$i]['password'] =''

    0 讨论(0)
  • 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

    0 讨论(0)
提交回复
热议问题