Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
Oil Migration Error - Invalid datasource
  • Hi,

    Apologies if this has been asked before, i'm new to Fuel so still finding my way around.

    I've managed to get everything setup correctly (i think) and have tried creating my first scaffolding which has partially work, until i try to migrate to the database.

    When I migrate I get the following errors:

    Uncaught exception Fuel\Core\Database_Exception: invalid data source name
    #0 /Applications/MAMP/htdocs/uxawards/fuel/core/classes/database/connection.php(708): Fuel\Core\Database_PDO_Connection->connect()

    I've done the following to try and rectify the issue bu with no luck:
    changed localhost to in the db config file (both the global and development files)
    created a symlink with /Applications/MAMP/tmp/mysql/mysql.sock /var/mysql/mysql.sock
    My db config file looks like the following:

    return array(
    'default' => array(
    'connection'  => array(
    'dsn'        => 'mysql:host=;dbname=ux_awards_entry',
    'username'   => 'root',
    'password'   => '',

    If you havent gathered i'm using MAMP but have tried with the native OS X apache server but have exactly the same issue.

    I'm at a complete loss what to try next!

    Thanks in advance for the help!

  • Turns out the issue was between the keyboard and the chair, I had been using the incorrect password!

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion