vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3 Articles (https://vborg.vbsupport.ru/forumdisplay.php?f=187)
-   -   Tutorial: How to run vBulletin onto your PC (https://vborg.vbsupport.ru/showthread.php?t=39482)

TECK 06-16-2002 04:30 AM

Quote:

Originally posted by Velocd
I've got 2 questions to ask ;)

Question: How do you backup/restore a database using an SSH Client like Putty if the database is on your PC? I've tried entering in the hostname field of putty "localhost" and also my IP address but no go, it says cannot make connection. Would I be able to just use phpmyadmin for this, since its on my computer maybe it will be more reliable than using it on the web?

Question 2: I've noticed a small problem trying to register a new user (using phptriad installation method) and thats that you get a apache error. Registering members on a local vbulletin is sorta pointless anyway, but I just wanted to know if this is an error or normal.

1. wrong thread. check the backup tutorial.

2. i dont recommend anyone to use phptriad. it removes you the ability to configure the way you want all the server options.
the old school way is always the best way... and it works perfectly. why? because with phptriad, if there is a new php, mysql or apache release, you must uninstall everything and lose all your settings and data.
in my humble oppinion, phptriad is for lazy people who dont like to take the time to configure their server the right way. if you use phptriad, you will never learn anything about any config file and settings related to apache, php and mysql.

[high]remember, if is not working is because you missed a step.[/high] just an example, 99% of the people forget to restart Apache after they set all their options. this tutorial worked perfectly on every single pc i install it, so it must work also in yours.

Admin 06-16-2002 05:24 AM

Quote:

Originally posted by nakkid
if you use phptriad, you will never learn anything about any config file and settings related to apache, php and mysql.
You also don't learn anything from just following someone else's tutorial and following instructions.

TECK 06-16-2002 05:30 AM

true. it took me a while to get it the right way the installation. you remember the DirectoryIndex tip you gave me long time ago?

Admin 06-16-2002 05:32 AM

Ok...

Velocd 06-16-2002 09:43 AM

Quote:

Originally posted by nakkid
1. wrong thread. check the backup tutorial.

2. i dont recommend anyone to use phptriad. it removes you the ability to configure the way you want all the server options.
the old school way is always the best way... and it works perfectly. why? because with phptriad, if there is a new php, mysql or apache release, you must uninstall everything and lose all your settings and data.
in my humble oppinion, phptriad is for lazy people who dont like to take the time to configure their server the right way. if you use phptriad, you will never learn anything about any config file and settings related to apache, php and mysql.

[high]remember, if is not working is because you missed a step.[/high] just an example, 99% of the people forget to restart Apache after they set all their options. this tutorial worked perfectly on every single pc i install it, so it must work also in yours.

1. *dies* That is the same point Firefly brought up. You see, you cannot use an SSH client like Putty to backup your forums installed on a localhost, like my pc. It wont connect for purposes that are probably logical--one being it is my pc and making a connection through putty to the very computer you type on seems silly. Still, I need a way to make a reliable backup so that when I finish with my forums on my computer I can transfer the backup to my webserver.

2. If I had a real server I would more than likely go your way Nakkid with doing by hand, ofcourse It's just my crappy Compaq Laptop and the only real purpose of it right now is for testing hacks on my vbulletin. Same reason I would never use a wysiwyg over regular text editors for any programming/authoring.

FWC 06-16-2002 07:10 PM

Quote:

Originally posted by Velocd


1. *dies* That is the same point Firefly brought up. You see, you cannot use an SSH client like Putty to backup your forums installed on a localhost, like my pc. It wont connect for purposes that are probably logical--one being it is my pc and making a connection through putty to the very computer you type on seems silly. Still, I need a way to make a reliable backup so that when I finish with my forums on my computer I can transfer the backup to my webserver.

If you want to backup or restore databases on your home pc you can enter the same commands you would in an SSH client from the DOS command line. Navigate to your mysql directory and you can run them from there.

Velocd 06-16-2002 08:29 PM

Thanks for the help, that worked perfectly ;)

FWC 06-16-2002 10:46 PM

Quote:

Originally posted by Velocd
Thanks for the help, that worked perfectly ;)
Glad it worked for you. :)

Velocd 06-18-2002 08:35 PM

Quick Tutorial - How to backup/restore on a localhost

I thought I would make this because I fought alittle trying to get this working using the MSDOS shell, and found some things to be alittle different than from what backing up is usually like.
Once again, thanks to FWC for the tip, and also Logican from another post providing me some info

(note: done using Windows XP, should work on older OS also)

----------------------------------------------------------------------------------------

1. Copy and paste the following into your address bar, then hit enter: %SystemRoot%\system32\cmd.exe

2. Now depending on how you installed MySQL on your system, either with or without PHPTriad, you need to browse to that directory bin folder.

For example, if you did use PHPTriad, type cd c:\apache\mysql\bin.


3. For BACKING UP:

Type mysqldump -u username --opt database_name > backupfile.sql, filling in username and database_name with the correct values.

This method worked perfectly for me using the PHPTriad installation, should do the same with the other. If it asks you for a password, enter the password.


4. For RESTORING:

Type -u root -ppassword database_name < backupfile.sql in the command prompt.

You might get an error saying a table already exists, if so you need to clear your current database. Go into phpmyadmin and drop it that way. Be sure not to drop the whole database eliminating it, but just dropping the tables. Before doing this check your database backup you just created to make sure it actually created its and is not corrupt.

Thats it!

TECK 06-19-2002 03:31 AM

good tutorial.. :)
i will add it in the first post, if you dont mind. :D


All times are GMT. The time now is 06:44 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.01497 seconds
  • Memory Usage 1,747KB
  • 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
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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