2

I'm using Codeigniter, and I have have not had any issues connecting to the database in the past.

I was doing some restructuring of the database (adding columns, inserting data, etc), and now I get an error that only occasionally appears. It does not appear on any specific page, and usually disappears after refresh. Only appears every 10-20 times I view a page.

A Database Error Occurred
Unable to select the specified database: www.site.com

Filename: core/Loader.php

Line Number: 242

Seems to be very similar to the problem here: Trouble with HMVC modular extensions for CodeIgniter

Looks like it could be a problem with the database itself? Any suggestions would be appreciated....

Community
  • 1
  • 1
Marty Thomas
  • 857
  • 2
  • 9
  • 18

2 Answers2

0

It is a database issue. I would suggest you to :

  1. Export the db file
  2. Take a copy of the project
  3. Use a new system and import the db + copy the project folder and see if the problem still remains the same.

Great way to debug the issue.

prat1kk
  • 408
  • 5
  • 12
0

Looks like database problem to me, not CI. Maybe your database files are corrupted?

lokers
  • 2,106
  • 2
  • 18
  • 19