(13 Feb, 2014, 8:08 am)loko714 escribió: Resulta que e instalado el plugins Board Messages - 2.0.0 y no me funciona, cuando le doy a "instalar y activar" me salta un mensaje:
MyBB has experienced an internal SQL error and cannot continue.
SQL Error:
1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'Type=MyISAM' at line 8
Query:
CREATE TABLE mybb_board_messages ( `mid` int(10) unsigned NOT NULL auto_increment, `message` text NOT NULL, `class` varchar(255) NOT NULL, `global` tinyint(1) NOT NULL default '1', `enabled` tinyint(1) NOT NULL default '0', PRIMARY KEY (mid) ) Type=MyISAM;
TAMBIEN ME PASA CON EL PLUGINS Thanks - 3.9.1
MyBB has experienced an internal SQL error and cannot continue.
SQL Error:
1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 't delete table','onoff','1','1','24')' at line 3
Query:
INSERT INTO mybb_settings (`name`,`title`,`description`,`optionscode`,`value`,`disporder`,`gid`) VALUES ('thx_active','Activate/Deactivate this plugin','Activate or deactivate plugin but doesn't delete table','onoff','1','1','24')
Espero solucionarlo, Gracias de antemano.
<?php
CREATE TABLE IF NOT EXISTS `mybb_board_messages` (
`mid` int(10) NOT NULL AUTO_INCREMENT,
`message` text NOT NULL,
`class` varchar(255) NOT NULL,
`global` tinyint(1) NOT NULL,
`enabled` tinyint(1) NOT NULL,
PRIMARY KEY (`mid`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
<?php
$db->write_query("
CREATE TABLE ".TABLE_PREFIX."board_messages (
`mid` int(10) unsigned NOT NULL auto_increment,
`message` text NOT NULL,
`class` varchar(255) NOT NULL,
`global` tinyint(1) NOT NULL default '1',
`enabled` tinyint(1) NOT NULL default '0',
PRIMARY KEY (mid)
) Type=MyISAM;
");
}
<?php
$db->write_query("
CREATE TABLE IF NOT EXISTS `mybb_board_messages` (
`mid` int(10) NOT NULL AUTO_INCREMENT,
`message` text NOT NULL,
`class` varchar(255) NOT NULL,
`global` tinyint(1) NOT NULL,
`enabled` tinyint(1) NOT NULL,
PRIMARY KEY (`mid`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
");
}
<?php
CREATE TABLE IF NOT EXISTS `mybb_thx` (
`txid` int(10) NOT NULL AUTO_INCREMENT,
`uid` int(10) NOT NULL,
`adduid` int(10) NOT NULL,
`time` bigint(30) NOT NULL DEFAULT '0' ,
PRIMARY KEY (`txid`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;