vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   how to create mysql table (https://vborg.vbsupport.ru/showthread.php?t=305746)

gsmlover4u 12-11-2013 12:16 PM

how to create mysql table
 
how to create database table
activitystream
activitystreamtype
contentread
iplog
navigation

badly i drop those table

Disco_Dave 12-11-2013 12:25 PM

Do you have back-ups of the database?

ForceHSS 12-11-2013 02:11 PM

For what version. If you have a backup you can restore but why did you delete them for

gsmlover4u 12-11-2013 02:40 PM

i have backup
my problem is i am changing server when i import backup
its giving me error
and with out those table database restoring fine
here is errer
Quote:

Error
SQL query:

CREATE TABLE `activitystream` (

`activitystreamid` INT( 10 ) UNSIGNED NOT NULL AUTO_INCREMENT ,
`userid` INT( 10 ) UNSIGNED NOT NULL DEFAULT '0',
`dateline` INT( 10 ) UNSIGNED NOT NULL DEFAULT '0',
`data` MEDIUMTEXT NOT NULL ,
`contentid` INT( 10 ) UNSIGNED NOT NULL DEFAULT '0',
`typeid` INT( 10 ) UNSIGNED NOT NULL DEFAULT '0',
`action` ENUM( 'create', 'edit', 'delete' ) NOT NULL DEFAULT 'create',
`score` DECIMAL( 13, 3 ) NOT NULL DEFAULT '0.000',
PRIMARY KEY ( `activitystreamid` ) ,
KEY `score` ( `score` , `dateline` ) ,
KEY `dateline` ( `dateline` ) ,
KEY `typeid` ( `typeid` , `dateline` ) ,
KEY `typeid_2` ( `typeid` , `score` , `dateline` ) ,
KEY `contentid` ( `contentid` , `typeid` ) ,
KEY `userid` ( `userid` , `dateline` )
) ENGINE = MYISAM AUTO_INCREMENT =140 DEFAULT CHARSET = latin1 PAGE_CHECKSUM =1;

MySQL said: Documentation

#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 'PAGE_CHECKSUM=1' at line 17
--------------- Added [DATE]1386782045[/DATE] at [TIME]1386782045[/TIME] ---------------

problem solved by convert storage engine Aria to innodb


All times are GMT. The time now is 11:40 PM.

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.01146 seconds
  • Memory Usage 1,714KB
  • 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
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete