Pets MySQL Error [PLUS R2] Missing table

Results 1 to 2 of 2
  1. #1
    Member K Camp is offline
    MemberRank
    Jun 2014 Join Date
    Spring BreakLocation
    58Posts

    Pets MySQL Error [PLUS R2] Missing table

    Does someone has the table for me? I can't find it.


    PHP Code:
    Error in querySELECT FROM pets WHERE room_id 14MySql.Data.MySqlClient.MySqlException (0x80004005): Table 'hotel.pets' doesn't exist   at MySql.Data.MySqlClient.MySqlStream.ReadPacket()   at MySql.Data.MySqlClient.NativeDriver.GetResult(Int32& affectedRow, Int32& insertedId)   at MySql.Data.MySqlClient.Driver.NextResult(Int32 statementId, Boolean force)   at MySql.Data.MySqlClient.MySqlDataReader.NextResult()   at MySql.Data.MySqlClient.MySqlCommand.ExecuteReader(CommandBehavior behavior)   at MySql.Data.MySqlClient.MySqlCommand.ExecuteDbDataReader(CommandBehavior behavior)   at System.Data.Common.DbCommand.System.Data.IDbCommand.ExecuteReader(CommandBehavior behavior)   at System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior)   at System.Data.Common.DbDataAdapter.Fill(DataTable[] dataTables, Int32 startRecord, Int32 maxRecords, IDbCommand command, CommandBehavior behavior)   at System.Data.Common.DbDataAdapter.Fill(DataTable dataTable)   at Database_Manager.Database.Session_Details.QueryAdapter.getTable() in C:\Users\Administrator\Desktop\TempEMU\DatabaseManager\Database_Manager\Database\Session_Details\QueryAdapter.cs:line 144 


  2. #2
    Member TheWulles is offline
    MemberRank
    Jan 2014 Join Date
    SP - BrazilLocation
    53Posts

    Re: Pets MySQL Error [PLUS R2] Missing table

    Please run this in your database:
    PHP Code:
    CREATE TABLE IF NOT EXISTS `pets` (  `idint(10unsigned NOT NULL AUTO_INCREMENT,  `room_idint(10unsigned NOT NULL DEFAULT '0',  `user_idint(10unsigned NOT NULL DEFAULT '0',  `namevarchar(100NOT NULL,  `xint(11NOT NULL DEFAULT '0',  `yint(11NOT NULL DEFAULT '0',  `zint(11NOT NULL DEFAULT '0',  `rotationint(11NOT NULL DEFAULT '0',  `walk_modeenum('stand','freeroam','specified_range'NOT NULL DEFAULT 'freeroam',  `min_xint(11NOT NULL DEFAULT '0',  `min_yint(11NOT NULL DEFAULT '0',  `max_xint(11NOT NULL DEFAULT '0',  `max_yint(11NOT NULL DEFAULT '0',  PRIMARY KEY (`id`),  KEY `room_id` (`room_id`),  KEY `user_id` (`user_id`)) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=5404 



Advertisement