I am using Codeigniter, and that i have haven't had any issues hooking up towards the database previously.

I had been doing a bit of restructuring from the database (adding posts, placing data, etc), and today I recieve a mistake that only from time to time seems. It doesn't show up on any sort of page, in most cases vanishes after refresh. Only seems every 10-20 occasions I notice a page.

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

Filename: core/Loader.php

Line Number: 242

Appears to be really like the problem here: Trouble with HMVC modular extensions for CodeIgniter

Appears like maybe it's a trouble with the database itself? Any suggestions could be appreciated....

Appears like database problem in my experience, not CI. Maybe your database files are corrupted?