Page 1 of 1

SOLVED - Database Connection

Posted: Sat Nov 13, 2021 4:41 am
by 440music
I did a fresh install and then uploaded the previous files and updated the database which caused an error that gave me a database connection error
How I fixed the error:
The new database had the same user ID and different password.
store-public-directory/admin/config.php
I had to make a password change in that file to connect to the database
// DB
define('DB_DRIVER', 'mysqli');
define('DB_HOSTNAME', 'localhost');
define('DB_USERNAME', 'my-store-admin-database-name');
define('DB_PASSWORD', 'the -password');
define('DB_DATABASE', 'database-name');
define('DB_PORT', '3306');
define('DB_PREFIX', 'oc_');

once the database password was reset the program worked again.

Re: SOLVED - Database Connection

Posted: Mon Nov 15, 2021 8:00 pm
by paulfeakins
Cool story bro.

Re: SOLVED - Database Connection

Posted: Mon Jan 03, 2022 1:11 pm
by Xring3
Thanks, this got me back into my admin page, but I'm still unable to bring up the store page. I'll keep on looking, but this fix solved one problem.

Dan