Reputation: 11
I'm working on laravel
project (for the first time), And I want to use MySQL workbench for database.
But when I set my settings
host: 127.0.0.1
port: 33060
user: homestead
pass: secret
I got this error:
Lost connection to MySQL server at 'reading initial communication packet, system error: 0
What can I do?
Note : I'm using windows 10
UPDATE #1 : Mysql workbench worked with these settings :
But I got an error when i tried to make (php artisan migrate)
This is a screen shot from my .env file:
Upvotes: 0
Views: 2354
Reputation: 11
I Solved the problem by doing vagrant up
and using the port 3306
Upvotes: 1
Reputation: 53337
You are using the wrong port. 33060 is the default port for the new X protocol. MySQL Workbench however only uses the classic protocol atm.
Upvotes: 0