how to take mysql database structure backup

Answers were Sorted based on User's Feedback



how to take mysql database structure backup..

Answer / rupa bagherwal

mysqldump -uusername -ppassword databasename --no-data >
backupfilename.sql

Is This Answer Correct ?    5 Yes 0 No

how to take mysql database structure backup..

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

how to take mysql database structure backup..

Answer / shripad chandratre

INSERT INTO Backup_file SELECT * FROM file

Is This Answer Correct ?    5 Yes 2 No

how to take mysql database structure backup..

Answer / anil alpati

mysqldump --no-data --databases <dbname> > structurebackup.sql

Is This Answer Correct ?    4 Yes 3 No

how to take mysql database structure backup..

Answer / sandeep

mysqldump -d -uusername -ppassword databasename --no-data
--skip-opt > /tmp/databasename.sql

Is This Answer Correct ?    1 Yes 0 No

how to take mysql database structure backup..

Answer / sonali

mysqldump -d -uusername -ppassword databasename > backupfile.sql

Is This Answer Correct ?    1 Yes 1 No

Post New Answer

More MySQL Interview Questions

How do we delete a row in a table?

0 Answers  


How many rows can a mysql table hold?

0 Answers  


What is clob datatype?

0 Answers  


What is maximum size of a database in MySQL?

13 Answers   Bastioncoup, CIS, NM, V2 Solutions, Wipro,


How many ways we can we find the current date using MySQL?

5 Answers  






What are the different tables present in MySQL?

0 Answers  


What is the return type of mysqli_query?

0 Answers  


What is timestamp in mysql?

0 Answers  


What is difference between unix timestamp and mysql timestamp?

0 Answers  


maximum size of a database in mysql?

2 Answers  


What ascii 31?

0 Answers  


Can we join 3 tables in mysql?

0 Answers  


Categories