ThingEngineer / PHP-MySQLi-Database-Class

Wrapper for a PHP MySQL class, which utilizes MySQLi and prepared statements.
Other
3.29k stars 1.35k forks source link

Access Denied For User #908

Closed smarteutech closed 4 years ago

smarteutech commented 4 years ago

Hi! I am new in PHP and in MYSQL database. I am getting below error when run any query

mysqliDb.php on line 298 [07-Jun-2020 10:48:11 America/New_York] PHP Warning: mysqli::__construct(): (HY000/1044): Access denied for user I am using it like

$db = new MysqliDb (HOST, DBU, DBPASS, HOST);
and running query like
$users = $db->get('table_users'); 
print_r($users);

However when I use normal connection without use mysqliDb, its working fine. Let me know if someone can help me for solve it. Thanks!

smarteutech commented 4 years ago

sorry I was forgot apply db name