0

I have created a website using CodeIgniter. When I move my site from local server to live server and making changes to the db file accordingly, it still shows database error 1146. Here is the error:

A Database Error Occurred

Error Number: 1146

Table 'cinodext_webcm.DATA' doesn't exist

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

Filename: /home/cinodext/public_html/models/site_upload.php

Line Number: 70

3
  • 1
    Looks like your DATA table doesn't exist Commented Oct 23, 2013 at 5:09
  • @NULL I have checked my database and this table exists inside the database Commented Oct 23, 2013 at 5:16
  • If you move your website from Window to Linux server the table name becomes case sensitive. Please check it. Commented Oct 23, 2013 at 5:55

2 Answers 2

2

Firs, check your DB setting in /applications/config/dababases.php.

Then, try to connect manually from the web server, and run the query:

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.

Sign up to request clarification or add additional context in comments.

2 Comments

the space in not obligatory
TIL - the space is optional for usernames ;)
0

Check your connection user's permissions.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.