How to find MySQL server name

Where can I find the MySQL name that I will use in the connection string to connect to the database from C #?

+5
source share
3 answers

"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 established a connection address correctly. The client connects to the server, but the server rejects the username and password combination.

So, you need to check your server settings, create some user with a known password, etc.

+1
source

db , "localhost".

, ( IP-) - , "dbhost.lan.company.com".

+6

It is very possible that your host is blocking external access to your mysql db, some of them do this. This explains why you can connect via myadmin.

0
source

All Articles