This is a migrated thread and some comments may be shown as answers.

MySQL doesn't work at all

4 Answers 100 Views
Databases and Data Types
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Dmitry Semenov
Top achievements
Rank 1
Dmitry Semenov asked on 08 Jun 2010, 08:16 PM
MySQL 5.1.47
VS2010
MySQL connector/net 6.3.2

that's what I get:
http://screencast.com/t/N2JjYTk0ZmMt

any ideas?

4 Answers, 1 is accepted

Sort by
0
Alexander
Telerik team
answered on 09 Jun 2010, 09:37 AM
Hello Dmitry Semenov,

Unfortunately I was not able to reproduce the error although I am testing with the same versions of Visual Studio, OpenAccess, MySql and MySql connector. Could you please share with us how the connection string that you are trying to use looks like? Hopefully we will be able to see where the problem could be.

Regards,
Alexander
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
gmendez
Top achievements
Rank 1
answered on 19 Jan 2011, 08:24 PM
Hello, I have found an issue regarding MySql 5.5 which I think is a bug.
I have a simple class, and when trying to perform forward mapping I get the following error:

Error 1 OpenAccess Error: Telerik.OpenAccess: Updating SQL schema failed. Telerik.OpenAccess.OpenAccessException: SQL exception on 'CREATE TABLE `tronco` ( `tronco_id` INTEGER NOT NULL,  `codigo` VARCHAR(255) NULL,  `diametro` INTEGER NOT NULL,  `fecha` datetime NOT NULL,  `largo` INTEGER NOT NULL,  `operador` INTEGER NOT NULL,  `voa_version` SMALLINT NOT NULL,  CONSTRAINT `pk_tronco` PRIMARY KEY (`tronco_id`) ) TYPE = InnoDB' : 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 'TYPE = InnoDB' at line 1 BusinessClasses 

I have done some research, and I found somewhere in the web that the solution is to replace 'TYPE = InnoDB' with 'Engine = InnoDB' if the MySQL server version is 5.5 which is my case. I checked that, and the proposed solution worked fine. The problem is that I can get my application to compile.

Any possible workaround?

Best regards,

Gonzalo
0
Ady
Telerik team
answered on 21 Jan 2011, 05:51 PM
Hi Dmitry Semenov,

 Thank you for pointing this out. We have fixed this problem and the fix will be available in the next build we release. As a workaround you could use the Schema handling API to obtain the required SQL, update the 'TYPE=InnoDB', to 'ENGINE=InnoDB' for each 'create table' statement and then execute it.

Greetings,
Ady
the Telerik team
Accelerate your learning with industry's first Telerik OpenAccess ORM SDK. Download today.
0
gmendez
Top achievements
Rank 1
answered on 25 Jan 2011, 12:36 PM
I am  not Dmitry Semenov :) ,and thanks for the workaround.

Gonzalo
Tags
Databases and Data Types
Asked by
Dmitry Semenov
Top achievements
Rank 1
Answers by
Alexander
Telerik team
gmendez
Top achievements
Rank 1
Ady
Telerik team
Share this question
or