how to take mysql database structure backup
Answers were Sorted based on User's Feedback
Answer / rupa bagherwal
mysqldump -uusername -ppassword databasename --no-data >
backupfilename.sql
Is This Answer Correct ? | 5 Yes | 0 No |
Answer / nivedita
select INTO statement id used to take a back of the table.
syntax
select coloum_name(s) INTO NewTable(in external database)
from source table;
example: select * into person_backup from persons;
------------
another way is to take a dump
mysqldump -h hostname -u username -p password database >
backupdtabase.sql
o [username] - this is your database username
o [password] - this is the password for your database
o [databasename] - the name of your database
o [backupfile.sql] - the file to which the backup
should be written.
Is This Answer Correct ? | 5 Yes | 1 No |
Answer / shripad chandratre
INSERT INTO Backup_file SELECT * FROM file
Is This Answer Correct ? | 5 Yes | 2 No |
Answer / anil alpati
mysqldump --no-data --databases <dbname> > structurebackup.sql
Is This Answer Correct ? | 4 Yes | 3 No |
Answer / sandeep
mysqldump -d -uusername -ppassword databasename --no-data
--skip-opt > /tmp/databasename.sql
Is This Answer Correct ? | 1 Yes | 0 No |
Answer / sonali
mysqldump -d -uusername -ppassword databasename > backupfile.sql
Is This Answer Correct ? | 1 Yes | 1 No |
What is RMS Migrations
What is a mysql server?
How to display top 50 rows?
Hi Team, This is kartik, I recently completed my B-tech. Importance of posting this question is for to know the best books on SQL(MYSQL/Oracle)? I like SQL concept's so much, at the same time i decided to choose SQL for my career purpose. So please suggest me the best books that are very helpful for a fresher to improve concepts like (SQL/PLSQL)Basics, programming concepts, architectures etc. Please consider my request as an important one. I am very thankful to you for providing this opportunity. If possible can you please send the names of books for my personal id also: karthikgdv1206@yahoo.com. Thanks, Kartik T
What is a csv table?
How do you flush privileges?
What are the advantages and disadvantages of MySQL?
what are the different tables present in mysql? : Mysql dba
How to make a copy values from one column to another in mysql?
How to delete a database from mysql server.
how you will show all records not containing the name "sonia" and the phone number '9876543210' order by the phone_number field.
What does mysql_fetch_assoc do?