PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Friday, January 14, 2022

[FIXED] WAMP server Access Denied

 January 14, 2022     phpmyadmin     No comments   

Issue

I have tried all the options and answers available on this site for problem. the problem is i have installed "Wamp Server 2.2" and when i open 'PHPmyadmin' page it shows the following error message:

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

I tried reinstalling server, restarting server and also I tried resetting the password also and done everything that i could find here as a solution. but it doesn't worked. please help me fix this.


Solution

Edit config.inc.php file.

$cfg['Servers'][$i]['verbose'] = 'localhost';
$cfg['Servers'][$i]['host'] = 'localhost';
$cfg['Servers'][$i]['port'] = '3306';
$cfg['Servers'][$i]['socket'] = '';
$cfg['Servers'][$i]['connect_type'] = 'tcp';
$cfg['Servers'][$i]['extension'] = 'mysqli';
$cfg['Servers'][$i]['auth_type'] = 'config';
$cfg['Servers'][$i]['user'] = 'YOUR_USERNAME';
$cfg['Servers'][$i]['password'] = 'YOUR_PASSWORD';
$cfg['Servers'][$i]['AllowNoPassword'] = true;


Answered By - Misa Lazovic
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing