1

I have three pcs and each one runs xampp. I want the other two use the third pc's mysql database in order to have only one database for development and not three.. How should I setup my pcs to work like this?

Thanks in advance

3 Answers 3

1

Open the mysql connection on php code running on the first two pcs, setting for both the ip of third as db_host.

Sign up to request clarification or add additional context in comments.

Comments

0

Configure a static IP for the computer hosting the database. When you use PHP to connect to the database from one of the other computers, set the host to this IP. Also make sure you have commented out #bind-address = 127.0.0.1 in my.ini as TJHeuvel noted.

Comments

0

You'll have to change the my.ini to listen to TCP/IP, as described here http://www.howtogeek.com/howto/mysql/switch-mysql-to-listen-on-tcp/

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.