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 |
how many table created when we create a table in mysql?
Explain csv tables.
Table - Products has number of products as below Productid ProductName 1 iPhone 2 iPad 3 BlackBerry Table - SalesPersonProduct has the below records Salespersonid productid S1 1 S1 2 S1 3 S2 1 S3 2 Write a SQL query that returns the total number of sold products
How to use like conditions?
What is the maximum length of a table name, database name, and fieldname in MySQL?
3 Answers Accenture, Pioneer, TISL,
What is mysql port?
What?s the default port for MySQL Server?
Can you tell the difference between ereg_replace() and eregi_replace()?
What does myisamchk do?
is it possible to assign two primary key in a table
What is the difference between procedure and function in mysql?
What is MySQL Stored Procedure?
Oracle (3259)
SQL Server (4518)
MS Access (429)
MySQL (1402)
Postgre (483)
Sybase (267)
DB Architecture (141)
DB Administration (291)
DB Development (113)
SQL PLSQL (3330)
MongoDB (502)
IBM Informix (50)
Neo4j (82)
InfluxDB (0)
Apache CouchDB (44)
Firebird (5)
Database Management (1411)
Databases AllOther (288)