Publishing MySQL Database to Production Server

I publish my wappler app via ftp. Does it also sync the mysql database structure?

It looks like it’s not syncing the mysql database structure.

To get the structure you want to right click the word changes when the target is on production and select apply latest changes.

1 Like

I have set the database host as “localhost” since after publish the mysql database will be on the same host as where the app files will be.

For changes I’m getting the error below.

You have to edit the two database connections in two places in Wappler. One in the database manager for Wappler to remotely connect to your database ( use full remote server ip/host there) and one in server connect globals for what runs on your server there you can use localhost.

See also:

When I change anything like server address, port etc… in any target it gets changed in both targets. How to fix that?

No you have to change it per target.

I changed it per target. Please see what I have done wrong:

After changing the host/details, close the file. Then change targets and reopen it.

1 Like

Thank you. It worked this way.

1 Like