MySQL PDO connection problems

This is a discussion on MySQL PDO connection problems within the PHP Language forums, part of the PHP Programming Forums category; Hello folks, Having a bit of trouble getting PDO to connect to my remote MySQL database... PHP: 5.2.1, ...


Go Back   Usenet Forums > PHP Programming Forums > PHP Language

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 03-23-2007
ELINTPimp
 
Posts: n/a
Default MySQL PDO connection problems

Hello folks,

Having a bit of trouble getting PDO to connect to my remote MySQL
database...

PHP: 5.2.1, w/ php_mysql, php_pdo, php_pdo_mysql; error reporting is
on, ERROR_STRICT (development server)
OS: Windows 2003 R2 w/ SP2
Web Server: IIS 6, PHP installed as ISAPI
MySQL: 3.23.54 on remote Solaris 9 9/04

I've been connecting to the DB just fine using:

$hd_link = mysql_connect("server","user","passwd");
$hd_db = mysql_select_db("mydb");

But when I try connecting using the PDO:

$link_id = new PDO('mysql:host=server;dbname=mydb', $user, $passwd,
array( PDO::ATTR_PERSISTENT => false));

I get an exception thrown at me: "Unable to connect with Helpdesk
database"

I can't upgrade the MySQL database as it isn't mine and I'm just
"injecting" helpdesk tickets until I complete the new helpdesk.

Any known issues with this situation?

Thanks!

Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 05:01 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0