Page 1 of 1

Change Database Connection (v2022)

Posted: Wed Apr 24, 2024 7:26 am
by wincode2008

I am using version 2022. How to I manually change database connection. I already change the
connection in src/config.production.php and src/config.development.php.

But when I run the program, the system still get data from previous database connection


Re: Change Database Connection (v2022)

Posted: Wed Apr 24, 2024 9:34 am
by arbei

If you had Database_Connecting server event, you should update it, you may find it in src/userfn.php.


Re: Change Database Connection (v2022)

Posted: Wed Apr 24, 2024 11:03 am
by wincode2008

I don't have server event for database connection.


Re: Change Database Connection (v2022)

Posted: Wed Apr 24, 2024 2:02 pm
by arbei

Then you should double check your database connection info in the src/config.*.php. (Note your environment that you are using.) Also check if you have entered connection info via the advanced setting Connection info of production server (JSON). Finally, make sure you are checking the correct website folders for your website on your web server.