Change Database Connection (v2022)

This public forum is for user-to-user discussions of PHPMaker. Note that this is not support forum.
Post Reply
wincode2008
User
Posts: 124

Change Database Connection (v2022)

Post 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


arbei
User
Posts: 9401

Post by arbei »

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


wincode2008
User
Posts: 124

Post by wincode2008 »

I don't have server event for database connection.


arbei
User
Posts: 9401

Post 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.


Post Reply