Access Denied
Posted by: Jochemus (---.access.telenet.be)
Date: January 07, 2009 06:15PM

Hi,

When I click on one of my projects ("Your Projects"winking smiley, I receive this message:

Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'root'@'localhost' (using password: NO) in C:\wamp\www\Cdb\index.php on line 10
Access denied for user 'root'@'localhost' (using password: NO)

What should I do to solve this problem?

Options: ReplyQuote
Re: Access Denied
Posted by: WINIBY (---.124.in-addr.arpa.tm.net.my)
Date: January 07, 2009 06:22PM

Check your script. It should be your script problem.

Options: ReplyQuote
Re: Access Denied
Posted by: Jochemus (---.access.telenet.be)
Date: January 07, 2009 06:28PM

WINIBY Wrote:
-------------------------------------------------------
> Check your script. It should be your script
> problem.


No. I don't use a script here. It's just a "Project" that I downloaded and I should be able to open it.

Options: ReplyQuote
Re: Access Denied
Posted by: stevenmartin99 (---.b-ras1.blp.dublin.eircom.net)
Date: January 07, 2009 06:30PM

set up the project using the manual that came with it. usually u need to give details to one of the files

host - localhost
user- root
password -

Steven Martin
stevenmartin99@gmail.com
stevenmartin99@hotmail.com
PampServer.com - [pampserver.com]

Options: ReplyQuote
Re: Access Denied
Posted by: Jochemus (---.access.telenet.be)
Date: January 07, 2009 06:38PM

stevenmartin99 Wrote:
-------------------------------------------------------
> set up the project using the manual that came with
> it. usually u need to give details to one of the
> files
>
> host - localhost
> user- root
> password -


There wasn't really a manual. The problem probably is that I can't connect to Mysql, however I checked Firewall, Antivirus, etc.

Options: ReplyQuote
Re: Access Denied
Posted by: WINIBY (---.167.50.60.kbu01-home.tm.net.my)
Date: January 07, 2009 06:55PM

Is there any line there display host, username and password?

Options: ReplyQuote
Re: Access Denied
Posted by: Jochemus (---.access.telenet.be)
Date: January 07, 2009 07:01PM

WINIBY Wrote:
-------------------------------------------------------
> Is there any line there display host, username and
> password?


Nope. It should work when I click on this "Project".

Options: ReplyQuote
Re: Access Denied
Posted by: stevenmartin99 (---.b-ras1.blp.dublin.eircom.net)
Date: January 07, 2009 07:30PM

no it shouldnt. if it uses mysql then you need to find a file in the project folder that connects it to mysql . then ul need to fill in this information.

Steven Martin
stevenmartin99@gmail.com
stevenmartin99@hotmail.com
PampServer.com - [pampserver.com]

Options: ReplyQuote
Re: Access Denied
Posted by: yfastud (Moderator)
Date: January 07, 2009 07:55PM

follow this to setup db for it first, then use those info for that script
[blog.jlbn.net]

Have fun,

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

Options: ReplyQuote
Re: Access Denied
Posted by: Jochemus (---.access.telenet.be)
Date: January 08, 2009 05:40PM

Hmmm. But I can't connect to Mysql. I also can't connect to phpMyAdmin: #1045 - Access denied for user 'root'@'localhost' (using password: NO)

Options: ReplyQuote
Re: Access Denied
Posted by: yfastud (Moderator)
Date: January 08, 2009 05:50PM


Options: ReplyQuote
Re: Access Denied
Posted by: Jochemus (---.access.telenet.be)
Date: January 08, 2009 06:24PM

yfastud Wrote:
-------------------------------------------------------
> download resetmysql here
> [downloads.jlbn.net]
> and follow guide here
> [blog.jlbn.net]
> [blog.jlbn.net]


Nope. I still can't connect to Mysql

EDIT: Problem solved smiling smiley



Edited 1 time(s). Last edit at 01/08/2009 06:32PM by Jochemus.

Options: ReplyQuote
Re: Access Denied
Posted by: showstopper (---.rev.greendottt.net)
Date: January 10, 2009 06:36PM

first you need to login to phpmyadmin go to privileges then click to edit for the user( root) if it has more than one users to be exact its the one with all the privileges after u clicked edit scroll down to the change password box and enyer your pass word choose a good pass cause the would be for your mysql databases
now if you try to login you wont be able to go in phpmyadmin if this happens don't get scared now go to C:\wamp\apps\phpmyadmin3.1.1 and open the file config.inc in a text editor and find ($cfg['Servers'][$i]['password'] = '') and between the two apostrophe place the password you enter in phpmyadmin then save the file and thats it

Options: ReplyQuote


Sorry, only registered users may post in this forum.