<i id='wOTvR'><tr id='wOTvR'><dt id='wOTvR'><q id='wOTvR'><span id='wOTvR'><b id='wOTvR'><form id='wOTvR'><ins id='wOTvR'></ins><ul id='wOTvR'></ul><sub id='wOTvR'></sub></form><legend id='wOTvR'></legend><bdo id='wOTvR'><pre id='wOTvR'><center id='wOTvR'></center></pre></bdo></b><th id='wOTvR'></th></span></q></dt></tr></i><div id='wOTvR'><tfoot id='wOTvR'></tfoot><dl id='wOTvR'><fieldset id='wOTvR'></fieldset></dl></div>
  • <small id='wOTvR'></small><noframes id='wOTvR'>

    • <bdo id='wOTvR'></bdo><ul id='wOTvR'></ul>
    <legend id='wOTvR'><style id='wOTvR'><dir id='wOTvR'><q id='wOTvR'></q></dir></style></legend>

    1. <tfoot id='wOTvR'></tfoot>
      1. yii2 安装 - 迁移命令不起作用

        yii2 installation - migrate command not working(yii2 安装 - 迁移命令不起作用)
          1. <small id='yVOYW'></small><noframes id='yVOYW'>

            <i id='yVOYW'><tr id='yVOYW'><dt id='yVOYW'><q id='yVOYW'><span id='yVOYW'><b id='yVOYW'><form id='yVOYW'><ins id='yVOYW'></ins><ul id='yVOYW'></ul><sub id='yVOYW'></sub></form><legend id='yVOYW'></legend><bdo id='yVOYW'><pre id='yVOYW'><center id='yVOYW'></center></pre></bdo></b><th id='yVOYW'></th></span></q></dt></tr></i><div id='yVOYW'><tfoot id='yVOYW'></tfoot><dl id='yVOYW'><fieldset id='yVOYW'></fieldset></dl></div>

            <legend id='yVOYW'><style id='yVOYW'><dir id='yVOYW'><q id='yVOYW'></q></dir></style></legend>
                <tbody id='yVOYW'></tbody>

                <bdo id='yVOYW'></bdo><ul id='yVOYW'></ul>
                • <tfoot id='yVOYW'></tfoot>
                  本文介绍了yii2 安装 - 迁移命令不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我正在尝试在 ubuntu 中安装 yii2.

                  I am trying to install yii2 in ubuntu.

                  yii2 迁移命令不起作用

                  yii2 migrate command not working

                  yii migrate
                  

                  我收到以下错误

                  php yii /var/www/event-tracking/migrate
                  PHP Deprecated:  Comments starting with '#' are deprecated in /etc/php5/cli/conf.d/ming.ini on line 1 in Unknown on line 0
                  Could not open input file: yii
                  

                  推荐答案

                  安装应用程序后,您必须进行以下步骤来初始化已安装的应用程序.您只需要一次性完成这些操作.

                  After you install the application, you have to conduct the following steps to initialize the installed application. You only need to do these once for all.

                  执行init命令并选择dev作为环境.

                  Execute the init command and select dev as environment.

                  php /path/to/yii-application/init
                  

                  创建一个新数据库并相应地调整common/config/main-local.php 中的components.db 配置.

                  Create a new database and adjust the components.db configuration in common/config/main-local.php accordingly.

                  使用控制台命令应用迁移:

                  Apply migrations with console command:

                  yii 迁移

                  或 Windows:

                  or for windows:

                  php yii migrate
                  

                  这个命令应该在你的数据库中创建表 User,and Migration

                  This command should create the table User,and Migration in your database

                  ref [Yii2 文档]

                  这篇关于yii2 安装 - 迁移命令不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  DeepL的翻译效果还是很强大的,如果我们要用php实现DeepL翻译调用,该怎么办呢?以下是代码示例,希望能够帮到需要的朋友。 在这里需要注意,这个DeepL的账户和api申请比较难,不支持中国大陆申请,需要拥有香港或者海外信用卡才行,没账号的话,目前某宝可以
                  PHP通过phpspreadsheet导入Excel日期,导入系统后,全部变为了4开头的几位数字,这是为什么呢?原因很简单,将Excel的时间设置问文本,我们就能看到该日期本来的数值,上图对应的数值为: 要怎么解决呢?进行数据转换就行,这里可以封装方法,或者用第三方的
                  mediatemple - can#39;t send email using codeigniter(mediatemple - 无法使用 codeigniter 发送电子邮件)
                  Laravel Gmail Configuration Error(Laravel Gmail 配置错误)
                  Problem with using PHPMailer for SMTP(将 PHPMailer 用于 SMTP 的问题)
                  Issue on how to setup SMTP using PHPMailer in GoDaddy server(关于如何在 GoDaddy 服务器中使用 PHPMailer 设置 SMTP 的问题)

                    <small id='uwVP0'></small><noframes id='uwVP0'>

                  • <tfoot id='uwVP0'></tfoot>
                    <legend id='uwVP0'><style id='uwVP0'><dir id='uwVP0'><q id='uwVP0'></q></dir></style></legend>
                    <i id='uwVP0'><tr id='uwVP0'><dt id='uwVP0'><q id='uwVP0'><span id='uwVP0'><b id='uwVP0'><form id='uwVP0'><ins id='uwVP0'></ins><ul id='uwVP0'></ul><sub id='uwVP0'></sub></form><legend id='uwVP0'></legend><bdo id='uwVP0'><pre id='uwVP0'><center id='uwVP0'></center></pre></bdo></b><th id='uwVP0'></th></span></q></dt></tr></i><div id='uwVP0'><tfoot id='uwVP0'></tfoot><dl id='uwVP0'><fieldset id='uwVP0'></fieldset></dl></div>
                      <bdo id='uwVP0'></bdo><ul id='uwVP0'></ul>
                            <tbody id='uwVP0'></tbody>