473,320 Members | 1,926 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

How to fix "Access denied for user 'root'@'localhost'" for PHPMYADMIN?

Installed XAMPP

I get

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


I know that I am supposed to change settings in config.inc.php but having tried changing password (with and without information) I still get the error.


I had when first installed phpmyadmin changed the password to the word biscuit but even entering the password in the config.inc.php does not work.


I even tried changing auth type to (http) as I read some place else that should bring in the browser a page for me to enter password but i still only got the #1045 error.

When doing all the steps I tried to stop and restart but again just getting the error.

P.S - the sofware is installed on my Laptop as I am trying to learn PHP/MYSQL

Below is my file

-----

Expand|Select|Wrap|Line Numbers
  1. <?php
  2. /*
  3. * This is needed for cookie based authentication to encrypt password in
  4. * cookie
  5. */
  6. $cfg['blowfish_secret'] = 'xampp'; /* YOU SHOULD CHANGE THIS FOR A MORE SECURE COOKIE AUTH! */
  7.  
  8. /*
  9. * Servers configuration
  10. */
  11. $i = 0;
  12.  
  13. /*
  14. * First server
  15. */
  16. $i++;
  17.  
  18. /* Authentication type and info */
  19. $cfg['Servers'][$i]['auth_type'] = 'config';
  20. $cfg['Servers'][$i]['user'] = 'root';
  21. $cfg['Servers'][$i]['password'] = 'biscuit';
  22. $cfg['Servers'][$i]['AllowNoPassword'] = true;
  23.  
  24. /* Server parameters */
  25. $cfg['Servers'][$i]['host'] = 'localhost';
  26. $cfg['Servers'][$i]['connect_type'] = 'tcp';
  27. $cfg['Servers'][$i]['compress'] = false;
  28.  
  29. /* Select mysqli if your server has it */
  30. $cfg['Servers'][$i]['extension'] = 'mysqli';
  31.  
  32. /* User for advanced features */
  33. $cfg['Servers'][$i]['controluser'] = 'pma';
  34. $cfg['Servers'][$i]['controlpass'] = '';
  35.  
  36. /* Advanced phpMyAdmin features */
  37. $cfg['Servers'][$i]['pmadb'] = 'phpmyadmin';
  38. $cfg['Servers'][$i]['bookmarktable'] = 'pma_bookmark';
  39. $cfg['Servers'][$i]['relation'] = 'pma_relation';
  40. $cfg['Servers'][$i]['table_info'] = 'pma_table_info';
  41. $cfg['Servers'][$i]['table_coords'] = 'pma_table_coords';
  42. $cfg['Servers'][$i]['pdf_pages'] = 'pma_pdf_pages';
  43. $cfg['Servers'][$i]['column_info'] = 'pma_column_info';
  44. $cfg['Servers'][$i]['history'] = 'pma_history';
  45. $cfg['Servers'][$i]['designer_coords'] = 'pma_designer_coords';
  46.  
  47. /*
  48. * End of servers configuration
  49. */
  50.  
  51. /*
  52. * Directories for saving/loading files from server
  53. */
  54. $cfg['UploadDir'] = '';
  55. $cfg['SaveDir'] = '';
  56.  
  57. $cfg['AllowAnywhereRecoding'] = true;
  58. $cfg['DefaultCharset'] = 'utf-8';
  59. $cfg['DefaultLang'] = 'en-utf-8';
  60. $cfg['DefaultConnectionCollation'] = 'utf8_general_ci';
  61.  
  62. $cfg['MySQLManualBase'] = 'http://dev.mysql.com/doc/refman/5.1/en';
  63. $cfg['MySQLManualType'] = 'searchable';
  64.  
  65. ?>
Jan 15 '11 #1
1 3455
Dormilich
8,658 Expert Mod 8TB
for some reason, the password doesn’t get send while trying to connect.

PS. can’t remember I’d change anything in the phpMyAdmin settings when installing it on my system (although that requires me to pass the login/password each time myself).
Jan 15 '11 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

6
by: Don Seckler | last post by:
I am trying to use phpmyadmin to make a new table. Here's the query it created. What am I doing wrong? SQL-query : CREATE TABLE `News` ( `ID` INT( 11 ) DEFAULT '0' NOT NULL AUTO_INCREMENT...
3
by: JC-Atl | last post by:
I am trying to do this in the SQL page of phpMyAdmin, but I get a syntax error. Can someone please help me out ? Thanks for your time and efforts! JC INSERT INTO `Test` ( `pkey` , `col2` , ...
1
by: marknewbery | last post by:
Hi, I have been trying to get a php, mySQL install to work and talk together on Windows XP SP2 with IIS. So far I installed and received a responce from php(V5 - manual install) though the ...
0
by: NewbieSupreme | last post by:
I'm using PHPMyAdmin on an Apache2Triad install (latest version; 5.x.x, which installs PHP5 and PHPMyAdmin 2.8 as well). In Access, I exported a table to a text file, tab-delimited, text qualifyer...
5
by: Marcus | last post by:
Hello, I am having a problem with a query in phpMyAdmin... it works fine on my localhost, but the exact same query produces an error in phpMyAdmin on my server: localhost: PHP 4.3.11, MySQL...
1
by: thecoolone | last post by:
I had installed FoxServ which included php /mysql / apache / perl and python. I wont be using perl and python at all. I tried backing mysql database from another machine using mysqldump but then i...
0
by: hugoboss | last post by:
Hi folks, Well i've got php v5.2.1 installed, also MySQL v5.0.37 running perfectly on Vista using IIS 7, however when i unzip phpmyadmin to wwwroot and in my browser type in...
2
by: pfletch750 | last post by:
I am running Vista Ultimate on a Asus P5LD2 motherboard with a 2.8 GHz Intel D CPU, 3 GB of memory and lots of disk space. No problems with other applications or services. IIS 7.0 is installed and...
3
by: dlaminigp | last post by:
i''ve dowloaded and installed the latest version of the XAMPP package. when i try acess to phpmyadmin page it gives an error which reads, "cannot load MySQL extension, please check PHP...
2
maliksleo
by: maliksleo | last post by:
i have wamp 2.0 server installed. When i clicked on phpmyadmin i have the following error can any body fix it. "Cannot load mysqli extension. Please check your PHP configuration. - Documentation"
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.