I´m trying to import an SQL file into MySQL Server 5.5, but I keep getting this error:
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 ''a:10:{i:0'
and this is the query:
insert into `preferences` values ('system','active_plugins','a:10:{i:0;s:16:\"voting/index.php\";i:1;s:26:\"social_bookmarks/index.php\";i:2;s:25:\"profile_picture/index.php\";i:3;s:26:\"lz_theme_options/index.php\";i:4;s:21:\"google_maps/index.php\";i:5;s:17:\"youtube/index.php\";i:6;s:18:\"facebook/index.php\";i:7;s:23:\"lz_demo_theme/index.php\";i:8;s:25:\"cars_attributes/index.php\";i:9;s:20:\"lz_firephp/index.php\";}','STRING'),
So I'm thinking it's some encoding problem, because it is throwing an error right on the semicolon, so I checked, everything is utf-8. The strangest thing is that if I run this same query through phpmyadmin or navycat or even mysqlworkbench no error is thrown, only when it is processed by the server.