Error! Server configuration problem!
Posted by: netwizard (---.miniserver.com)
Date: February 06, 2017 08:59PM

Warning: mysqli_connect(): (HY000/1045): Access denied for user 'admin'@'localhost' (using password: YES) in /home/dunadu/public_html/panel/includes/database.php on line 49

Error! Server configuration problem!

Cannot connect to mysql database, check settings in configuration file `config.php`.
MySQL error:

Config.php:

<?php

// mysql settings
$mysql_host = 'mysql.host';
$mysql_user = 'admin';
$mysql_pass = 'pass123';
$mysql_database = 'DBS';

$global_directory_slash = DIRECTORY_SEPARATOR;
$global_temporary_directory = 'temp';

database.php:

$this->db_link = mysql_connect($host, $user, $pass, true);



Please can someone help me about this

Options: ReplyQuote
Re: Error! Server configuration problem!
Posted by: Otomatic (Moderator)
Date: February 06, 2017 09:05PM

Hi,

It is not a WampServer issue.

>// mysql settings
> $mysql_host = 'mysql.host';
NO -> $mysql_host = 'localhost'; or $mysql_host = '127.0.0.1';

> $mysql_user = 'admin';
> $mysql_pass = 'pass123';
Has the user "admin" associated with the password "pass123" been created and exists in the list of MySQL users?

> $mysql_database = 'DBS';
Does the "DBS" database exist?

---------------------------------------------------------------
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons



Edited 1 time(s). Last edit at 02/07/2017 10:13AM by Otomatic.

Options: ReplyQuote


Sorry, only registered users may post in this forum.