Database transfer command phpartisanmigrate execution problems-php Tutorial

Source: Internet
Author: User
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 ~

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.