Dag Helpmij'ers,
Ik ben momenteel bezig om een database via PHP te importeren.
Alleen krijg ik een error bij het importeren:
Dit is de SQL die ik wil importeren:
Groeten,
Ramon Smit
Ik ben momenteel bezig om een database via PHP te importeren.
Alleen krijg ik een error bij het importeren:
HTML:
MySQL: 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 'CREATE TABLE IF NOT EXISTS manx_mbb ( `id` int(11) NOT NULL AUTO_INCREMENT, ' at line 8
Dit is de SQL die ik wil importeren:
Code:
CREATE TABLE IF NOT EXISTS `manx_log` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`log_text` text NOT NULL,
`time` int(11) NOT NULL,
PRIMARY KEY (`id`)
);
CREATE TABLE IF NOT EXISTS manx_mbb (
`id` int(11) NOT NULL AUTO_INCREMENT,
`bb_tag` varchar(255) NOT NULL,
`search_tag` varchar(255) NOT NULL,
`replace_code` text NOT NULL,
`bb_desc` text NOT NULL,
PRIMARY KEY (`id`)
);
INSERT INTO `manx_mbb` (`id`, `bb_tag`, `search_tag`, `replace_code`, `bb_desc`) VALUES
(1, '[blink]Text[/blink]', '_\\[blink\\](.*?)\\[/blink\\]_si', '<blink>$1</blink>', 'The text between these tags wil blink (FireFox)');
CREATE TABLE IF NOT EXISTS `manx_media` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`media_path` varchar(255) NOT NULL,
`media_filename` varchar(255) NOT NULL,
`media_date` int(11) NOT NULL,
`media_mime` varchar(255) NOT NULL,
`media_id` varchar(255) NOT NULL,
`media_hits` int(255) NOT NULL,
PRIMARY KEY (`id`)
);
CREATE TABLE IF NOT EXISTS `manx_messages` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`from_app` varchar(255) NOT NULL,
`tohash` varchar(255) NOT NULL,
`subject` varchar(255) NOT NULL,
`didread` enum('0','1') NOT NULL DEFAULT '0',
`date` int(11) NOT NULL,
`message` text NOT NULL,
PRIMARY KEY (`id`)
);
CREATE TABLE IF NOT EXISTS `manx_pages` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`title` varchar(255) NOT NULL,
`content` text NOT NULL,
`urlname` varchar(255) NOT NULL,
`postdate` int(11) NOT NULL,
`pageindex` int(11) NOT NULL,
`published` enum('true','false') NOT NULL DEFAULT 'true',
PRIMARY KEY (`id`),
UNIQUE KEY `urlname` (`urlname`)
);
INSERT INTO `manx_pages` (`id`, `title`, `content`, `urlname`, `postdate`, `pageindex`, `published`) VALUES
(1, 'Home', 'This is your first page!', 'index', 1345731320, 0, 'true'),
CREATE TABLE IF NOT EXISTS `manx_plugins` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`plugin_name` varchar(255) NOT NULL,
`plugin_desc` text NOT NULL,
`plugin_filename` varchar(255) NOT NULL,
`plugin_md5` varchar(255) NOT NULL,
`plugin_installdate` int(11) NOT NULL,
`plugin_inuse` enum('true','false') NOT NULL DEFAULT 'false',
`plugin_permissions` enum('0','1') NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
UNIQUE KEY `plugin_installdate` (`plugin_installdate`),
UNIQUE KEY `plugin_md5` (`plugin_md5`),
UNIQUE KEY `plugin_name` (`plugin_name`)
);
CREATE TABLE IF NOT EXISTS `manx_settings` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`set_key` varchar(255) NOT NULL,
`set_val` text NOT NULL,
`set_descr` varchar(255) NOT NULL,
PRIMARY KEY (`id`)
);
INSERT INTO `manx_settings` (`id`, `set_key`, `set_val`, `set_descr`) VALUES
(1, 'license', '', ''),
(2, 'lang', 'en_EN', ''),
(3, 'mxValidCheck', '', ''),
(4, 'licemail', '', ''),
(5, 'token', '', ''),
(6, 'sitetitle', '', ''),
(7, 'sitemeta', '<META NAME="Language" CONTENT="english">\r\n<META NAME="Keywords" CONTENT="Website">\r\n\r\n<META HTTP-EQUIV="Content-Language" CONTENT="en-EN">\r\n', ''),
(8, 'mxJsonSendout', '', ''),
(9, 'MXFirstPage', 'index', ''),
(10, 'UseLog', '1', '1 = on & 0 = off'),
(11, 'MXMenuStopTag', '</div>', ''),
(12, 'MXMenuStartTag', '<div class="link">', ''),
(13, 'template', 'Simple', ''),
(14, 'sidebar', '', 'It''s optional and HTML..'),
(15, 'MANXCHIPPER', 'false', '');
CREATE TABLE IF NOT EXISTS `manx_users` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`username` varchar(255) NOT NULL,
`password` varchar(255) NOT NULL,
`ehash` varchar(255) NOT NULL,
`email` varchar(255) NOT NULL,
`regdate` varchar(255) NOT NULL,
`avatar` varchar(255) NOT NULL,
`fullname` varchar(255) NOT NULL,
`rank` enum('user','mod','admin','kernel') NOT NULL DEFAULT 'user',
PRIMARY KEY (`id`)
);
CREATE TABLE IF NOT EXISTS `manx_visitors` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`ip_ua` varchar(255) NOT NULL,
`visits` int(11) NOT NULL,
`lastmov` varchar(255) NOT NULL,
`accessdate` int(11) NOT NULL,
PRIMARY KEY (`id`)
);
Groeten,
Ramon Smit