[Android] Parse Development notes (2) -- import Data from Mysql to Parse Data

Source: Internet
Author: User
Tags php mysql

Preface

Due to running two JVMs, the beans sent by SAE every month are insufficient and the migration to Parse is being stepped up. The primary issue of migration is Data migration. Here we will import Data from Mysql of SAE to Parse Data. Here we will share some import experience.

 

Statement
You are welcome to repost, but please keep the original source of the article :)
Blog: http://www.cnblogs.com

Farmer's uncle: http://over140.cnblogs.com

 

Body

I. Series

1. [Parse] development notes (1) -- Preparation

 

Step 2

2.1 export CSV data from Mysql

The CSV exported by PHPMyAdmin is used here,

Note that the field separator is changed from ";" to ",", and then the exported field name is checked. This completes the import. If the field name is not selected, a default field name will be given in the past. This name cannot be changed and can only be deleted.

 

2.2 import CSV Data to Parse Data

First, log on to Parse and go to Data Browser,

 

Select File point Import. If File Parsing is normal, enter the field setting interface:

 

Click Set Schema at the end, and the Importing rows... will be displayed. Just wait. The import is successful !!

Iii. Others

Import the settings schama interface and find:

The 3.1 _ id field is missing. All fields connected with _ are intercepted only in the previous section.

3.2 All fields are capitalized

After the import is complete, the "_ id" field is changed to "Parse _ id", and three new fields are added: objectId, createdAt, and updatedAt.

Note: objectId is automatically generated and uniquely identified.

 

Iv. References

Large file parse and import PHP MySQL

 

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.