Ticket #482 (closed Bug: invalid)

Opened 9 months ago

Last modified 8 months ago

Mysql Driver - Unknown Exception: database.error

Reported by: isaiahdw Owned by: Shadowhand
Priority: minor Milestone: 2.1.2
Component: Core Version: SVN HEAD
Keywords: Cc:

Description

This is with php 5.2.1 and mysql 5.0.32.

Here is the full error message:

Database Error

A database error occurred while performing the requested procedure. Please review the database error below for more information.

system/libraries/drivers/Database/Mysql.php [379]:

Unknown Exception: database.error Stack Trace

  • system/libraries/drivers/Database/Mysql.php [94]:

Mysql_Result->construct( )

  • system/libraries/Database.php [232]:

Database_Mysql_Driver->query( SELECT * FROM uj_sessions WHERE session_id = '641c6e5c70c420dcf8a67c3c0500cefe' )

  • system/libraries/Database.php [719]:

Database_Core->query( SELECT * FROM uj_sessions WHERE session_id = '641c6e5c70c420dcf8a67c3c0500cefe' )

  • system/libraries/drivers/Session/Database.php [75]:

Database_Core->get( )

*

Session_Database_Driver->read( 641c6e5c70c420dcf8a67c3c0500cefe )

  • system/libraries/Session.php [153]:

session_start( )

  • system/libraries/Session.php [107]:

Session_Core->create( )

  • system/libraries/Session.php [36]:

Session_Core->construct( )

  • modules/auth/libraries/Auth.php [44]:

Session_Core::instance( )

  • application/controllers/loader.php [27]:

Auth_Core->construct( )

  • system/core/Kohana.php [261]:

Loader_Controller->construct( )

*

Kohana::instance( )

  • system/core/Event.php [217]:

call_user_func( Array (

[0] => Kohana [1] => instance

)

)

  • system/core/Bootstrap.php [53]:

Event::run( system.execute )

require( system/core/Bootstrap.php )

Loaded in 1.3615 seconds, using 1.68MB of memory. Generated by Kohana v2.2.

Change History

Changed 9 months ago by isaiahdw

I figured out the reason it was throwing this exception message. It wasn't able to select the database name I had set in the database.php config file.

However it would be nice to update the exception to show what the problem is ;)

Changed 8 months ago by Shadowhand

  • status changed from new to closed
  • resolution set to invalid
Note: See TracTickets for help on using tickets.