skip to Main Content

I Have a vps server with PHP 5.3.3 installed ,I added a new version 5.3.28 and switch my hosting to use FastCGI with PHP-5.3.28 now i get this “Database connection error (1): The MySQL adapter ‘mysql’ is not available.”.I beleive i miss some configuration when installing the new PHP version.any help is appreciated

5

Answers


  1. It simply means what it says. To fix the issue, you will need to enable the MySQLi adapter by opening your php.ini file and uncommenting extension=php_mysqli.dll. Once done, restart Apache for the changes to take effect.

    There may be an option on your VPS control panel, not sure but I would suggest looking there first.

    If you do not have this option, or do not have access to the php.ini file then you will need to contact your hosting provider

    Login or Signup to reply.
  2. It sounds like you’ve also change the available adpator to mysqli from mysql — the message is saying the adapter mysql is not availble.

    Did you remember to change your Joomla configuration.php file to use mysqli?

    Open the Joomla (2.5 or 3.x) configuration.php file and look for the line:

    public $dbtype = 'mysql'
    

    and change it to:

    public $dbtype = 'mysqli'
    

    If it isn’t already…

    Login or Signup to reply.
  3. I have same problem.. and solve using this link.. the problem is mysql lib not installed. and you should install before run again (remember reload apache)

    https://help.ubuntu.com/community/ApacheMySQLPHP

    I hope the question solved by this link..

    Login or Signup to reply.
  4. You may have many php.ini files, the know the right file, you can run

    php --ini
    

    The uncomment extension=php_mysqli.dll
    Then restart apache

    sudo service apache2 restart
    
    Login or Signup to reply.
  5. Open the Joomla (2.5 or 3.x) configuration.php file and look for the line:

    public $dbtype = 'mysql'
    

    and change it to:

    public $dbtype = 'mysqli'
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search