Export and import of WordPress linked tables

WordPress seventeen 10.6K Reading mode

It is very important to make a good backup of WordPress data, otherwise one day the space will hang up or misoperate, and the data will be lost and disappear, which will make you want to cry.

Backup can directly export the database in the MySQL management background, or install backup plug-ins for regular backup, or use the export function provided by Wordpress to save it as an XML document. However, you cannot export linked tables (Blogroll) by using the export function provided by Wordpress. Although you can export all data including linked tables by operating MySQL, the operation is slightly complicated and difficult for beginners.

Although WordPress does not provide link export function, we enter similar information in the browser https://zmingcx.com/wp-links-opml.php Address, you can get the link list of a WP site. Just replace zmingcx.com with your own domain name, and then save the opened link page as an xml file (WordPress link storage file is an OPML file with the suffix xml). Enter the WP background import page and click Blogroll (Note: WP3.0+has taken the import and export function as the plug-in installation form, click the "link" on the import page, and it will automatically jump to the plug-in installation and download page, and the Blogroll function will appear after installation), as shown in the following figure:

The right side imports the OPML file just saved, and the left side can directly enter the address of the link table to be imported.

However, it is a pity that the linked table exported by the above method of Wordpress cannot save the description and opening method of the original link.

If you must completely retain the relevant contents of the original linked table, you can only operate the database. If you only export the linked table, you can enter the MySQL management background. Click Export above. On the export setting page, select only wp_links. The export type can be SQL. Right click Execute.

Then import the SQL in the required site data, and you can completely import the link tables of other sites.

Most of the articles on this site are original and used for personal learning records, which may be helpful to you, for reference only!

 weinxin
My Wechat
Copyright Notice
Please indicate the source and link of the original article reprinted on this site. Thank you for your cooperation!
five hundred and ninety-eight million eight hundred and forty-five thousand and six
 
 Robin
five hundred and ninety-eight million eight hundred and forty-five thousand and six
Comments seventeen    Visitors sixteen    Author one
    •  Ken
      Ken four

      i see.. Learned.
      I always use the plug-in WP-DB-Backup to backup.
      Never tried to import Hee hee

      •  A little blue
        A little blue four

        This method is very convenient

        •  robin
          robin five

          test

          •  aunsen
            aunsen five

            Brother Bird V5!

            •  Leizhou
              Leizhou one

              I get up every day to toss my blog, and my heart is tired

              •  Yalan
                Yalan four

                Hmm.. The witch Lan has to struggle.. Otherwise, I really want to cry..

                •  Chivalrous
                  Chivalrous three

                  It seems that it is quite troublesome

                  •  charming legs
                    charming legs zero

                    I didn't know how to add them one by one!

                    •  askyer
                      askyer two

                      Benefit from flying

                      •  Wild fresh soil
                        Wild fresh soil three

                        Oh, originally

                        •  Darkbluesoul
                          Darkbluesoul zero

                          Thank you very much. I specify an OPML URL: enter something similar to http://zmingcx.com/wp-links-opml.php Address imported!

                          •  ghd uk
                            ghd uk zero

                            This is such a great resource that you are promoting and you give it away for free I enjoy seeing websites that understand the value of providing a prime resource for free. I truly loved reading your post. Thanks! linmei/comment201203

                            •  Learning and research end
                              Learning and research end three

                              Thanks for learning!

                              •  Low carbon life
                                Low carbon life zero

                                The biggest problem is that you can't export article thumbnails and article pictures. The cup is too big!

                                Now the article thumbnails are gone

                                •  He Liusheng
                                  He Liusheng three

                                  Brother Bird, let me ask you a question. If I want to export WORDPRESS articles and classifications separately through SQL, which table in the database should I export?

                                 anonymous

                                Comment

                                Anonymous netizens
                                 :?:  :razz:  :sad:  :evil:  :!:  :smile:  :oops:  :grin:  :eek:  :shock:  :???:  :cool:  :lol:  :mad:  :twisted:  :roll:  :wink:  :idea:  :arrow:  :neutral:  :cry:  :mrgreen:

                                Drag the slider to complete validation