C
|
chuckbower 2/16/2015 |
This is my first post to the forums so I apologize in advance for being green as grass. I have been digging around looking for a solution and maybe I just missed it. This seems like a variation on Thread 7127. I am running PHPRunner Enterprise 8.0 (Build 22714 x86). I have started doing some contract work for a friend who has been running PHPRunner for years. I am just learning it. I am nervous about having him turn me loose in his production environment so he set me up on another host but with the same tables. As one would expect, the different host requires a different database prefix. That makes cross development very difficult. We seemingly can't just copy the production PHPRunner software and database to the new host because of the prefix requirements and also because of the user, password, and database name being imbedded in the application. Not worrying about the MySQL database for the minute, is there a way to change the connection information in the application after it is uploaded to the server? Forum 7127 referred to include/dbcommon.php but I can't seem to find it. I would think that for people who have disaster recover sites, this would be a common issue. Any assistance would be greatly appreciated. Thanks, Rob
|
![]() |
Sergey Kornilov admin 2/16/2015 |
Yes, you can create a set of 'Server Database Connection' settings on 'Output directory' screen and choose correct connection before build and upload. |
C
|
CPSRob author 2/17/2015 |
Rob, at build time there is an option to create another set of database connections. It is on the Output page/section of PHPRunner. You can create a new database connection and set your values there. Test all you want, then when you are ready to build final you can change back. Look at the section and you can see what I mean. Chuck
|
![]() |
Sergey Kornilov admin 2/18/2015 |
While I understand the idea of making transfers easier database prefix is not the only thing that can possible change. In many cases you will have to change host, user and password as well and this is what 'Server database connection' option is for. |
C
|
CPSRob author 2/18/2015 |
While I understand the idea of making transfers easier database prefix is not the only thing that can possible change. In many cases you will have to change host, user and password as well and this is what 'Server database connection' option is for.
|