[Help] how to copy the discuzX3.2 database? ---- The Attachment "appears, and the attachment cannot be read.

Source: Internet
Author: User
Discuzx3.2 ---- "Sorry, this attachment cannot be read" appears in the attachment. [the cause is found, the reason for the database, and the manual copy of the table information is too complicated. I hope you can make a move, automatic batch command synchronous replication: Why attachments cannot be read: pre_forum_attachment_0 to pre_forum...

Discuz x3.2 ---- the attachment "Sorry, this attachment cannot be read"

[The cause and database cause have been found. it is too complicated to manually copy the table information. I hope you can make a move and automatically copy the table using batch commands]

Why attachments cannot be read:
The aid tid pid uid in pre_forum_attachment_0 to pre_forum_attachment_9 and tableid are missing in the pre_forum_attachment section (the uploaded attachments can be downloaded later, but those uploaded earlier cannot be downloaded)

You have fixed several old attachments manually-they can be downloaded normally.

To find this reason, we all rely on guesses. because I do not understand database and database commands at all, I can only manually repair them one by one. this is inefficient and I am afraid to miss it.

Now I want to ask a huge user to give a [automatic batch command method, which can quickly and quickly split the table shards from pre_forum_attachment_0 to pre_forum_attachment_9 (only the aid tid pid uid tableid is required) copy to pre_forum_attachment (copy none, Skip existing )]

Reply content:

Discuz x3.2 ---- the attachment "Sorry, this attachment cannot be read"

[The cause and database cause have been found. it is too complicated to manually copy the table information. I hope you can make a move and automatically copy the table using batch commands]

Why attachments cannot be read:
The aid tid pid uid in pre_forum_attachment_0 to pre_forum_attachment_9 and tableid are missing in the pre_forum_attachment section (the uploaded attachments can be downloaded later, but those uploaded earlier cannot be downloaded)

You have fixed several old attachments manually-they can be downloaded normally.

To find this reason, we all rely on guesses. because I do not understand database and database commands at all, I can only manually repair them one by one. this is inefficient and I am afraid to miss it.

Now I want to ask a huge user to give a [automatic batch command method, which can quickly and quickly split the table shards from pre_forum_attachment_0 to pre_forum_attachment_9 (only the aid tid pid uid tableid is required) copy to pre_forum_attachment (copy none, Skip existing )]

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.