Error while connnecting to database
Authentication to host 'localhost' for user 'root' using method 'mysql_native_password' failed with message (using password: NO)
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Puneet KankarRank #446 · 5.6K reputationPosted Jul 11, 2017, 1:14 AM EDT
string connsqlstring = "SERVER=" + server + ";PORT=" + port + ";user=" + user + ";password=" + password + ";database=" + databank; sqlconn = new MySqlConnection(connsqlstring); sqlconn.Open();Rajkiran SwainRank #165 · 14.4K reputationPosted Jul 11, 2017, 1:25 AM EDT
Harsha Eadara49 reputationPosted Jul 11, 2017, 1:34 AM EDT
Rajkiran SwainRank #165 · 14.4K reputationPosted Jul 11, 2017, 1:39 AM EDT
- Check the properties connection..
- Check if the MySQL port is open.
Harish Supekar189 reputationPosted Jul 17, 2017, 1:33 AM EDT
Harish Supekar189 reputationPosted Jul 17, 2017, 3:01 AM EDT