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!
PDO MySQL - disabled, or am I missing something?
-
- 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?
Re: PDO MySQL - disabled, or am I missing something?
EDIT: Aaaaaaaaaaaaand... I'm an idiot. Missed a variable. Gah, I shouldn't code when it's 12 AM.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!
Re: PDO MySQL - disabled, or am I missing something?
Nod, PDO should be enabled for all PHP installs in our system.