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.

Adding custom Menu items to Spreadsheet

You have written your first Apps Script and it runs perfectly from the script editor, good job so far. But did you know you can add custom menu items to your Spreadsheet ? I briefly explained this in the post " Add / Delete Calendar event with Google Apps Script " and I will explain further here how the method responsible for adding menu works with an example script.