U can use this:
mysqldump -u username -p databasename > filename.sql
to export
mysql -u username -p databasename < filename.sql
to import
More Related Contents:
- “Incorrect string value” when trying to insert UTF-8 into MySQL via JDBC?
- WHERE vs HAVING
- How to do Inheritance Modeling in Relational Databases?
- MySQL error 1449: The user specified as a definer does not exist
- MySQL – UPDATE query with LIMIT
- Differences between utf8 and latin1
- phpMyAdmin on MySQL 8.0 [duplicate]
- Change decimal separator in MySQL
- SQL query of multiple values in one cell
- Fetching linked list in MySQL database
- How to skip certain database tables with mysqldump?
- Using MySql with Entity Framework 4 and the Code-First Development CTP
- How can I correct MySQL Load Error
- Using ALTER to drop a column if it exists in MySQL
- Count number of unique values
- ‘Access denied for user ‘root’@’localhost’ (using password: NO)’
- MySQL treats ÅÄÖ as AAO?
- How to transpose rows to columns with large amount of the data in BigQuery/SQL?
- Count with IF condition in MySQL query
- mysql_fetch_row() vs mysql_fetch_assoc() vs mysql_fetch_array() [duplicate]
- Mysql select where not in table
- How to format number with “.” as thousands separator and “,” as decimal separator?
- Using DISTINCT and COUNT together in a MySQL Query
- Which DATATYPE is better to use TEXT or VARCHAR?
- Error installing mysqlclient for python on Ubuntu 18.04
- MySQL OPTIMIZE all tables?
- What’s mysql’s “BETWEEN” performance over..?
- MySQL: set field default value to other column
- Deleting a row based on the max value
- MySQL giving “read ECONNRESET” error after idle time on node.js server