Web Hosting Talk







View Full Version : Transfering a MySQL DB


Furton
05-05-2002, 03:25 PM
How do I go about doing this, I tried the way vbulletin.com show but I can't get it working, is there anything I'm missing? A step by step guide would be usefull.

Matt Lightner
05-05-2002, 03:44 PM
What is the problem you're encountering? Maybe someone here can tell you how to fix it....

AcuNett
05-05-2002, 04:07 PM
Do you mean dumping the database then restoring it?

NightMan
05-06-2002, 04:22 AM
If you mean, you are having problem with back up your database, then get installed the phpmyadmin, and dump your data to your local computer. this is the easiest way. but If you have SSH or telnet access, it can be done by using command line.

for the database not been corrupted, stop Mysql during the back up then start it.

bobcares
05-06-2002, 05:10 AM
Hi!
mysqldump and mysqlimport are the two commands used..
use man for more information. It is very easy..
Have a great day :)
regards
amar

Furton
05-06-2002, 12:52 PM
Could someone go through the procses of doing this in telnet please, list of commands e.t.c

erapid
05-06-2002, 01:11 PM
Hi,


You need to describe your tasks in details for somebody could help you

ie What do you mean - local transfer or between computers. How much is your db weight, and so on.
What do you want?

Regards

Furton
05-06-2002, 01:22 PM
I'm moving one DB from my old ded server to my new ded server. I have root accsess for both of them.

ffeingol
05-06-2002, 01:49 PM
Furton,

on the old ded box:

mysqldump -u db-user -p database-name > dump-file.sql

where:

db-user == database user name
database-name == the database you wish to backup (dump)
dum-file.sql == any file name

Then ftp the file to the new dedicated box. The file is just ASCII so you can gzip it first if you wish

On the new ded box:

Create the new empty database (webmin, phpmyadmin etc.)

mysql -u db-user -p database-name < dump-file.sql

That will reload the db.

Frank

Furton
05-06-2002, 02:24 PM
I've tried to FTP to my new server, but when I enter my root pw it rejects it. What PW and User am I meant to use?

ffeingol
05-06-2002, 02:37 PM
ftp may be setup to now allow root to ftp in (for security reasons). Use any id that you know.

You can also ftp from the new box and just do a "get" instead of a "put".

Frank