troubleshooting Question

Connecting MySql to Crystal Reports in VB.Net Environment

Avatar of trims30
trims30 asked on
Crystal ReportsMySQL ServerVisual Basic.NET
2 Comments1 Solution2067 ViewsLast Modified:
Am attempting to use Crystal Reports with MySql and am having problem connecting to database.

I have done the following:
1. Started new project
2. Added Reference to MySql.data.dll
3. Created System DSN for My DataBase using MySql Driver - Tests OK
4. Added Form to Project
5. Added CrystalReportViewer to form
6. Create New Report using Crystal Wizard
Create New OLE DB(ADO) Connection
using Mirosoft OLE DB Provider for SQL Server

Here's where I'm getting lost....
Connection info panel asks for Server, User ID, Password and Database
My Connection string that I use in code specifies a Port number as shown below:
Code:

 
 myConnString = "server=" & "LocalHost" & ";" _
            & "Port=" & "3307" & ";" _
            & "user id=" & "root" & ";" _
            & "password=" & "trims30" & ";" _
            & "database=TRIMS_SQL_DATA"

How do I specify Port Number on the connection panel?

I've tried  Localhost:3307 and 127.0.0.1:3307 with no luck.

If I continue without port number then I get error "Logon failed - server does not exist"

I'm stuck at this point... Need help going forward please.

Lee
ASKER CERTIFIED SOLUTION
Join our community to see this answer!
Unlock 1 Answer and 2 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 2 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros