Changing DB Server in Global Settings doesn't change the database connection October 25, 2018, 04:09:48 PM I have changed the database server ip address from one server to another in global settings popup and saved it. However, it still connects to the old server. I reloaded the changes after publishing. But still the DB connection points to old server. Why?!!!Appreciate quick response... Quote Selected
Re: Changing DB Server in Global Settings doesn't change the database connection Reply #1 – October 26, 2018, 01:50:44 AM I believe the changes will take effect on the next run.Have you tried to restart the application? Quote Selected
Re: Changing DB Server in Global Settings doesn't change the database connection Reply #2 – October 29, 2018, 10:34:49 PM That didn't help. This problem still continues and very frustrating.After doing some digging around, I noticed that the ppm file is the culprit. When I make the changes in the IDE it is not saved into the ppm file. After saving and closing the IDE, I opened the ppm file through editor and saw still the old DB configuration settings. However, when I open the IDE next time, in the global settings popup, i see the new settings!Looks like there is a serious bug in the project saving functionality. Instead of Rapid development, this is turning out to be a nightmare. Appreciate if you can quickly resolve this. Quote Selected 1 Likes
Re: Changing DB Server in Global Settings doesn't change the database connection Reply #3 – October 30, 2018, 12:04:54 AM ...Additional clarifications.After I save the project, close the IDE and use the editor to view the ppm file, I see old DB settings. When I reopen the IDE, in the popup, I see new DB settings.However, when I run the application, it still uses old DB settings.No matter how many times I save and come back into IDE or try reloading the pages during testing, this problem still persists. Quote Selected
Re: Changing DB Server in Global Settings doesn't change the database connection Reply #4 – November 03, 2018, 05:56:00 PM Please, can you confirm as this issue has been fixed in PHPRad 2.5.8 ? Quote Selected
Re: Changing DB Server in Global Settings doesn't change the database connection Reply #5 – September 18, 2019, 10:08:36 AM I have the same issue cant change to another database.also connection settings from development station may differ from production. Quote Selected 1 Likes
Re: Changing DB Server in Global Settings doesn't change the database connection Reply #6 – September 18, 2019, 12:36:49 PM @franklin when you have published to production please locate and edit config.php file found in the root of your project folder as indicated in the images below(locate config.png and edit config.png). Quote Selected
Re: Changing DB Server in Global Settings doesn't change the database connection Reply #7 – September 20, 2019, 04:57:42 PM thx, I found that, but it is just annoying to that every time you publish. Quote Selected
Re: Changing DB Server in Global Settings doesn't change the database connection Reply #8 – September 20, 2019, 05:13:37 PM another problem is that the application keeps reading the old database it does not change to the new config.it seems that the general setting doe nothing, cannot be changed. Quote Selected
Re: Changing DB Server in Global Settings doesn't change the database connection Reply #9 – September 20, 2019, 06:01:59 PM I am stuck try to binary edit the ppm file, does not work only thing that works is start a new project. but then i have to redo 1 week of work, frustrating. Quote Selected
Re: Changing DB Server in Global Settings doesn't change the database connection Reply #10 – October 10, 2019, 02:15:53 PM Quote from: franklin – September 18, 2019, 10:08:36 AMI have the same issue cant change to another database.also connection settings from development station may differ from production.Same here. The database string cant be changed anymore for the deve-stage PPM file. If we plan to migrate to another server, the project need to redo from scratch. Team. Kindly work on it. This is not professional man.If a real professional developer work on this PHPRAD system, sure will feel it like a Honey-Dipped-MangoSeed. Can eat the top layer only & the inner part is not edible. :-)))))Because the developed project file is like... " Its Like That One"... :-) Quote Selected
Re: Changing DB Server in Global Settings doesn't change the database connection Reply #11 – October 10, 2019, 06:48:03 PM Wel I found that it actually is not a bad idea to don't change it.it should always be "localhost" from a security point of view.with that setting you can work locally and any other server. and without authentication problems, of you use a domain name the entry point form the PH script also follows that path.reg Franklin Quote Selected
Re: Changing DB Server in Global Settings doesn't change the database connection Reply #12 – December 11, 2019, 08:14:58 AM Hi there,Is this solved now with 2.6.9 version ?Thanks Quote Selected
Re: Changing DB Server in Global Settings doesn't change the database connection Reply #13 – March 21, 2020, 01:52:31 PM Hi Guys.Im trying PHPrad to see if its adequate for some projects that i will have in the very near future.Several things in this Post got me very worried!!!1 -Is it possible to duplicate a project (php and Mysql (local DB) ) while in development mode or/and after is publish so i can use it to another end/costumer2- Are there any constraints on duplicating projects?Thanks in advance. Keep safe!Jorge Quote Selected
Re: Changing DB Server in Global Settings doesn't change the database connection Reply #14 – March 22, 2020, 01:40:26 AM @jmsantos72 yes you can duplicate the project, but you will have to configure the path where the project files will be stored and the database connection. But on the current version which is version 2.6.9, database change cannot be done from phprad, you will have to manually change the database connection on the config.php file. Quote Selected