If so, it might be a good idea to check the values in your .env:
DB_CONNECTION=mysql #EXPECTED
DB_HOST=127.0.0.1 #EXPECTED
DB_PORT=3306 #EXPECTED
DB_DATABASE={DB_NAME} #YOUR DB NAME
DB_USERNAME={DB_USERNAME} #YOUR DB USERNAME
DB_PASSWORD={DB_PASSWORD} #YOUR DB PASSWORD
And ensure they are the same as the values that you use to connect to phpmyadmin.
2
Answers
You ran migrate earlier, correct? If yes, you can run:
This will drop existing tables and data and create a new structure.
Or, if you want to add new fields without losing existing data, you should add a new migration. In that case, the command should be the following.
The migration looks fine, like any migration. Did the console output display that the migration was processed?
If so, it might be a good idea to check the values in your
.env
:And ensure they are the same as the values that you use to connect to phpmyadmin.