.NET C# MySQL Connection

My connection string is SERVER=den1.mysql1.gear.host;DATABASE=messagetransfer;UID=messagetransfer;PWD={password};

When I run my program the error 0 comes

InnerException: Network Path not found.

How to fix this error?

Kind regards

1 Like

Hey,
Try other syntax

connectionString=“server=den1.mysql1.gear.host,;user id=messagetransfer;password={password};database=messagetransfer;persistsecurityinfo=True” providerName=“MySql.Data.MySqlClient”