I have started work on a wordpress site with a colleague. We are both developing the website on our local machines and have our separate databases. We share our work through Git. Now the problem is that I found out that wordpress uses the database to store some configurations regarding themes and plugins.
How can we share our database to have the same version all the time?
Just set up a database on a server that runs MySQL and allows access for both of you. Then you should change these lines in wp-config.php:
define('DB_NAME', 'remote database name');
/** MySQL database username */
define('DB_USER', 'remote user name');
/** MySQL database password */
define('DB_PASSWORD', 'remote password');
/** MySQL hostname */
define('DB_HOST', 'remote server address');
See also the WordPress support topic http://wordpress.org/support/topic/setting-up-wp-with-remote-database. Just keep the code in Git.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With