Code: Select all
INSERT INTO `phpbb_posts` (topic_id,forum_id,post_time,post_username,post_text) VALUES (2,4,1674484430,"DonaldDuck","<t>Inserted text</t>");
Code: Select all
MariaDB [phpbb]> describe phpbb_topics;
+---------------------------+-----------------------+------+-----+---------+----------------+
| Field | Type | Null | Key | Default | Extra |
+---------------------------+-----------------------+------+-----+---------+----------------+
| topic_id | int(10) unsigned | NO | PRI | NULL | auto_increment |
| forum_id | mediumint(8) unsigned | NO | MUL | 0 | |
| icon_id | mediumint(8) unsigned | NO | | 0 | |
| topic_attachment | tinyint(1) unsigned | NO | | 0 | |
| topic_reported | tinyint(1) unsigned | NO | | 0 | |
| topic_title | varchar(255) | NO | | | |
| topic_poster | int(10) unsigned | NO | | 0 | |
| topic_time | int(11) unsigned | NO | | 0 | |
| topic_time_limit | int(11) unsigned | NO | | 0 | |
| topic_views | mediumint(8) unsigned | NO | | 0 | |
| topic_status | tinyint(3) | NO | | 0 | |
| topic_type | tinyint(3) | NO | | 0 | |
| topic_first_post_id | int(10) unsigned | NO | | 0 | |
| topic_first_poster_name | varchar(255) | NO | | | |
| topic_first_poster_colour | varchar(6) | NO | | | |
| topic_last_post_id | int(10) unsigned | NO | | 0 | |
| topic_last_poster_id | int(10) unsigned | NO | | 0 | |
| topic_last_poster_name | varchar(255) | NO | | | |
| topic_last_poster_colour | varchar(6) | NO | | | |
| topic_last_post_subject | varchar(255) | NO | | | |
| topic_last_post_time | int(11) unsigned | NO | MUL | 0 | |
| topic_last_view_time | int(11) unsigned | NO | | 0 | |
| topic_moved_id | int(10) unsigned | NO | | 0 | |
| topic_bumped | tinyint(1) unsigned | NO | | 0 | |
| topic_bumper | mediumint(8) unsigned | NO | | 0 | |
| poll_title | varchar(255) | NO | | | |
| poll_start | int(11) unsigned | NO | | 0 | |
| poll_length | int(11) unsigned | NO | | 0 | |
| poll_max_options | tinyint(4) | NO | | 1 | |
| poll_last_vote | int(11) unsigned | NO | | 0 | |
| poll_vote_change | tinyint(1) unsigned | NO | | 0 | |
| topic_visibility | tinyint(3) | NO | MUL | 0 | |
| topic_delete_time | int(11) unsigned | NO | | 0 | |
| topic_delete_reason | varchar(255) | NO | | | |
| topic_delete_user | int(10) unsigned | NO | | 0 | |
| topic_posts_approved | mediumint(8) unsigned | NO | | 0 | |
| topic_posts_unapproved | mediumint(8) unsigned | NO | | 0 | |
| topic_posts_softdeleted | mediumint(8) unsigned | NO | | 0 | |
+---------------------------+-----------------------+------+-----+---------+----------------+
MariaDB [phpbb]> describe phpbb_posts;
+--------------------+-----------------------+------+-----+---------+----------------+
| Field | Type | Null | Key | Default | Extra |
+--------------------+-----------------------+------+-----+---------+----------------+
| post_id | int(10) unsigned | NO | PRI | NULL | auto_increment |
| topic_id | int(10) unsigned | NO | MUL | 0 | |
| forum_id | mediumint(8) unsigned | NO | MUL | 0 | |
| poster_id | int(10) unsigned | NO | MUL | 0 | |
| icon_id | mediumint(8) unsigned | NO | | 0 | |
| poster_ip | varchar(40) | NO | MUL | | |
| post_time | int(11) unsigned | NO | | 0 | |
| post_reported | tinyint(1) unsigned | NO | | 0 | |
| enable_bbcode | tinyint(1) unsigned | NO | | 1 | |
| enable_smilies | tinyint(1) unsigned | NO | | 1 | |
| enable_magic_url | tinyint(1) unsigned | NO | | 1 | |
| enable_sig | tinyint(1) unsigned | NO | | 1 | |
| post_username | varchar(255) | NO | MUL | | |
| post_subject | varchar(255) | NO | | | |
| post_text | mediumtext | NO | | NULL | |
| post_checksum | varchar(32) | NO | | | |
| post_attachment | tinyint(1) unsigned | NO | | 0 | |
| bbcode_bitfield | varchar(255) | NO | | | |
| bbcode_uid | varchar(8) | NO | | | |
| post_postcount | tinyint(1) unsigned | NO | | 1 | |
| post_edit_time | int(11) unsigned | NO | | 0 | |
| post_edit_reason | varchar(255) | NO | | | |
| post_edit_user | int(10) unsigned | NO | | 0 | |
| post_edit_count | smallint(4) unsigned | NO | | 0 | |
| post_edit_locked | tinyint(1) unsigned | NO | | 0 | |
| post_visibility | tinyint(3) | NO | MUL | 0 | |
| post_delete_time | int(11) unsigned | NO | | 0 | |
| post_delete_reason | varchar(255) | NO | | | |
| post_delete_user | int(10) unsigned | NO | | 0 | |
+--------------------+-----------------------+------+-----+---------+----------------+
I suspect it will be easier just to copy/paste and edit a bit here and there, rather than creating SQLs to import into phpBB.
Code: Select all
INSERT INTO `phpbb_config`
INSERT INTO `phpbb_forums`
INSERT INTO `phpbb_posts`
INSERT INTO `phpbb_search_wordlist`
INSERT INTO `phpbb_search_wordmatch`
INSERT INTO `phpbb_sessions`
INSERT INTO `phpbb_topics`
INSERT INTO `phpbb_topics_posted`
INSERT INTO `phpbb_topics_track`
INSERT INTO `phpbb_users`