[PHP] PDO mysql Connection issue

2012-11-28 Thread ad...@buskirkgraphics.com
I am having a PDO mysql connection issue I cant explain. On server server1.mydomain.com I have a test script 171.16.23.44 is by an A record called server2.mydoamin.com they are 2 different servers. This script returns an error: ERROR: Access denied for user 'user'@'server1.mydomain.com' (using p

Re: [PHP] Re: PDO question

2012-11-28 Thread ad...@buskirkgraphics.com
> On November 28, 2012 at 4:11 PM Jim Giner > wrote: > On 11/28/2012 3:58 PM, ad...@buskirkgraphics.com wrote: > > > > Guys, > > I am not quiet sure what is happening but every time i try to connect to a > > remote host it refers back to localhost. > > >

Re: [PHP] Re: PDO question

2012-11-28 Thread ad...@buskirkgraphics.com
>On November 28, 2012 at 4:11 PM Jim Giner wrote: > On 11/28/2012 3:58 PM, ad...@buskirkgraphics.com wrote: > > > > Guys, > > I am not quiet sure what is happening but every time i try to connect to a > > remote host it refers back to localhost. > > > &g

[PHP] PDO question

2012-11-28 Thread ad...@buskirkgraphics.com
Guys, I am not quiet sure what is happening but every time i try to connect to a remote host it refers back to localhost. $pdo = new PDO('mysql:host=171.16.23.44;dbname=test', 'user','password'); ERROR: Access denied for user 'user'@'localhost' (using password: YES) in /var/www/html/text.php An