MySQL said: Documentation #1045 - Access denied for user 'root'@'localhost' (using password: NO)

前端 未结 20 1499
失恋的感觉
失恋的感觉 2020-11-29 02:41

I installed xampp,but when I tried to run it I got an error as thus:

Error

MySQL said: Documentation

1045 - Access denied for user \'root\'@\'localhost

相关标签:
20条回答
  • 2020-11-29 03:33

    I'm using Linux Mint 18.2 of this writing. I had a similar issue; when trying to load myphpadmin, it said: "1045 - Access denied for user 'root'@'localhost' (using password: NO)"

    I found the file in the /opt/lampp/phpmyadmin directory. I opened the config.inc.php file with my text editor and typed in the correct password. Saved it, and launched it successfully. Profit!

    I was having problems with modifying folders and files, I had to change permission to access all my files in /opt/lampp/ directory. I hope this helps someone in the future.

    0 讨论(0)
  • 2020-11-29 03:34

    I had this problem after changing the password for the root user in phpMyAdmin. I know nothing about programming but I solved it by doing the following:

    1. Go to file C:\wamp\apps\phpmyadmin3.2.0.1\config.inc.php (I guess you would replace "wamp" with the name of your server if you're not using Wamp Server)

    2. Find the line $cfg['Servers'][$i]['password']='' and change this to

      $cfg['Servers'][$i]['password']='NO'
      
    3. Try opening phpMyAdmin again, and hopefully the message will now read "Access denied for user 'root'@'localhost' (using password: YES)

    4. Now change the password in the above line to 'yourpassword' (whatever you had set it to before)

    Hope this helps somebody.

    0 讨论(0)
  • 2020-11-29 03:34

    1045 - Access denied for user 'root'@'localhost' (using password: NO) solution: Step 1: Open Location of you wamp/xampp Step 2: Go to phpmyadmin Step 3: Open config.inc.php Step 4: Change the password to the password set for the MySql server and not anything else in this: $cfg['Servers'][$i]['password'] = '' Step 5: Restart all services /restart wamp/xampp.

    0 讨论(0)
  • 2020-11-29 03:35

    Go to the file C:\wamp\apps\phpmyadmin3.2.0.1\config.inc.php

    Find the line $cfg['Servers'][$i]['password']='' and change it to

    $cfg['Servers'][$i]['password']='root'
    

    where root is the name of the password you had set in this instance

    Hope this helps somebody.

    0 讨论(0)
  • 2020-11-29 03:35

    Check your MySQL Port number 3306.

    Is there any other MySQL Install in your system on same port ?

    If any installation found the change the port number to any number between 3301-3309 (except 3306)

    user name : root
    password : ' ' (Empty)

    0 讨论(0)
  • 2020-11-29 03:42

    Step one: Go to... C:\xampp\phpMyAdmin

    Step Two: Open the config.inc.php file

    Step Three: Locate the following information and change the password.

    /* Authentication type and info */
    $cfg['Servers'][$i]['auth_type'] = 'config';
    $cfg['Servers'][$i]['user'] = 'ENTER_YOUR_USER_NAME_HERE';
    $cfg['Servers'][$i]['password'] = 'ENTER_YOUR_PASS_HERE';
    $cfg['Servers'][$i]['extension'] = 'mysqli';
    $cfg['Servers'][$i]['AllowNoPassword'] = true;
    $cfg['Lang'] = '';
    
    0 讨论(0)
提交回复
热议问题