vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Spam-o-matic database error (https://vborg.vbsupport.ru/showthread.php?t=315779)

dj83 12-02-2014 01:07 PM

Spam-o-matic database error
 
Hello,

I am trying to install spam-o-matic but I keep getting the following error...
How can I fix this?

Database error in vBulletin 3.8.2:

Invalid SQL:
CREATE TABLE IF NOT EXISTS `vb_glowhostspamomatic_log`(
`date` DATETIME NOT NULL,
`ip` VARCHAR(15) NOT NULL,
`email` VARCHAR(255) NOT NULL,
`username` VARCHAR(255) NOT NULL,
`message` VARCHAR(255) NOT NULL,
`is_blocked` TINYINT NOT NULL DEFAULT "0",
`user_hash` VARCHAR(50) NOT NULL,
`user_id` INT NOT NULL
) TYPE=MyISAM;;

MySQL Error : 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 10
Error Number : 1064
Request Date : Tuesday, December 2nd 2014 @ 09:01:31 AM
Error Date : Tuesday, December 2nd 2014 @ 09:01:31 AM
Script : http://myurl.com/admincp/plugin.php?do=productimport
Referrer : http://myurl.com/admincp/plugin.php?do=productadd
IP Address :
Username :
Classname : vB_Database
MySQL Version : 5.5.40-36.1

Dave 12-02-2014 01:13 PM

Should work if you remove

PHP Code:

TYPE=MyISAM

from the installation code.

ForceHSS 12-02-2014 01:25 PM

You should be posting this in the plugin for support but try Dave's post first

HM666 12-02-2014 09:50 PM

And if that does not work you can try to change:

Code:

TYPE=MyISAM;
To

Code:

TYPE=ENGINE;
instead.

ozzy47 12-02-2014 09:55 PM

No, no, no, not TYPE=ENGINE; it's ENGINE=MyISAM;

HM666 12-02-2014 09:59 PM

Quote:

Originally Posted by ozzy47 (Post 2525332)
No, no, no, not TYPE=ENGINE; it's ENGINE=MyISAM;

Ok I know there were some mods that you had to change that bit or at least I've had to change it because it disliked my server for whatever reason.

ozzy47 12-02-2014 10:02 PM

Right but it is not TYPE=Engine, that is just wrong. :)

The older TYPE= option was synonymous with ENGINE=. TYPE was deprecated in MySQL 4.0 and removed in MySQL 5.5. When upgrading to MySQL 5.5 or later, you must convert existing applications that rely on TYPE to use ENGINE instead.

HM666 12-02-2014 10:04 PM

Quote:

Originally Posted by ozzy47 (Post 2525336)
Right but it is not TYPE=Engine, that is just wrong. :)

The older TYPE= option was synonymous with ENGINE=. TYPE was deprecated in MySQL 4.0 and removed in MySQL 5.5. When upgrading to MySQL 5.5 or later, you must convert existing applications that rely on TYPE to use ENGINE instead.

Ok :) Well hopefully the other suggestions have helped him/her out.

ozzy47 12-02-2014 10:24 PM

Sure, either removing TYPE=MyISAM; or changing it to ENGINE=MyISAM; will allow the OP to import the mod.

But any issues after that, the OP will have to ask for support in the modifications thread. :)

HM666 12-02-2014 10:52 PM

Quote:

Originally Posted by ozzy47 (Post 2525343)
Sure, either removing TYPE=MyISAM; or changing it to ENGINE=MyISAM; will allow the OP to import the mod.

But any issues after that, the OP will have to ask for support in the modifications thread. :)

OH GEEZ, I'm having such a brain fart! Ok yeah that is what I've done before. Sorry for my dyslexia before lol.


All times are GMT. The time now is 06:29 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01056 seconds
  • Memory Usage 1,738KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (1)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete