I want to connect my C# .NET website using Visual Studio to a MySQL database located with the host 123-REG.
I have put the following code snippet (edited for security) into my web.config file:
< appSettings > < add key="ConnectionString" value="Server=XX; Database=XX; User Id=XX; Password=XX" / > < /appSettings > But now I don't know what I should put in my code to read and write to this database.
So what should my connection string look like? Also, do I need to do anything for port settings?
If anyone has already been down this path, I would really welcome your help.