Failed to connect to mysql at 127.0.0.1:3306 with user root access denied for user ‘root’@’localhost'(using password:YES)

First check if it’s a workbench or connection problem. 1) In your windows run ‘cmd’ to open a terminal Try both 2a) mysql -u root -p -h 127.0.0.1 -P 3306 2b) mysql -u root -p -h > localhost -P 3306 3) If the connection is good you will get a password prompt, see if you … Read more

How to check if a socket is connected/disconnected in C#?

As Paul Turner answered Socket.Connected cannot be used in this situation. You need to poll connection every time to see if connection is still active. This is code I used: bool SocketConnected(Socket s) { bool part1 = s.Poll(1000, SelectMode.SelectRead); bool part2 = (s.Available == 0); if (part1 && part2) return false; else return true; } … Read more

Apache Server (xampp) doesn’t run on Windows 10 (Port 80)

I had the same problem on windows 10, IIS/10.0 was using port 80 To solve that: find service “W3SVC” disable it, or set it to “manual” French name is: “Service de publication World Wide Web“ English name is: “World Wide Web Publishing Service“ german name is: “WWW-Publishingdienst” – thanks @fiffy Polish name is: “Usługa publikowania … Read more

Instantly detect client disconnection from server socket

Since there are no events available to signal when the socket is disconnected, you will have to poll it at a frequency that is acceptable to you. Using this extension method, you can have a reliable method to detect if a socket is disconnected. static class SocketExtensions { public static bool IsConnected(this Socket socket) { … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)