Quantcast
Channel: MySQL Forums - Connector/NET and C#, Mono, .Net
Viewing all articles
Browse latest Browse all 1447

MySQL connection sting in C# via SSL (1 reply)

$
0
0
I am having problem configuring a MySQL connection string for C# using SSL. Not using SSL this works;

sting conString ="server=myIPAddress;uid=myUser;pwd=securePassword;database=myDatabase"

Looking into how to do this found this page
http://dev.mysql.com/doc/connector-net/en/connector-net-tutorials-ssl.html


In the MySQL Server configuration file, set the SSL parameters as follows:
ssl-ca=path/to/repo/mysql-test/std_data/cacert.pem
ssl-cert=path/to/repo/mysql-test/std_data/server-cert.pem
ssl-key=path/to/repo/mysql-test/std_data/server-key.pem
Adjust the directories according to the location in which you installed the MySQL source code.

Problem is I have no idea where the MySQL Server configuration file is or how to set it. This has to be simple enough to do. Just cannot find out how.

Viewing all articles
Browse latest Browse all 1447

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>