title: Kohana - Database_Exception [ 2 ]: mysql_connect()
body: <p>I'm running Kohana v3.2 I'm just trying to get up and running with a small MVC and was recommended this system. I'm following this tutorial: <a href="http://kowsercse.com/2011/09/04/kohana-tutorial-beginners/" rel="nofollow">http://kowsercse.com/2011/09/04/kohana-tutorial-beginners/</a></p>
  
  <p>Everything seemed to be going well until I got down to the add new article section, I created the files but when I point my browser to the article/new controller/action I get this error:</p>
  
  <pre><code>Database_Exception [ 2 ]: mysql_connect() [&lt;a href='function.mysql-connect'&gt;function.mysql-connect&lt;/a&gt;]: Access denied for user 'ODBC'@'localhost' (using password: NO)
  
  MODPATH\database\classes\kohana\database\mysql.php [ 67 ]
  
  62      catch (Exception $e)
  63      {
  64          // No connection exists
  65          $this-&gt;_connection = NULL;
  66 
  67          throw new Database_Exception(':error',
  68              array(':error' =&gt; $e-&gt;getMessage()),
  69              $e-&gt;getCode());
  70      }
  71 
  72      // \xFF is a better delimiter, but the PHP driver uses underscore
  </code></pre>
  
  <p>I'm still new to PHP and very new to Kohana but guessing from the error the ORM is trying to access my database with the username ODBC yet I have not defined this anywhere in the pages/files I have created so far, here is my database.php config which I have located in: application/config</p>
  
  <pre><code>&lt;?php defined('SYSPATH') or die('No direct script access.');
  
  return array
  (
      'default' =&gt; array
      (
          'type'          =&gt; 'mysql',
          'connetion'     =&gt; array
          (
              'hostname'      =&gt; '127.0.0.1',
              'database'      =&gt; 'kohana_blog',
              'username'      =&gt; 'root',
              'password'      =&gt; '',
              'persistent'    =&gt; FALSE,
          ),
          'table_prefix'  =&gt; '',
          'charset'       =&gt; 'UTF8',
          'caching'       =&gt; FALSE,
          'profiling'     =&gt; TRUE,
      )
  );
  </code></pre>
  
  <p>Any ideas would be great thank you :)</p>