As far as exporting to MySQL, not sure about the errors
]]>Regarding the syntax errors, here’s an example. One line that stops the import is;
INSERT INTO "variable" VALUES('theme_default','s:9:"newsflash";');
And the error is;
#1064 – You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘”variable” VALUES(‘theme_default’,’s:9:”newsflash”;’)’ at line 1
Thinking it may have been the semicolon within the string, I tried escaping it with \; which didn’t work. Guessing it may have been the nested double quotes, I tried changing them over to single quotes, and that didn’t work either.
I’m starting to have flashbacks to programming with MySQL…
]]>First, I configured my Drupal settings.php file to have two database connections, adding in a connection to an empty mysql database alongside the pre-existing connection to the sqlite database. Then, I installed the DBTNG Migrator in Drupal. Then I enabled the Migrator plugin in Drupal and opened its settings. From there, I could see both of my database connections. I made sure the origin and destination fields were set correctly, then all I had to do was click the migrate button. I verified that all of my data had moved by looking at phpmyadmin.
Next, WordPress. I added the FG Drupal to WordPress plugin and clicked the “Import” link. I added my database settings, tested the connection, and then ran the import. No problem!
]]>