Jump to content

setting up wamp


Recommended Posts

I've set wamp successfully and could access localhost.

 

I also changed the mysql password using:

UPDATE user
SET Password=PASSWORD('xxx')
WHERE user='root';

 

and then:

 

FLUSH PRIVILEGES

 

It all worked fine and was able to use the new password in console.

But when I open http://localhost/phpmyadmin/ it gave me "MySQL said: #1045 - Access denied for user 'root'@'localhost' (using password: NO)".

 

Any idea guys?

Link to comment
https://forums.phpfreaks.com/topic/111525-setting-up-wamp/
Share on other sites

You need to edit phpMyAdmins configuration. Look for a file called config.inc.php within phpmyadmins folder.

 

Find the following line:

$cfg['Servers'][$i]['auth_type'] = 'config'

Change config to http

 

Also add // infront of the $cfg['Servers'][$i]['username'] and $cfg['Servers'][$i]['password'] lines too.

 

Save the config.inc.php file. PHPMyAdmin has now been configured to prompt for a username/password when you access http://localhost/phpmyadmin/

Link to comment
https://forums.phpfreaks.com/topic/111525-setting-up-wamp/#findComment-572466
Share on other sites

So http://127.0.0.1 works by http://localhost doesn't?

 

If that the case have at the hosts file (C:\WINDOWS\system32\drivers\etc). Make sure there is the following line in there:

127.0.0.1       localhost

If its not added. Save the hosts file. Re-test http://localhost/

Link to comment
https://forums.phpfreaks.com/topic/111525-setting-up-wamp/#findComment-577506
Share on other sites

So http://127.0.0.1 works by http://localhost doesn't?

 

If that the case have at the hosts file (C:\WINDOWS\system32\drivers\etc). Make sure there is the following line in there:

127.0.0.1       localhost

If its not added. Save the hosts file. Re-test http://localhost/

 

Yes.

 

and yes, that line IS already in the hosts file. I restarted all services and retested, but still I don't get anything.

Link to comment
https://forums.phpfreaks.com/topic/111525-setting-up-wamp/#findComment-577508
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.