CUBRID Study Notes 8 copy database, cubrid Study Notes

Source: Internet
Author: User

CUBRID Study Notes 8 copy database, cubrid Study Notes

1 export database is similar to the SQL Server detached database

 

Cubrid unloaddb demodb
The three files demodb_objects, demodb_indexes and demodb_schema are generated after the separation. One stores data, one Stores indexes, and the other stores standard definitions.

2. Create a new database
Cubrid createdb testdb

Because the created database will be in the current directory, make sure that the path for running the command line is the path for storing the database.

3. Load separated database files
cubrid loaddb testdb -d demodb_objects -i demodb_indexes -s demodb_schema -u dba
First, confirm that the new testdb database is not running.
If you are running the linux version, pay attention to the file permission.
Linux I do not understand the original http://www.cubrid.org/wiki_tutorials/entry/copy-clone-database

4. Start the database
cubrid server start testdb

You are welcome to reprint it. Please keep the author's information during reprinting. This article copyright belongs to me, if you have any questions, please contact me wang2650@sohu.com. Fault

This method does not guarantee data validity, but is very fast, isn't it?

 

This is a discussion of the problem. http://www.cubrid.org/forum/425888

 

Some junk data may occur during migration. This is caused by sorting. If it is a single database, it should not be the case.

The sorting problem can be solved by sorting. You know.

 

The following figure shows how to download the database in the Manager.














Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.