简体   繁体   English

Codeigniter项目的数据库错误

[英]Database Error with Codeigniter Project

I have created a website using codeigniter. 我使用codeigniter创建了一个网站。 When i move my site from local server to live server and making changes to the db file accordingly It still shows a database error 1146. Here is the error 当我将我的站点从本地服务器移动到实时服务器并相应地更改db文件它仍然显示数据库错误1146.这是错误

A Database Error Occurred 发生数据库错误

Error Number: 1146 错误号码:1146

Table 'cinodext_webcm.DATA' doesn't exist 表'cinodext_webcm.DATA'不存在

SELECT * FROM DATA WHERE TYPE = 'MOVIE' ORDER BY ID DESC SELECT * FROM DATA WHERE TYPE ='MOVIE'ORDER BY ID DESC

Filename: /home/cinodext/public_html/models/site_upload.php 文件名:/home/cinodext/public_html/models/site_upload.php

Line Number: 70 行号:70

Any Help??? 任何帮助???

Firs, check your DB setting in /applications/config/dababases.php. Firs,检查/applications/config/dababases.php中的数据库设置。

Then, try to connect manually from the web server, and run the query: 然后,尝试从Web服务器手动连接,并运行查询:

mysql -h <hostname> -u <username> -p<password>
USE cinodext_webcm;
SELECT * FROM `data` WHERE `type` = 'MOVIE' ORDER BY ID DESC

This should help you understand where the error is generated from. 这可以帮助您了解错误的生成位置。

检查连接用户的权限。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM