We're working in a same project from three computers connected to same LAN. We want to maintain one common database for three same projects running in different computers.
We've created a database in a 4th pc and changed the httpd-xampp.conf
file. We've added the "Require all granted
" in phpmyadmin alias so that we can access the database from another pc in same LAN. We can access the phpmyadmin page through browser and also can create db manually in the web page. But the problem is we can't connect to the database from laravel project.
We've changed the following lines in .env
DB_HOST=192.168.0.155
DB_PORT=3306
But we're facing the following error.
SQLSTATE[HY000] [2006] MySQL server has gone away