Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MySQL-Server not reachable #17

Open
chrischnweiss opened this issue Mar 4, 2014 · 8 comments
Open

MySQL-Server not reachable #17

chrischnweiss opened this issue Mar 4, 2014 · 8 comments

Comments

@chrischnweiss
Copy link

Hey,

after running 'vagrant up' and provisioning the machine, the MySQL-Server seems to be not reachable from Laravel.

A portscan to the machines-ip told me, that there is no open port 3306. Anyone else with this problem?

Greetings

@chrischnweiss
Copy link
Author

After changing db-configuration from ip to localhost i got the following error-message:
SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)

@chrischnweiss
Copy link
Author

Ok, looking for the running MySQL-server ends up in the awareness that there is no MySQL-server running.

@chrischnweiss
Copy link
Author

I destroyed the machine again yesterday and ran vagrant up again. After that, the MySQL-server works fine but when I halt the machine and start it up again the MySQL-server is again not reachable. Any other users with this issue?

@MiniCodeMonkey
Copy link
Owner

Have you tried to just restart the MySQL server manually?

sudo service mysqld restart

I can also highly recommend doing vagrant suspend instead of vagrant halt as that will just "pause" the machine and save the current state to the disk.

@chrischnweiss
Copy link
Author

With 'vagrant suspend' everything works fine.

No I only have the problem that I can't connect to the database with Sequel-SQL client. The access from outside of the machine seems to be blocked. A portscan to 172.22.22.22 or 'name-of-my-project'.local answers that there is no port 3306 is open.

@HelloTiago
Copy link

I'm having both issues, the socket error and also when I try to connect to the database through Sequel.

I tried restarting the MySQL server manually (mysqld didn't work, had to be mysql)...

@denisinla
Copy link

I've had the same issue as well, I instead did a vagrant destroy and re-built the machine after wasting an hour trying to figure things out.

@CapitaineExpert
Copy link

I've the same issue. The command 'service mysql status' by ssh => mysql stop/waiting
No possible to restart mysql : the command 'service mysql start' => start: Rejected send message, 1 matched rules; type="method_call", sender=":1.3" (uid=1000 pid=1965 comm="start mysql ") interface="com.ubuntu.Upstart0_6.Job" member="Start" error name="(unset)" requested_reply="0" destination="com.ubuntu.Upstart" (uid=0 pid=1 comm="/sbin/init")

I use too vagrant-phpstorm-tunnel plugin, i loose in the same time, the tunnel between PhPStorm and Vagrant machine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants