laravel5.3 running data migration, error is as follows:

Source: Internet
Author: User

Supplementary questions:
Reading data is no problem.
Configuration in the database.php

Configuration in. env

Reply content:

Supplementary questions:
Reading data is no problem.
Configuration in the database.php

Configuration in. env

' Default ' = env (' db_connection ', ' MySQL '), will go to the. env file to find the configuration of db_connection, if the. Env does not db_connection this field, the default use of env () The second parameter of the function as the value, in. env you have set the Db_connection=mysql, then it will go to connections to find the key named ' MySQL ' Configuration, and you will ' MySQL ' Key name changed to ' ZCBO ', That will not find the configuration of MySQL, or the. env in the value of the db_connection to ZCBO, or the connections in the ZCBO to change back to MySQL, since you are not familiar with Laravel now, Do not take for granted to change some of the configuration, not to mention the connections in the MySQL into ZCBO, which means what purpose?

The hand to change MySQL to ZCBO of course can not find, since change you also put env file changed AH is drunk

  • 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.