Designinglives

June 23, 2017 at 5:24 pm

How to install phpmyadmin on vagrant box

Login to your virtual box using SSH and change directory to the folder which hosts your code. In my case this is the Code directory, use the following command to install phpmyadmin.

sudo apt-get install phpmyadmin

Note: The default username and password for the mysql servers are root – secret

Move the installed phpmyadmin to the code directory (called Code in my example).

sudo ln -s /usr/share/phpmyadmin/ /home/vagrant/Code/phpmyadmin

cd ~/Code && serve phpmyadmin.app /home/vagrant/Code/phpmyadmin

Change the hosts file on your machine to display phpmyadmin linked to the IP of the vagrant box, also change the homestead.yaml file and add the following:

- map: phpmyadmin.app
  to: /home/vagrant/Code/phpMyAdmin
0 likes homestead , mysql , phpmyadmin , vagrant
Share: / / /