Search code examples
phpmysqljoomla

Unable to install Joomla on localhost


I installed xampp server on my system with port number 90 because I have another server running on my system. Also, MySQL uses port 3308. The xampp server is running well, Apache runs correctly, MySQL runs correctly and the PHPMyAdmin also runs correctly.

But when I was trying to install Joomla 3.6, I received an error message "The installer was not able to connect to the MySQL server. Please make sure MySQL is running".

Note: I did not create password for MySQL.

What else am I suppose to do to get Joomla installed and running correctly?


Solution

  • You need to configurate the correct port for your MySQLi database connection. Maybe your joomla setup use the 3306 port for the mysql. change this to 3308 in the configuration file inside the installation folder before you start to setup the CMS.

    /* Database Settings */
    public $dbtype = 'mysqli';               // Normally mysqli
    public $host = 'localhost:3308';              // This is normally set to localhost
    public $user = '';                       // DB username
    public $password = '';                   // DB password
    public $db = '';                         // DB database name
    public $dbprefix = 'jos_';               // Do not change unless you need to!