Please can anyone explain me how I can connect a mysql database with a j2me application. I would be great full if you can give me some code samples or tutorials.
thank you.

As mentioned so many times before and now again (since you did not try to search forum) read Beginning J2ME From Novice to Professional - chapter 10 Connecting to the World that will show you have to make HttpConnection with JME and then only thing you need to do is make server side accept your POST/GET request and act upon it. I presume that you know basics of Java web development and how to set JDBC from servlet