I updated this question because my last one was kinda confusing, but, I got a lot answered. Here is my situation. I currently have a dedicated web server on FREEBSD 4.2 It's great, but, I need to get the VB MYSQL DUMP on a new Win2k server to restore it. Here is what I've found out:
First, I must telnet into the server. Then I must type the following command:
/usr/local/plesk/mysql/bin/mysqldump -uUSERNAME -pPASSWORD DATABASENAME > /home/yourusername/dump.sql
I attempted to use the backup I got from the VB control panel, but, during a restore, it did nothing but give errors.
My first question is where will this "dump" save on my computer so I can restore? I understand all of it until > /home/yourusername/dump.sql -- What does here? The new MYSQL information?? I am physically sitting at this Win2k box. My sql is located at c:/mysql -- I've made a new database already.
Once I overcome that question my next question is as follows. I was told by Kevin (Tube Dogg THANKS!!) to do this:
1) Open MS-DOS
2) Type
cd \mysql\bin
3) Type
mysql -uUSERNAME -pPASSWORD NEWDBNAME < /path/to/dump.sql
It's probably easiest if you put this dump file in the c:\mysql\bin directory to start with, then just use dump.sql for the name/path, like so:
mysql -uUSERNAME -pPASSWORD NEWDBNAME < dump.sql
4) Wait.
5) It'll return to the prompt when done.
I totally understand that, but, I don't understand where to get this dump file from, I mean, how do I get it on MY HD to begin with. I really appreciate everyones help. Sorry to start a new thread, but, I think it will help get my question answered if I explain it better. Thanks again.
First, I must telnet into the server. Then I must type the following command:
/usr/local/plesk/mysql/bin/mysqldump -uUSERNAME -pPASSWORD DATABASENAME > /home/yourusername/dump.sql
I attempted to use the backup I got from the VB control panel, but, during a restore, it did nothing but give errors.
My first question is where will this "dump" save on my computer so I can restore? I understand all of it until > /home/yourusername/dump.sql -- What does here? The new MYSQL information?? I am physically sitting at this Win2k box. My sql is located at c:/mysql -- I've made a new database already.
Once I overcome that question my next question is as follows. I was told by Kevin (Tube Dogg THANKS!!) to do this:
1) Open MS-DOS
2) Type
cd \mysql\bin
3) Type
mysql -uUSERNAME -pPASSWORD NEWDBNAME < /path/to/dump.sql
It's probably easiest if you put this dump file in the c:\mysql\bin directory to start with, then just use dump.sql for the name/path, like so:
mysql -uUSERNAME -pPASSWORD NEWDBNAME < dump.sql
4) Wait.
5) It'll return to the prompt when done.
I totally understand that, but, I don't understand where to get this dump file from, I mean, how do I get it on MY HD to begin with. I really appreciate everyones help. Sorry to start a new thread, but, I think it will help get my question answered if I explain it better. Thanks again.
Comment