- ready. SQL file and upload to server login server MySQL import. SQL file
Source *.sql //.sql file path
3. Export. SQL file
Export table structure
It’s going to be in the data directory
cd /mysql/data/
. /bin/mysqldump -uroot -p -d newdb > Newdb.sql // newdb database name
// Enter the password
Export data and table structures
It’s going to be in the data directory
cd /mysql/bin/
. /bin/mysqldump -uroot -p newdb > Newdb.sql // newdb database name
// Enter the password
- exports the gzip file
. /bin/mysqldump -uroot -p –default-character-set=utf8 xw_taes | gzip > /home/xw_taes_1.sql.gz
// Enter the password
- import gzip
gzip -d < /home/xw_taes_1.sql.gz | mysql -uroot -p xw_taes_1
// Enter the password
Xw_taes_1 is the name of the database to import
There is no meeting
Note: Adding plaintext password directly will report an error
Read More:
- Export and import method of MySQL under Linux
- [Linux] solve the error of decompressing JDK on Linux gzip: stdin: not in gzip format
- Navicat import local SQL file error “[MSG] finished – unsuccessfully | [err] 1046 – no database selected”
- Golang MySQL error SQL: unknown driver “MySQL” (Forgotten import?) solution
- Datagrip import & export table structure and data
- Linux use ls to view the file color is all white solution, and Linux file color introduction
- SQL Server import MDF and LDF files appear: unable to open physical file “D:\ XX.mdf “。 Operating system error 5: “5 (access denied. )”Solutions
- The method of using Allegro to export package and pad from BRD file
- Git centenary export package file command
- 【Oracle】IMP-00010: not a valid export file, header failed verification
- Spoop export hive to MySQL
- The Linux terminal appears bash: setup.bash : no such file or directory, and. Bashrc file
- mysql Error: Failed to open file “file_name” error 2/error 22
- vs2013 wdk8.1 ERROR: Symbol file could not be found. Defaulted to export symbols for ntkrnlmp.exe
- HBase import CSV file
- [Four Methods] memcached unzip error: gzip: stdin: not in gzip format tar: Child returned status 1 tar: Error is not recoverable: exiting now
- The MySQL server is running with the — secure file priv option
- Reporting Services Catalog Database File Existence” error during installing SQL Server 2008 R2
- Alpine Linux executable file crash report error / lib / x86 not found_ 64 Linux GNU / libc.so solution
- mysql error 1033 Incorrect information in file: ‘xxx.frm’ (Fixed)