GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   MySql quick question (https://gfy.com/showthread.php?t=225533)

alex79 01-25-2004 03:45 AM

MySql quick question
 
i have a mySql database with around 100 tables.. what is the easyest way to copy all database to same server (make an identical copy of the database) without downloading the database on my computer (becouse the database is very big)
i also have installeted the phpMyAdmin and i have root access with ssh

fuzebox 01-25-2004 03:54 AM

If you've got shell access to the server, just mysqldump the database into a file.

# mysqldump -uuser -p databasename > database.sql

Then create a new database, and mysql -uuser -p databasename < database.sql .

mrthumbs 01-25-2004 04:02 AM

wasnt it -u username -ppassword ??

fuzebox 01-25-2004 04:03 AM

Quote:

Originally posted by mrthumbs
wasnt it -u username -ppassword ??
If you want your password in cleartext on your screen, or saved in your history file...

I guess I'm paranoid. (-p by itself will prompt you)

alex79 01-25-2004 04:27 AM

ok.. thanks.. it's worked
:thumbsup


All times are GMT -7. The time now is 12:08 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123