vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   omg wtf..... stupid posts query (https://vborg.vbsupport.ru/showthread.php?t=42778)

DarkDraco07 08-26-2002 08:14 PM

omg wtf..... stupid posts query
 
how come when i backup the posts query from my boards it wont let me upload it in my phpmyadmin. its a big file and i cant just keep uploading and trying again.

when i upload it it says No SQL Query!

NTLDR 08-26-2002 08:23 PM

If it is a very big file it won't work via phpMyAdmin as it will just time out eventually anyway as it can't execute within the required time.

DarkDraco07 08-26-2002 08:52 PM

doh, it is kinda big.
is there anyway i can transfer it??

NTLDR 08-26-2002 08:58 PM

Follow the instructions here: http://www.vbulletin.com/forum/showt...threadid=43873

This thread at vB.com has details on how to import via SSH.

DarkDraco07 08-26-2002 09:16 PM

how is this gonna help me?

DarkDraco07 08-26-2002 09:48 PM

anyone know what to do???
comon there has to be someone that can help me

NTLDR 08-27-2002 02:45 PM

Quote:

Originally posted by DarkDraco07
how is this gonna help me?
It tells you **exactly** what to do, if thats not help well... I don't think you have much of a chance.

DarkDraco07 08-27-2002 10:19 PM

ok, i have no clue what they are talking about.
1st of all what is WGET,
2nd what is and where do i enter "mysql -u USERNAME -p EMPTYNEWDATABASENAME <sqlbackup/041002.sql"
3rd do i have to buy this vbulletinhosting thingy

you can call me a newbie but all i know about mysql and php is how to instal vb and install hack :-/

DarkDraco07 08-28-2002 05:44 PM

ok, i was at the vb.com forums asking the same question, the told em how to do it but i need someone to translate this into newbie form:

Step One - Backup current database:

Telnet into your system (we'll call it machine1)
from the root directory, type
mysqldump --opt -uUSERNAME -p databasename > /path/to/dump.sql
this should only take about than 30 seconds to a few minutes, depending on your database size
when it is completed, it will bring you back to the prompt
verify that you have a dump.sql in the /path/to area you specified
Step Two - Transfer to new server

telnet into machine1, and from the command prompt type the following:
cd /path/to/yourbackupdirectory
Then type
ftp MACHINE2
Replace MACHINE2 with the host name (eg. www.example.com ) or IP address (eg. 192.168.0.0 ) of your new server. This should open a connection and ask for your username/password, then it should say ftp>
Type the following, hitting enter after each line:
bin
cd /path/to/newdirectory
put dump.sql
It should take between 20 seconds and a few minutes depending on the size of the file. Now type:
close
quit
verify dump.sql is in the /path/to/new area on the new server.
Step Three - Restore to new server

telnet into machine2
create a database on the mysql if necessary (ask your server admin for help with this as it varies from machine to machine)
at the prompt type
mysql -uUSERNAME -p newdbname < /path/to/dump.sql
this takes a couple of minutes depending on your database size, but you can track the progress either by FTP (checking the /mysql/data/newdbname and see the files appearing) or by phpMyAdmin (you should see the files appearing there)
when it is completed, it will bring you back to the prompt
Step Four - Bringing it back online

Go into your config.php and change the database name to the database name you created in Step 3, if necessary.
upload config.php
Go into your admin/index.php and then click on "options" and change the URL (if necessary) and verify the options and click "submit"

Hwulex 08-28-2002 11:58 PM

Just use MySqlFront :)


All times are GMT. The time now is 11:33 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.03092 seconds
  • Memory Usage 1,736KB
  • 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)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