【问题标题】:CodeIgniter Database Migration ErrorCodeIgniter 数据库迁移错误
【发布时间】:2014-05-05 21:36:18
【问题描述】:

当我通过 url 在 codeigniter 中迁移我的数据库时:hostname/project-name/api/migrate/ 错误显示如图

请帮我解决

【问题讨论】:

  • 这个网址hostname/project-name/api/migrate/ 中有什么内容?它应该做什么?
  • 这将从目录加载迁移文件,并将迁移 php 文件中定义的表
  • 查看 Apache error_log 文件。它应该包含特定的错误。
  • 请发布控制器和迁移类。

标签: php mysql database codeigniter database-migration


【解决方案1】:

尝试将此代码添加到 .htaccess 文件中。我觉得应该有帮助

<IfModule mod_rewrite.c>
RewriteEngine On
#RewriteBase /hafer

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?/$1 [L]
</IfModule>

<IfModule !mod_rewrite.c>
ErrorDocument 404 /index.php
</IfModule>

AddDefaultCharset UTF-8
AddType text/x-component .htc.

AddType video/ogg .ogv
AddType video/mp4 .mp4
AddType video/webm .webm

【讨论】:

    猜你喜欢
    • 2015-06-08
    • 2015-04-06
    • 2016-11-28
    • 2018-10-21
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多