- Verified path to php installation dir ("C:\Program Files\PHP") was in the PATH string
- Verified extension dir was set in the "Paths and Directories" Section of php.ini
- extension_dir = "C:\Program Files\PHP\ext"
- Downloaded supporting mysql dlls
- Put libmySQL.dll in the php installation dir
- put php_mysql.dll in extension_dir
- put php_mysqli.dll in extension_dir
- Enabled extension DLL's in the Dynamic Extensions section of php.ini
- extension=php_mysql.dll
- extension=php_mysqli.dll
Wednesday, December 5, 2007
Enabling mysql on local php website
I setup a development instance on my PC of our corporate website today. The website was written in php, with a mysql back-end. I ran into a problem with php talking to mysql. Mysql is not enabled by php out of the box, so here are the steps that I had to follow to enable it:
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment