![]() |
![]() |
![]() |
||||
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
Confirmed User
Join Date: Jun 2002
Location: france
Posts: 996
|
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 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
making it rain
Industry Role:
Join Date: Oct 2003
Location: seattle
Posts: 22,116
|
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 . |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
salad tossing sig guy
Join Date: Apr 2002
Location: mrthumbs*gmail.com
Posts: 11,702
|
wasnt it -u username -ppassword ??
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 | |
making it rain
Industry Role:
Join Date: Oct 2003
Location: seattle
Posts: 22,116
|
Quote:
I guess I'm paranoid. (-p by itself will prompt you) |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 |
Confirmed User
Join Date: Jun 2002
Location: france
Posts: 996
|
ok.. thanks.. it's worked
![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |