Page 1 of 1

MySQL Disabled by default -- How to enable?

Posted: Wed Mar 19, 2008 5:07 pm
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!

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

Posted: Wed Mar 19, 2008 5:24 pm
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.

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

Posted: Wed Mar 19, 2008 5:45 pm
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!

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

Posted: Wed Mar 19, 2008 6:29 pm
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.

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

Posted: Wed Mar 19, 2008 7:52 pm
by Jonah Bron
On Windows, so used the installer. Is that bad?

Thanks

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

Posted: Fri Mar 21, 2008 12:35 am
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.

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

Posted: Fri Mar 21, 2008 10:34 am
by Jonah Bron
Okay. It'll take a while (dial-up :( ) Thanks for your help. :D