+ Reply to Thread
Results 1 to 2 of 2
Thread: How to enable mysql in php?
-
12-08-2011, 09:12 PM #1Junior Member
- Join Date
- Nov 2011
- Posts
- 16
How to enable mysql in php?
Hi,
I am trying to use mysql database in php code, but it is not accepting database connection.
when I checked phpinfo(), the configuration command showing without-mysql, how to enable it?
Thanks!
-
12-08-2011, 09:38 PM #2Junior Member
- Join Date
- Dec 2011
- Posts
- 16
It depends on what platform you're on, how PHP was built, which one of the MySQL
extensions you want, and on what version of PHP you have.
If you build PHP from source, you'd add one of the --with-mysql* options to 'configure'.
Run 'configure --help' to see what is available.
If you're on Windows you'll need to edit your php.ini and add the "extension=xxx.dll"
line for whichever MySQL extension you want.




Reply With Quote

Bookmarks