Where can I find the name of MySQL which I'll use at the connection string to connect to the database from c#?
If you're connecting to a db on the same server, it should be "localhost
".
If you are connecting to a remote server, then it should be the FQDN of the remote server (or the IP address) - for example, "dbhost.lan.company.com
".
"Unhandled Exception: MySql.Data.MySqlClient.MySqlException: Access denied for user 'root'@'sfn-inkubator-70-61.hib.no' (using password: YES)" error means that you have setup connection address correctly. Client connects to server, but server rejects username and password combination.
So you need to check your server setup, create some user with known password and so on......
It's very possible your host blocks external access to your mysql db, quite a few do. This would explain why you can connect via myadmin.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With