Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Collaboration on wordpress site git. How to share database? [closed]

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?

like image 623
nche Avatar asked Jan 15 '12 11:01

nche


1 Answers

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.

like image 158
Michiel Kauw-A-Tjoe Avatar answered Sep 30 '22 09:09

Michiel Kauw-A-Tjoe