MySQL connection sting in C# via SSL
Posted by: Mitch Wence
Date: February 23, 2015 01:36PM

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.

Options: ReplyQuote


Subject
Written By
Posted
MySQL connection sting in C# via SSL
February 23, 2015 01:36PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.