Jump to content

Recommended Posts

I'm looking into syncing a few different computers I develop on with the same development data automatically.  Syncing the files themselves isn't a problem (using SugarSync).  My question is whether or not there's a file(s) stored in the mysql folder (or anywhere) that actually contains the databases/data that I could sync across multiple computers so that I have the same databases/changes across all computers.

 

I know I could just use mysql dumps, but I'm going for an automatic solution.

Link to comment
https://forums.phpfreaks.com/topic/145599-where-is-the-database-stored/
Share on other sites

All contents of /data directory in mysql folder. Servers must not be running. Also have in mind, that it will only work, when all computers have same version of MySQL server and at least some of the options in config file. There also might be problems if there are different operating systems.

 

Alternatively you might try to set up replication.

Ty sir.  Replication looks like it would be the better way to go, but I am dealing with dynamic IPs.  So I'd have to change the address to the master server for each slave when my IP changes.  Although I could just put my dev database server on my web host account, in which case it's address wouldn't change.  Consider this a conversation with myself.  Ty again.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.