I face the problem when connecting my web application to localhost Mysql server. This is the problem that I found:
Thank you.
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