Kingbase data backup and import

 

Logical backup

 
  1. cd D:\soft\Kingbase\ES\V8\Server\bin
  2. sys_dump -h 127.0.0.1 -p 54321 -U SYSTEM -W SYSTEM -f G:\2020\bak\dumpfile.dmp DEMO

After the above command is executed, the DEMO database will be backed up toG:\2020\bak\dumpfile.dmp

  • Parameter description:
    -U: database user account
    -W: database user password
    -f: storage path of the backup file
    DEMO: the name of the database to be backed up

Logical restore

 
  1. cd D:\soft\Kingbase\ES\V8\Server\bin
  2. ksql -USYSTEM -WSYSTEM -dDEMO2 -p54321 -f G:\2020\bak\dumpfile.dmp

After the above command is executed, the database backup file will be G:\2020\bak\dumpfile.dmprestored to the DEMO2 database

  • Parameter description:
    -U: database user account
    -W: database user password
    -d : database to be restored (database needs to be built in advance)
    -f: storage path of restored files

The actual measurement steps are as follows:

Guess you like

Origin blog.csdn.net/weixin_47385625/article/details/115251880