No localhost, ip works, but with phpmyadmin problems
Posted by: mercuryfrost (---.cust.imagine.ie)
Date: September 06, 2009 09:39PM

Hi all,

Reinstalled WAMP today as it wasn't working, turned off skype, turned off Skype port 80 etc.

So then WAMP was fully on, Apache and all, but localhost doesn't work.
However, 127.0.0.1 does work.

When I go to PHPMyAdmin, it says it can't connect to MySQL database.

###
phpMyAdmin tried to connect to the MySQL server, and the server rejected the connection. You should check the host, username and password in your configuration and make sure that they correspond to the information given by the administrator of the MySQL server.
###

Ideas ladies and gents?

Options: ReplyQuote
Re: No localhost, ip works, but with phpmyadmin problems
Posted by: Lefty (---.versanet.de)
Date: September 07, 2009 02:08AM

mercuryfrost Wrote:
-------------------------------------------------------
> Hi all,
>
> Reinstalled WAMP today as it wasn't working,
> turned off skype, turned off Skype port 80 etc.
>
> So then WAMP was fully on, Apache and all, but
> localhost doesn't work.
> However, 127.0.0.1 does work.
>
> When I go to PHPMyAdmin, it says it can't connect
> to MySQL database.
>
> ###
> phpMyAdmin tried to connect to the MySQL server,
> and the server rejected the connection. You should
> check the host, username and password in your
> configuration and make sure that they correspond
> to the information given by the administrator of
> the MySQL server.
> ###
>
> Ideas ladies and gents?


Did you fill in the right info for each host, username and password in your config.php?

Options: ReplyQuote
Re: No localhost, ip works, but with phpmyadmin problems
Posted by: yfastud (Moderator)
Date: September 07, 2009 04:31AM

open file hosts in folder C:\WINDOWS\System32\drivers\etc and make sure you have only this line and nothing else

127.0.0.1 localhost

to setup password, follow this
[blog.jlbn.net]

Have fun,

FREE One A Day
FREE Photo
FREE Games
FREE Websites
FREE Portable GPS
FREE WAMP Guides

Options: ReplyQuote
Re: No localhost, ip works, but with phpmyadmin problems
Posted by: mercuryfrost (---.cust.imagine.ie)
Date: September 10, 2009 05:20AM

Thanks Lefty for your time,
but an even bigger thanks to yfastud!

Answer worked first time. Dunno how that file could have changed, but who cares!


Only problem was editing the file. Had to create a text file, then remove the extension in DOS, but I'm sure I'm doing something silly.


Many thanks again

Options: ReplyQuote


Sorry, only registered users may post in this forum.