The execution result of the database transfer command phpartisanmigrate is as follows:
However, the user name and password of my database are correct. the environment variables are set as follows:
The database used is Test.
This should be okay, right?
I also checked the version number of mysql installed by myself, which is as follows:
As we know, it is very likely that the database username and password are incorrect. it is still not possible to re-set the password for testing... However, when you log on to the local mysql independently, the password is correct and the root user is used. However, if you use php artisan migrate, the database migration is still unsuccessful... I don't know how to solve this problem. please answer it as soon as possible...
Reply to discussion (solution)
Are you using phpstudy?
Log on to the command line.
The error message is that the user name or password is incorrect.
The problem was solved at last night. because I was busy, I forgot to close the post ,,,
The final reason is that I made a mistake and didn't synchronize the mysql password to. env. (I forgot too much to change it.) I will pay attention to the details later ~