Page 1 of 1

How to use existing mysql database.

Posted: 2024-04-14 10:05
by Thomas Pang
Hi Guru,

I accidently deleted config.php and setup.md5 (can't find in trash) when ftp files into webserver, now the appgini require to setup new database, but I wish to use existing mysql named emolycom_sms, because a lot of important data were entered before this. How can I setup appgini to use the existing database?

Your help is very much appreciated. TIA.

Regards

Re: How to use existing mysql database.

Posted: 2024-04-14 15:55
by jsetzer
What about re-generating the web app in a new (blank) directory, installing in a new database, then copying config.php into old directory and editing connection parameters at the beginning of config file.

Don't forget backups!

Re: How to use existing mysql database.

Posted: 2024-04-14 16:29
by pbottcher
Hi,

actually I do not think that you need to use a new database. Just use the existing database with the setting that you had previously. Same accounts and settings. Appgini will regenerate the config.php and will tell during the setup that the tables where already existing.

Take a backup of you db, just in case AppGini would overwrite anything. But I think that should work.

Re: How to use existing mysql database.

Posted: 2024-04-19 03:00
by Thomas Pang
Hi,

Thank you so much to Guru Jsetzer and Pbottcheer, I finally get to the existing database with the same settings as before.

Thank you and appreciated for the helps.

Regards,