You can do with the --no-data
option with mysqldump command
mysqldump -h yourhostnameorIP -u root -p --no-data dbname > schema.sql
More Related Contents:
- need to return two sets of data with two different where clauses
- SQL statement is ignoring where parameter
- quick selection of a random row from a large table in mysql
- Strange duplicate behavior from GROUP_CONCAT of two LEFT JOINs of GROUP_BYs
- Column calculated from another column?
- Error in MySQL when setting default value for DATE or DATETIME
- How does MySQL process ORDER BY and LIMIT in a query?
- Generating a random & unique 8 character string using MySQL
- Check if MySQL table exists without using “select from” syntax?
- SQL: Repeat a result row multiple times, and number the rows
- sql join two table
- Compare dates in MySQL
- MySQL create stored procedure syntax with delimiter
- Mysql Convert Column to row (Pivot table )
- Merge two tables in one SQL query and make the date values unique
- Remove Primary Key in MySQL
- Get most recent row for given ID
- MySQL/SQL: Update with correlated subquery from the updated table itself
- Is merge statement available in MySQL
- Mysql covering vs composite vs column index
- Mysql insert random datetime in a given datetime range
- Greatest value of multiple columns with column name?
- MySQL UPDATE syntax with multiple tables using WHERE clause
- Are SELECT type queries the only type that can be nested?
- INSERT INTO or UPDATE with two conditions
- Calculating time difference between 2 dates in minutes
- MySQL : ERROR 1215 (HY000): Cannot add foreign key constraint
- mysql – Dynamic column alias
- Select data from “show tables” MySQL query
- What is dynamic SQL?