• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Database Error "no such table: z_ots_comunication"

Kody

New Member
Joined
Jul 31, 2010
Messages
11
Reaction score
1
The full error is:
Code:
[OTSYS_SQLITE3_PREPARE(): SQLITE ERROR: no such table: z_ots_comunication (SELECT * FROM "z_ots_comunication" WHERE "type" = 'login';)
oeqgQWG.png


I've searched for this same error, found several threads about how to fix it.

This is what i've been told to add to my database:
Code:
CREATE TABLE IF NOT EXISTS `z_ots_comunication` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(255) NOT NULL,
  `login` varchar(255) NOT NULL,
  `type` varchar(255) NOT NULL,
  `action` varchar(255) NOT NULL,
  `param1` varchar(255) NOT NULL,
  `param2` varchar(255) NOT NULL,
  `param3` varchar(255) NOT NULL,
  `param4` varchar(255) NOT NULL,
  `param5` varchar(255) NOT NULL,
  `param6` varchar(255) NOT NULL,
  `param7` varchar(255) NOT NULL,
  `delete_it` int(2) NOT NULL DEFAULT '1',
  PRIMARY KEY (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=230 ;

After entering this into my database, i get this error:

Code:
near "AUTO_INCREMENT": syntax error:
NijTWcj.png

And this is where I'm lost. How do I get this to work? I don't like being spammed every 5 seconds with the error.
If this helps any, I use SQLite, and not MySQL
 
The full error is:
Code:
[OTSYS_SQLITE3_PREPARE(): SQLITE ERROR: no such table: z_ots_comunication (SELECT * FROM "z_ots_comunication" WHERE "type" = 'login';)
oeqgQWG.png


I've searched for this same error, found several threads about how to fix it.

This is what i've been told to add to my database:
Code:
CREATE TABLE IF NOT EXISTS `z_ots_comunication` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(255) NOT NULL,
  `login` varchar(255) NOT NULL,
  `type` varchar(255) NOT NULL,
  `action` varchar(255) NOT NULL,
  `param1` varchar(255) NOT NULL,
  `param2` varchar(255) NOT NULL,
  `param3` varchar(255) NOT NULL,
  `param4` varchar(255) NOT NULL,
  `param5` varchar(255) NOT NULL,
  `param6` varchar(255) NOT NULL,
  `param7` varchar(255) NOT NULL,
  `delete_it` int(2) NOT NULL DEFAULT '1',
  PRIMARY KEY (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=230 ;

After entering this into my database, i get this error:

Code:
near "AUTO_INCREMENT": syntax error:
NijTWcj.png

And this is where I'm lost. How do I get this to work? I don't like being spammed every 5 seconds with the error.
If this helps any, I use SQLite, and not MySQL

Try this instead:

SQL:
CREATE TABLE IF NOT EXISTS `z_ots_comunication` (
`id` int(11) NOT NULL IDENTITY (230, 1),
`name` varchar(255) NOT NULL,
`login` varchar(255) NOT NULL,
`type` varchar(255) NOT NULL,
`action` varchar(255) NOT NULL,
`param1` varchar(255) NOT NULL,
`param2` varchar(255) NOT NULL,
`param3` varchar(255) NOT NULL,
`param4` varchar(255) NOT NULL,
`param5` varchar(255) NOT NULL,
`param6` varchar(255) NOT NULL,
`param7` varchar(255) NOT NULL,
`delete_it` int(2) NOT NULL DEFAULT '1',
PRIMARY KEY (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=latin1 ;

or just use code from here:

SQLITE ERROR: no such table: z_ots_comunication
 
Last edited:
Back
Top