3

Below is the link

How to insert,delete,select,update values in datagridview in C# using MYSQL

which has the code to connect to a MySQL datbase from a Windows application. It works fine in Windows XP. So I have created a setup file and installed in Ubuntu using Wine.

The issue is with the data not getting popped up in the datagridview of the application.

Extra information:

Wine is working fine by which i have installed small desktop application MySql with connector,Mono IDE are already installed.

It is even possible for me to create small applications using mono>(excluding database)

Screenshot 1: In Windows it looks like this:

alt text

But in Ubuntu Linux(8.04) it doesn't show up and looks like below.

alt text

Community
  • 1
  • 1
Srikanth V M
  • 672
  • 5
  • 14
  • 31
  • 2
    Sorry I don't have full answer for you, but from the error it looks like something to do with character encoding of the data maybe. – hollystyles Nov 06 '09 at 10:59
  • sudo apt-get install libmono-i18n2.0-cil I used the above command. Because of which the error got segregated. But Still the error pops up – Srikanth V M Nov 06 '09 at 11:07

3 Answers3

3

This sounds like bug 33938, the Mono environment in Linux doesn't seem to support Windows' native codepage (1252).

unwind
  • 391,730
  • 64
  • 469
  • 606
  • 2
    This is a problem with the way debian and ubuntu package Mono, not with the framework itself. – skolima Nov 08 '09 at 17:23
0

Wait, why are you using Wine and Mono at the same time? That probably won't work. Why don't you run the application natively, using only Mono?

skolima
  • 31,963
  • 27
  • 115
  • 151
  • I have used many other technologies like crystal reports, access. I think mono isn't capable of supporting such applications – Srikanth V M Nov 07 '09 at 16:55
  • Do not run Mono on Wine, this is pointless! And what version of Mono are you using? The bug mentioned by @unwind is in version that is two years old at least. – skolima Nov 08 '09 at 17:22
  • I'm not running Mono on Wine but creating a .exe file from windows(visual studio.net) and then deploying in linux ubuntu using wine. This is working fine for small applications, but for database applications errors are popping up – Srikanth V M Nov 10 '09 at 19:03
0

HI all,

Thanks for the all the help and support from all of you.

I have installed crossover trail version which supports datagridview. Please follow the link to find the answer.

http://www.talkonsomething.com/2009/11/how-to-connect-mysql-database-from-windows-xp-to-ubuntu/

Srikanth V M
  • 672
  • 5
  • 14
  • 31