right click directly next to the database you want to export and select dump with ‘mysqldump’
p>
mysqldump是mysql用于转存储数据库的实用程序。
p>
add the -d argument to the automatically generated command to export only the table structure without the data! if you want to export a file containing data, plus the -d parameter can be broken…
p>
if the local mysqldump version is higher, for example, my local version is 8.0 and the target data source version is lower, the export will fail :
p>
mysqldump: Couldn't execute 'SELECT COLUMN......
solution: add –column-statistics=0 to solve the problem
p>
if you want to export the entire database that contains the data; Alternatively, use the command
at terminal
mysqldump -u root -p source1 > source2.sql
where source1 is the name of the database to be exported and
is the data name of the exported source.sql
import the exported source2.sql into the database using the following command :
/source/XXX XXX source2. SQL span> strong> h3>
where source2.sql is the data to be imported
before import , first to enter mysql, then to build a database, such as database, then into the database, finally execute the above command can be
p>
p>
p>
p>
p>
h3>
Read More:
- Export and import method of MySQL under Linux
- sqoop-import ERROR tool.ImportTool: Import failed: No primary key could be found for table user_info
- Import / export. SQL file / gzip file for MySQL under Linux
- Traversing the background data to generate tree structure
- Python export data (CSV format)
- Mysql error when deleting the table structure: Error Code: 1217. Cannot delete or update a parent row: a foreign key constraint fails
- Data analysis to obtain Yahoo stock data: some problems are encountered when using panda datareader (cannot import name ‘is_ list_ Like ‘problem)
- Solution: ‘import’ and ‘export’ may appear only with ‘sourcetype: module’
- spark SQL Export Data to Kafka error [How to Solve]
- [Solved] Es delete all the data in the index without deleting the index structure, including curl deletion
- MySQL partitions the existing tables of the data table
- [Solved] Import Echars5.0 Error: “export ‘default‘ (imported as ‘echarts‘) was not found in ‘echarts‘
- Lua — using remove to delete table data
- MySQL data import error 1227, acess denied
- Using sqoop to export data from hive to MySQL
- Excel pivot table data source not valid
- greendao insert data UNIQUE constraint failed: PURCHASE_ORDER_TABLE._id (code 1555)
- [react+antd] Table Error: Unhandled Rejection (TypeError): data.slice is not a function
- Add Druid driver to datagrip to solve Oracle garbled code
- Insufficient table space ORA-00604 unable to extend table SYS.AUD by 8192