PDO Problem + (Forum rules - where did my message go?)
Posted by: conexor (---.static.tpgi.com.au)
Date: September 18, 2012 11:50AM

I have installed WAMP server

I have set a root password for mysql.
PHPINFO and phpmysql work fine.

BUT
when I try to access via PDP, I get this error

PDO error: SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: YES)

Any ideas?
I am assuming that PDO needs to be told the mysql passord. Where is that done? Is there a PDO config file somewhere?

Thanks



Edited 1 time(s). Last edit at 09/18/2012 11:58AM by stevenmartin99.

Options: ReplyQuote
Forum rules - where did my message go?
Posted by: conexor (---.static.tpgi.com.au)
Date: September 18, 2012 11:53AM

I posted a request for help an hour or so ago.

I got this link in my email

PDO Problem
<[forum.wampserver.com];

but the message has vanished. I assume I said something that upset someone or broke some rule or other.
How do I find out why my message was deleted?

BTW, I re posted a much more brief version of the question with the same name but the original detailed posting has vanished.



Edited 3 time(s). Last edit at 09/18/2012 11:57AM by stevenmartin99.

Options: ReplyQuote
Re: Forum rules - where did my message go?
Posted by: stevenmartin99 (Moderator)
Date: September 18, 2012 11:55AM

That was me by mistake!

There was 6 spam messages surrounding your message and I accidently deleted it, I have no way of retrieving it.

sorry.

but i can help you with your issue.

Can you paste your code for your PDO connection

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

Options: ReplyQuote
Re: PDO Problem + (Forum rules - where did my message go?)
Posted by: conexor (---.static.tpgi.com.au)
Date: September 18, 2012 12:31PM

Hi Steve,
I was worried I may have been deleted because I mentioned other products and linked to other sites including my blog.

So lets hope that its OK to have such links and references. Let me know if this sort of thing is not allowed.

I am trying to run an example from "agiletoolkit.org" called the blog example. I am digging through the code now to try and find where the error first comes from. I also get a very similar error when I try to run the embarcadero html5builder.

The common thing seems to be PDO.

My blog shows a bit more detail and some screen shots including the error page that gets printed out
[html5builder.blogspot.com.au]

Options: ReplyQuote
Re: PDO Problem + (Forum rules - where did my message go?)
Posted by: RiggsFolly (---.as13285.net)
Date: September 18, 2012 12:44PM

Hi

I answered your first mail with this.

Have you changed the userid and password in the example code you are using to match the userid and password you setup in your mysql?

This page may help you find the config

[agiletoolkit.org]

you have to edit a config.php file somewhere.



Edited 1 time(s). Last edit at 09/18/2012 01:11PM by RiggsFolly.

Options: ReplyQuote
Re: PDO Problem + (Forum rules - where did my message go?)
Posted by: stevenmartin99 (Moderator)
Date: September 18, 2012 12:45PM

PDO isnt anything except a connector..

there has to be a config file for your code that is connecting to mysql via PDO, and you must supply a password

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

Options: ReplyQuote


Sorry, only registered users may post in this forum.