Warning: mysql_connect(): Access denied for user 'root'@'localhost' (using password: YES) in /var/www/html/online_reporting/classes/SQLHelper.class.php on line 68

Warning: mysql_select_db() expects parameter 2 to be resource, boolean given in /var/www/html/online_reporting/classes/SQLHelper.class.php on line 69
Failed to connect to MySQL server. Check whehter MySQL server is running or not.Failed to select db. Check whether DB exists or not.
Warning: mysqli_connect(): (HY000/1045): Access denied for user 'root'@'localhost' (using password: YES) in /var/www/html/online_reporting/classes/SQLHelper.class.php on line 88

Warning: mysqli_error() expects exactly 1 parameter, 0 given in /var/www/html/online_reporting/classes/SQLHelper.class.php on line 88
DB conncetion Error