vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Restoring MySQL DB (https://vborg.vbsupport.ru/showthread.php?t=54382)

adriandaz 06-15-2003 06:32 PM

Restoring MySQL DB
 
Hi, I did a cPanel backup of my database (for my forum) but it downloaded a backup in a wierd format files (.frm, .MYD and .MYI) I didn't get a .sql file to restore :( does anyone know if I can convert them into a .sql file, and I can't restore them with mysqlhotcopy because I don't have shell access, I do have limited access with cgitelnet :(

any ideas?

thanks,

Adrian.

Bison 06-20-2003 03:51 PM

Why don't you go into the Admin CP and do a database dump to your server and download it to your home pc instead?

Create a folder outside your "www or htdocs" directory. ex: "db backups"

In your adminCP, go here: Import & Maintenance -->
Back-up Database

Fix the path to you folder:
(Where "/home/your folder/db backups/forumbackup-06-xx-2003.sql")

FTP to your account and download it.

Restore the db file:

1.) Telnet to your account.
2.) Type "mysql -u (your database username) -p (your database name)"
3.) When promted for password, type in your db password.
4.) At the prompt, type "connect (your db name)".
5.) Type "insert into (your db name) \. ../db backups/forumbackup-06-xx-2003.sql;

About those files you downloaded:
Those files are MySQL data files that can be found inside the folder where MySQL is installed on the server your site is hosted on. There's a control in cpanel which will allow you to make a backup copy on your server.

If this is possible, the only way I can see to make a backup is to contact your host and ask them to overwrite the data files where your database is stored with the files you have there.


All times are GMT. The time now is 07:08 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.00946 seconds
  • Memory Usage 1,708KB
  • 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)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (2)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