Post by duckde » Thu Apr 21, 2022 4:02 pm

I want to install Opencart 3 on a Debian 10 server with LAMP. I copied all files from the upload directory to my web directory and changed the access rights according to the installation manual. I also renamed the config.php files. In mysql I created an opencart database with a specific user. To this user I granted all rights to the database. The installation screen from opencart shows up correctly. On the pre-installation page everything is green. On the configuration page I fill in the appropriate values:
DBDriver: MySQLi
Hostname: localhost
Username: my opencart user (not root)
Password: opencart users password (direct access to MySQL works fine)
Database: my opencart DB
Port and Prefix as given.

When I click on "Continue", I get an error message: Could not make a database link using xxx@localhost (xxx is my opencast user).
Any idea on this?
Last edited by duckde on Fri Apr 22, 2022 1:38 pm, edited 2 times in total.

Newbie

Posts

Joined
Thu Apr 21, 2022 3:47 pm

Post by ADD Creative » Thu Apr 21, 2022 10:19 pm

What version or OpenCart and what version of PHP?

You could try temporarily changing the error handling in system/library/db/mysqli.php to see what the real error is.

www.add-creative.co.uk


Expert Member

Posts

Joined
Sat Jan 14, 2012 1:02 am
Location - United Kingdom

Post by duckde » Fri Apr 22, 2022 1:00 am

Opencart version: 3.0.3.8
PHP version: 7.3.31

Newbie

Posts

Joined
Thu Apr 21, 2022 3:47 pm

Post by straightlight » Fri Apr 22, 2022 1:14 am

duckde wrote:
Fri Apr 22, 2022 1:00 am
Opencart version: 3.0.3.8
PHP version: 7.3.31
PHP 7.4x versions should be used with OC v3.x releases. However, did you ensured from your host console that your database name is correct as opposed to both config.php files from OC?

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by duckde » Fri Apr 22, 2022 1:40 am

The update to PHP 7.4 fixed the problem. Thank you very much!!

Newbie

Posts

Joined
Thu Apr 21, 2022 3:47 pm

Post by straightlight » Fri Apr 22, 2022 1:46 am

duckde wrote:
Fri Apr 22, 2022 1:40 am
The update to PHP 7.4 fixed the problem. Thank you very much!!
Now that the issue has been solved, please add: [SOLVED] at the beginning of the subject line on your first post.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON
Who is online

Users browsing this forum: No registered users and 141 guests