Skip to main content

FuelPhp Error - Invalid data source name


If you are new to FuelPhp, chances are you might have faced one or two errors during your setup. One of the common errors has to do with configuring the database for your app. If you keep coming across the error below, it could be due to two reasons.


1. You have probably not entered the right details in your db.php located in app/config/development/db.php or app/config/production/db.php. The only difference between these two is that one configuration file is used when your app is in development mode and the other (in the Production folder) is used when you set your app to be in production mode. Just enter the right database settings and you might be fine :) else try the second option below. 

2. You have not created the database at all. Go ahead and create the database you entered in your db.php file and you should be fine. 

Comments

Popular posts from this blog

EC isn't prepared to take technology to the next level in Elections

In Election 2012, Ghana's EC introduces a new process to verify voters before they are allowed to cast their vote. This was in the form of biometric verification, a good idea but poorly not so well implemented.

6 other cool things you can use #GAS for

Google Apps Script is useful for building simple and complicated solutions on top of the various editions of   Google Apps ; Business , Education and Government . You can still write GAS code with your gmail account from your drive  even if you don't have an Apps account. Writing Google Apps Script is very easy, if you know how to write javascript, it gets easy for you.