Page 1 of 1

mysqli::__construct(): (HY000/1698): Access denied for user 'root'@'localhost' during clean install

Posted: Fri Aug 11, 2017 10:24 am
by jws15
Hi, I'm trying out opencart, but during install step 3, I get these errors:
Warning: mysqli::__construct(): (HY000/1698): Access denied for user 'root'@'localhost' in /var/www/html/system/library/db/mysqli.php on line 7Warning: DB\MySQLi::__construct(): Couldn't fetch mysqli in /var/www/html/system/library/db/mysqli.php on line 10Warning: DB\MySQLi::__construct(): Couldn't fetch mysqli in /var/www/html/system/library/db/mysqli.php on line 10Notice: Undefined variable: mysql in /var/www/html/install/controller/install/step_3.php on line 280Notice: Trying to get property of non-object in /var/www/html/install/controller/install/step_3.php on line 280

any idea what I'm doing wrong?

Re: mysqli::__construct(): (HY000/1698): Access denied for user 'root'@'localhost' during clean install

Posted: Wed Nov 15, 2017 6:27 am
by straightlight
Check your username and password in your host console under the databases icon. Your Opencart config.php and admin/config.php files needs to be configured with the right database credentials.