MySQL Disabled by default -- How to enable?

Questions about the MySQL, PostgreSQL, and most other databases, as well as using it with PHP can be asked here.

Moderator: General Moderators

Post Reply
User avatar
Jonah Bron
DevNet Master
Posts: 2764
Joined: Thu Mar 15, 2007 6:28 pm
Location: Redding, California

MySQL Disabled by default -- How to enable?

Post by Jonah Bron »

Hello, world!

Have been working on it forever, and haven't been able to enable MySQL in PHP yet. I know that you have to un-comment the extensions php_mysql.dll and php_mysqli.dll, but they don't exist. Where can I download them, or am I misunderstanding something?

Thanks!
User avatar
flying_circus
Forum Regular
Posts: 732
Joined: Wed Mar 05, 2008 10:23 pm
Location: Sunriver, OR

Re: MySQL Disabled by default -- How to enable?

Post by flying_circus »

Check you PHP directory in the "ext" folder for the files. If they exist, then just add the lines necessary to your php.ini file.
User avatar
Jonah Bron
DevNet Master
Posts: 2764
Joined: Thu Mar 15, 2007 6:28 pm
Location: Redding, California

Re: MySQL Disabled by default -- How to enable?

Post by Jonah Bron »

That's the problem. Neither the folder ext/ or php_mysql.dll exist. Would you happen to know of a place to download them?

Thanks again!
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Re: MySQL Disabled by default -- How to enable?

Post by Christopher »

You should set the extension path to the "ext/" directory inside the directory containing PHP (I assume you unzipped PHP somewhere?). The php_mysql.dll will be in the PHP directory.
(#10850)
User avatar
Jonah Bron
DevNet Master
Posts: 2764
Joined: Thu Mar 15, 2007 6:28 pm
Location: Redding, California

Re: MySQL Disabled by default -- How to enable?

Post by Jonah Bron »

On Windows, so used the installer. Is that bad?

Thanks
User avatar
flying_circus
Forum Regular
Posts: 732
Joined: Wed Mar 05, 2008 10:23 pm
Location: Sunriver, OR

Re: MySQL Disabled by default -- How to enable?

Post by flying_circus »

Not sure, I've never used the installer. Download the .zip package from php.net and they will be included in there.
User avatar
Jonah Bron
DevNet Master
Posts: 2764
Joined: Thu Mar 15, 2007 6:28 pm
Location: Redding, California

Re: MySQL Disabled by default -- How to enable?

Post by Jonah Bron »

Okay. It'll take a while (dial-up :( ) Thanks for your help. :D
Post Reply