JoaquinVilchez's avatar

phpMyAdmin not working in Homestead

Hello! I'm having a problem configuring phpMyAdmin on my homestead. I successfully installed my homestead and installed phpMyAdmin but at the time of entering the address assigned (phpmyadmin.prj) I opened the project (cursostyde.prj) which is the project that I have loaded with homestead ... that is, I always open the Coursestyde project regardless of the address I put ... In addition, the Courses project does not connect to the database ...

I leave a couple of images of how my Homestead.yaml file and my hosts file are configured.

Homestead.yaml https://ibb.co/jONgvU

hosts https://ibb.co/i5eTaU

uh followed these steps to install phpmyadmin. (steps in spanish)

https://styde.net/instala-phpmyadmin-en-laravel-homestead/

The only thing that changes is that at the moment of putting

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

I gave the following error:

ln: failed to create symbolic link '/ home / vagrant / Projects / phpmyadmin': Protocol error

and solve it with the following code

sudo cp -LR / usr / share / phpmyadmin / / home / vagrant / Code / phpmyadmin

This problem I had a couple of months ago and I could never solve it ... try from the beginning again but I still have the problem ... any solution please?

0 likes
6 replies
Cronix's avatar

why install it in homestead itself? Just install on your host os and use port 33060 to connect to it (or Sequel Pro/Navicat/other)

JoaquinVilchez's avatar

@Cronix because when I do "vagrant ssh" in the general directory it does not start it, it only does it when I enter the homestead directory ... How do you say it?

Cronix's avatar

I'm not sure what you mean. I don't install anything like that on the vagrant/homestead box. I'm on a mac and have it installed on the macos, and just access the db on the homestead machine using port 33060 from the mac side instead of the standard 3306 port. Does that make sense?

For instance, I installed Navicat on the mac (not homestead). I used the following connection settings to connect to the db on homestead:

Host Name/IP Address: 127.0.0.1
Port: 33060
User Name: homestead
Password: secret

PhpMyAdmin would be the same.

JoaquinVilchez's avatar

@Cronix

Well, thank you very much for worrying, I will try to solve by reading a little more the link that you left me.

Thank you very much! Have a nice day: D

Please or to participate in this conversation.