vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   General Hosting/Server Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=197)
-   -   MYSQL error when moving servers (https://vborg.vbsupport.ru/showthread.php?t=124643)

DannyMilner 08-22-2006 02:49 PM

MYSQL error when moving servers
 
I have done vbulletin server moves before, but I am having a problem.

This is a very new forum (It was set up yesterday) but we are needing to move due to server problems.

Anyway when I run the sql in phpmyadmin it gives me this...

Quote:

Error

SQL query:

CREATE TABLE `access` (
`userid` int( 10 ) unsigned NOT NULL default '0',
`forumid` smallint( 5 ) unsigned NOT NULL default '0',
`accessmask` smallint( 5 ) unsigned NOT NULL default '0',
PRIMARY KEY ( `userid` , `forumid` )
) ENGINE = MYISAM DEFAULT CHARSET = latin1;

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 'DEFAULT CHARSET=latin1' at line 6
I would be very greatful is someone could fix me a fix.

Kind regards,
Danny

calorie 08-22-2006 02:55 PM

http://www.vbulletin.com/forum/showthread.php?t=187472 :)

DannyMilner 08-22-2006 03:07 PM

I backed the mysql up via the admincp using "Database Backup"

I am trying to run this sql file in phpmyadmin, is there anyway of editing the sql file to make this work (without using ssh)?

Kind regards

Danny

calorie 08-22-2006 03:21 PM

Try a backup from phpMyAdmin, see http://www.vbulletin.com/forum/showthread.php?t=172971

Paul M 08-22-2006 03:30 PM

Try removing the "DEFAULT CHARSET = latin1" bit from the query, and the semi-colon.

DannyMilner 08-22-2006 03:39 PM

I am unable to backup from phpmyadmin because thatÂ’s the reason we are moving servers (no support and phpmyadmin config is not correct so you want get on phpmyadmin)

I have tried using cpanels mysql backup feature but still errors. I am totally lost. Do you know if I could fix this just by editing the sql I am running.

Thanks

Danny

calorie 08-22-2006 03:40 PM

See what Paul wrote, in post five. ;)

Zachery 08-22-2006 03:55 PM

You need to remove the mysql 4.1 specific formating, namely the character encoding.

DannyMilner 08-22-2006 06:27 PM

Thank you very much for your help!

I have sorted it out, took me a while to do all the edits.

Big thanks!


All times are GMT. The time now is 11:49 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.00990 seconds
  • Memory Usage 1,725KB
  • 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
  • (9)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