Ojs2: Database connection failed!

First we need to be sure all is working fine in the DB side (server, user, pwd and dbname are correct).

To do this, the easiest way is downloading “adminer”, that is a DB management software build in a single php file.

So, please follow this steps:

  1. Download Adminer from their web.
  2. Upload this to your server’s root (in your case, you don’t need to upload… just place in your xampp root).
  3. Visit adminer webpage (in your case, would be "http://localhost/adminer.php or something like that).
  4. Fill with your DB credentials… and checking “mysql” in the System dropdown.

If you can reach your adminer, keep this credentials and review your config.inc.php to be sure there is no typo error or so.

Cheers,
m.

1 Like