Have been looking into converting MSSQL to MYSQL. The optioned that seemed best for me was to take a MSSQL.sql and use PhpMyAdmin to import this is.
The following posts and link have been helpful:
How to export SQL Server database to MySQL?
How to convert SQL Server database to MySQL database
But when I try to do this it seems to fail with the following error:
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax
This happens at points of the .sql file like:
USE [Charging]
GO
/****** Object: Table [dbo].[CountryNm] Script Date: 01/10/2013 13:28:42 ******/
Which seem like fundamental parts of a MSSQL.sql file. I have tried removing the USE and GO from the file but then stops at the comments. I have not removed these yet as I am thinking something is perhaps fundamentally wrong with what I am doing?
I have PhpMyAdmin set to Format: SQL, Format-Specific Options: MSSQL and Do not use AUTO_INCREMENT for zero values: Checked.
Many thanks in advance
EDIT: MSSQL Server Management Studio Script Wizard Options:
ANSI Padding: True
Append to File: False
Continue scripting on Error: False
Convert UDDTs to Base Types: False
Generate Script for Dependent objects: False
Include Descriptive Headers: True
Include IF NOT EXISTS: False
Include system constraint names: False
Schema quality object names: True
Script Bindings: False
Script Collation: True
Script Defaults: True
Script Drop : False
Script Extended properties: True
Script for server version: SQL Server 2008
Script Logins: False
Script Object-Level Permissions: False
Script USE DATABASE: False
Script Change Tracking: False
Script Check Constraints: True
Script Date: True
Script data Compression Options: False
Script Foreign Keys: True
Script Full-Text Indexes: False
Script Indexes: False
Script Primary Keys: True