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
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
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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.