Welcome guest, is this your first visit?
+ Reply to Thread
Results 1 to 2 of 2

Thread: How to enable mysql in php?

          
  1. #1

    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!

  2. #2
    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.

 

 

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts