PDO MySQL - disabled, or am I missing something?

Connect with other users about what to run on your webhosting (and how to run it) here.
Post Reply
scirc
New to forums
New to forums
Posts: 2
https://www.youtube.com/channel/UC40BgXanDqOYoVCYFDSTfHA
Joined: Fri Oct 10, 2014 9:06 pm
Location: Dallas, TX, USA
Contact:

PDO MySQL - disabled, or am I missing something?

Post by scirc »

Copied form my support ticket because I'm tired and lazy wrote:I had a question (not sure if this'd go to inquiry or not) as to what's up with PHP and PDO+MySQL support on the webserver side of things. I've noticed that, when attempting to establish a PDO connection to my database, I receive the following error:

SQLSTATE[HY000] [2002] No such file or directory

StackOverflow isn't much help- most if it entails configuring PHP and editing the php.ini file to fix this.

This error, however, leads me to one question: Is this my problem, or is PDO disabled?

I like PDO for a number of reasons, mainly its security and ease of use. I love its method of prepared statements, and I like being able to pass arrays to functions and have it work as I'd expect (I'm looking at you, MySQLi). So, if PDO MySQL is in fact disabled, I kinda would like to know why. It's a great utility, in my opinion, and I really do enjoy it. If it is enabled, and this is just an issue on my behalf, please let me know.

If need be, I can provide anything- database connection scripts, info, etc.

Thanks for any help!
Member of the Brony@Home Folding@Home team!
Image
scirc
New to forums
New to forums
Posts: 2
Joined: Fri Oct 10, 2014 9:06 pm
Location: Dallas, TX, USA
Contact:

Re: PDO MySQL - disabled, or am I missing something?

Post by scirc »

scirc wrote:
Copied form my support ticket because I'm tired and lazy wrote:I had a question (not sure if this'd go to inquiry or not) as to what's up with PHP and PDO+MySQL support on the webserver side of things. I've noticed that, when attempting to establish a PDO connection to my database, I receive the following error:

SQLSTATE[HY000] [2002] No such file or directory

StackOverflow isn't much help- most if it entails configuring PHP and editing the php.ini file to fix this.

This error, however, leads me to one question: Is this my problem, or is PDO disabled?

I like PDO for a number of reasons, mainly its security and ease of use. I love its method of prepared statements, and I like being able to pass arrays to functions and have it work as I'd expect (I'm looking at you, MySQLi). So, if PDO MySQL is in fact disabled, I kinda would like to know why. It's a great utility, in my opinion, and I really do enjoy it. If it is enabled, and this is just an issue on my behalf, please let me know.

If need be, I can provide anything- database connection scripts, info, etc.

Thanks for any help!
EDIT: Aaaaaaaaaaaaand... I'm an idiot. Missed a variable. Gah, I shouldn't code when it's 12 AM.
Member of the Brony@Home Folding@Home team!
Image
User avatar
Edge100x
Founder
Founder
Posts: 13124
Joined: Thu Apr 18, 2002 11:04 pm
Location: Seattle
Contact:

Re: PDO MySQL - disabled, or am I missing something?

Post by Edge100x »

Nod, PDO should be enabled for all PHP installs in our system.
Post Reply