简体   繁体   中英

Host — is not allowed to connect to this MySQL server .Net core

I face the problem when connecting my web application to localhost Mysql server. This is the problem that I found:

在此处输入图片说明

Thank you.

Sometimes spacing and Order of parameters in connection string matters.

Remember documentation states "If you do not specify a server, localhost is assumed."

Server=myServerAddress; Port=1234; Database=myDataBase; Uid=myUsername; Pwd=myPassword;

Make sure your database server is running if its not running then its not able to make connection and bydefault mysql running on 3306 so don't need mention port if same in case of port number is different then we need to mention port

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM