Merge a single site database into a multi site database
- Fill out
$options['connection'] - Fill out
$options['databases']wheresingleis a non-multisite WordPress database andmultisiteis a multisite WordPress database - Create new site/blog using wp gui on the multisite, record the newly created blog ID
- Fill in
$options['data']['blog_id']with the previously recorded blog ID - Fill out
$options['data']['mariadb_extra_file']with the path to your mariadb defaults extra file for authentication - Set
$options['data']['output_author_sql']to true or false to force the sql that updates post_author to be written to a file for execution later. - Set
$options['data']['name']to an arbitrary name. - Run
merge.phpusing the php executable
Create backups of your databases before using this tool!