Go Back   vb.org Archive > Community Discussions > Forum and Server Management
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 01-24-2009, 01:19 PM
Madbatty Madbatty is offline
 
Join Date: Jun 2007
Posts: 29
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Execute SQL

After moving our forum from one host to another, we have upload all files to the server. Run the SQL BackUp by using MySQL without any problems. But now we have a lil problem to Execute the SQL. There are three option to do that.

1. Enter an SQL command to execute on database

2. Select an SQL commands file to execute on database
This can also be used to restore a MySQL backup, which is just a file of SQL commands.

3. Select a text data file to import into MySQL database
This file must contain one database record per line, with the fields in either tab separated or CSV format.

We have try almost everything to Execute the BackUp, but does not work, so if anyone may know how to do that or have the correct command for it, please let me know.
Reply With Quote
  #2  
Old 01-24-2009, 02:36 PM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The only reliable method of backing up and restoring a database is with shell access via telnet or ssh. This is because backing up with a PHP script like that in the Admin CP or phpMyAdmin can result in PHP timeouts errors and an incomplete backup file. Please see the instructions here:

Backup:
http://www.vbulletin.com/docs/html/m...nce_ssh_backup

Restore:
http://www.vbulletin.com/docs/html/m...ce_ssh_restore

P.S. If you don't have shell access, some people have also reported success with these scripts:

MySQLDumper:
http://www.mysqldumper.de/en/index.php

MySQLHotxcopy:
http://www.vbulletin.com/forum/showt...t=mysqlhotcopy

Bigdump:
http://www.ozerov.de/bigdump.php
Reply With Quote
  #3  
Old 01-24-2009, 03:39 PM
Madbatty Madbatty is offline
 
Join Date: Jun 2007
Posts: 29
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks Marco

but all charts and tables are already recreated ( without any problems or errors ) and only when I click on execute the SQL I need a special command or a special TXT file ( I guess based on the Host Webmin CP we are using ) to execute it, the rest is already done and works fine. So in case someone know about what I?m talking or know the execute command to do that please help.

Here are two screenshots to explain the problem a little bit better, as you can see on the drop down menu
all needed charts are there again without that I receive a error message:

-http://i40.tinypic.com/34zhhe1.jpg

only for this last thing I?m not sure about what to do:

-http://i43.tinypic.com/5vzn9l.jpg
Reply With Quote
  #4  
Old 01-24-2009, 04:18 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I don't understand what you are trying to do. Are you trying to create a backup of your database or are you trying to import a database?

Do you have shell access to your site?
Reply With Quote
  #5  
Old 01-24-2009, 04:27 PM
Madbatty Madbatty is offline
 
Join Date: Jun 2007
Posts: 29
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I (we) only try to recreate (import) the Database etc. thats all. The SQL charts and tables are all recreated but the threads does not show on the forum again, and yes I (we) have shell access. After the BackUp was installed I got asked to execute the SQL to finish the BackUp. Maybe I´m wrong about something but as far as I can see all charts and tables are back and running, also the Database size is the same.
Reply With Quote
  #6  
Old 01-24-2009, 05:13 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

So what you're saying is you've been asked to run one last mysql command for some reason (what is it supposed to do?) and you aren't sure where to input this command? You can enter a mysql command in that box in your second image or in the Admin CP > Maintenance > Execute SQL Query
Reply With Quote
  #7  
Old 01-24-2009, 05:17 PM
Madbatty Madbatty is offline
 
Join Date: Jun 2007
Posts: 29
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yes I know Lynne but I don?t know this command for example that is my problem. I also google it up but found nothing for that case. So if you may know this command PLEASE let me know but I will try now your second tip thx so far.

Edit: Okay I try that but receive "You are not authorized to execute SQL queries" and I am Root Admin and No.1 in the config oO^^
Reply With Quote
  #8  
Old 01-24-2009, 05:20 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I don't understand what command you want. Marco posted links to pages that give the commands to import a backup. If that isn't the command you want, then I'm not sure what you want. If your backup is from a different version than what your files are for, then you will need to run the upgrade script to upgrade the database to the current version of vb you are running.
Reply With Quote
  #9  
Old 01-24-2009, 05:25 PM
Madbatty Madbatty is offline
 
Join Date: Jun 2007
Posts: 29
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

We did upgrade to 3.8 maybe 2 weeks ago and the BackUp I try to use is only 2 days old and the new forum that is running is also 3.8 would be kewl if you may could tell me what I need to do to have permission to run Execute SQL Query like you mention before. I will now check all links again Marco posted and see if I may find a command that helps. Thanks !
Reply With Quote
  #10  
Old 01-24-2009, 05:29 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

In order to execute a sql query in the admin cp area, you need to add your userid into the space in the config.php file that allows users to run queries:

PHP Code:
    //    ****** USERS WITH QUERY RUNNING PERMISSIONS ****** 
    //    The users specified here will be allowed to run queries from the control panel. 
    //    See the above entries for more information on the format. 
    //    Please note that the ability to run queries is quite powerful. You may wish 
    //    to remove all user IDs from this list for security reasons. 
$config['SpecialUsers']['canrunqueries'] = ''
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:22 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.04028 seconds
  • Memory Usage 2,248KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete