您需要三个步骤:
1、在ID为1的wp\\U术语中创建术语
2、在wp\\U term\\u taxonomy中插入term\\u taxonomy,term\\u id为1,taxonomy必须为category
3、在wp\\u term\\u relationships中插入一个term\\u relationships,object\\u id为1,term\\u taxonomy\\u id为1,请在PHPMYADMIN中的代码下方运行以重新创建此类别!
INSERT INTO wp_terms (term_id, `name`, slug) VALUES (1, \'Uncategorized\', \'uncategorized\');
INSERT INTO wp_term_taxonomy (term_taxonomy_id, term_id, taxonomy, parent) VALUES (1, 1, \'category\', 0);
INSERT INTO wp_term_relationships (object_id, term_taxonomy_id, term_order) VALUES (1, 1, 0);