DigiCrime
04-15-2002, 05:09 PM
I forgot the commands you use to upload a database or dump it whatever you want to call it.... In shell
I have my whole database, I downloaded it from phpMyAdmin, and I want to transfer it back over to a new machine... what are the commands to put it back in there?
Shyne
04-15-2002, 05:13 PM
mysql -u user -p -d databasename < dumped_sql_file
Starhost
04-16-2002, 06:42 AM
Is their also a manner to dump ALL databases. Because that is needed when updating MySQL
The Prohacker
04-16-2002, 07:57 AM
Originally posted by Shyne
mysql -u user -p -d databasename < dumped_sql_file
Or just:
mysqldump --opt -uUSERNAME -p databasename > /path/to/dump.sql
If you have mysqldump, :)
T_E_O
04-16-2002, 08:51 AM
Originally posted by The Prohacker
Or just:
mysqldump --opt -uUSERNAME -p databasename > /path/to/dump.sql
If you have mysqldump, :)
Shyne was talking about how to import a dump and you're talking about how to create such a dump :)
:beer:
DigiCrime
04-16-2002, 01:53 PM
this one work cept its like this
mysql -u user -p -D databasename < path/to/dumped_sql_file
thanks :)
Starhost
04-16-2002, 01:58 PM
Does anyone know how I can dump ALL databases so that I can upgrade MySQL??
Originally posted by Starhost
Does anyone know how I can dump ALL databases so that I can upgrade MySQL??
mysqldump -u user -p --all-databases
man mysqldump for more info