random connection error cant connect to mysql database server 10060 - mysql

Our Application is using mysql database from remote linux server at port 3306
Application is connecting to database server using TCP/IP protocol from windows xp service pack 3 machine.Application works well almost all time but some times it is giving following error randomly "[MySQL][ODBC 5.1 Driver]Can't connect to MySQL Server on 'IP Adderss' (10060)". Only one desktop user is facing this issue from around 240 users.
Application is developed in VB6.
Database server: mysql 5.1.51
can any one suggest possible cause of this error ?

As the error occurs randomly in just one client machine , we have change network card on particular machine and then user has not face same issue from last week.It was due to interrupted network connectivity of client machine to database server

Related

'connection to localhost failed' when 'waking up the server (mysql server on aws lightsail)

I a have a windows server on AWS (Lightsail). I have installed MYSQL Server on it. I have multiple websites that connect to the MYSQL server via Localhost. When I use one of the websites after a long period of inactive time and it has to connect to the MYSQL server, I receive the error:
'connection to localhost failed'
What's strange is that it happens only the first time. If I try to connect after that there's no problem. It's like the MYSQL enters in sleep mode, and the first connection wake's it up, and then there is no problem.
I have no idea how I could troubleshoot that.
Any ideas?

"Cannot Connect to Database Server" error connecting from MySQL Workbench to SiteGround MySQL Database

Situation:
I am trying to connect to my SiteGround server MySQL database directly from my local machine using MySQL Workbench. I am positive that the connection properties are entered correctly as the connection works if I am connected to Network A (phone data plan). But with Network B, the connection failed.
I allowed remote access to my server from my Network B IP, in fact, I allowed all IPs just for testing, therefore Network A is working.
I checked if there is any setting that blocks the port from my router and modem in Network B, but I found nothing.
I tried running netstat: nothing with port 3306.
I tried running telnet: "connect failed"
Question:
I am suspecting that my ISP has blocked the outgoing port 3306? Is there anything I can do to "unblock" it?
Or is there any workaround for connecting to my server database?
My connection set up screenshot:
Error screenshot:
Thank you in advance for your time and help!!

MySql showing 800 connections when no user is online?

I am using Springboot for Server side development and mysql workbench is showing more than 800 connection in development server when no user is connected or online. Here is the screenshot of mysql workbench server status.
Please help how am i getting these number of connection and how can I rectify this error.
When you deploy a spring-boot application it creates a connection pool which sits idle if there is not load on the server (meaning in your terms that no user is online) these connections are still maintained. Hence, when you check the number of DB connections from WorkBench, it'll show you that many number of connections used by server.

"Host is not allowed to connect to this MySQL server" over network

I am attempting to connect Tableau on a client (Windows 7) to a MySQL Server 5.6 (on Windows Server 2012 R2) that is hosting my data warehouse. This server is hosted on my university's network. Here is what I have done so far:
created a user that has privileges it needs (I ran GRANT ALL PRIVILEGES ON the user with FLUSH PRIVILEDGES, based on some other stack overflow posts)
made sure the host specified in the user table is "%"
made sure there was nothing in the my.cnf file that would prevent external connections (again based on another stackoverflow post)
ensured that the edition of MySQL running on the server is 64 bit, like the version of Tableau I'm running
I still get the "[MySQL][ODBC 5.3(w) Driver]Host 'vpn240-74.vpn.utah.edu' is not allowed to connect to this MySQL server" error. This same error is thrown when I try to telnet to the port on the server MySQL is listening on.
I have found that this error persists whether I am connected via a vpn or on campus. I can RDP to the server in question, ping it, and found the firewall rule for the port I am using, so I don't think there is anything network related that is stopping me.
All my stackoverflow research says that error means MySQL is convinced that the user is not allowed to connect from that specific hostname, but I get the same error whether I change the entry in the user table to be "%" or the specific hostname from the error message.
Also I see that the Tableau MySQL driver I installed is a lower version number than the MySQL instance I'm trying to hit (5.3 vs 5.6) but that is the newest driver on the Tableau site that I can find.
Any help greatly appreciated.
Have you tried making an ODBC connection in your computer to your MySQL server and testing it that way?
Tableau can then connect via an ODBC connection made rather than the explicit Tableau MySQL driver. In Tableau under More Servers... Other Databases (ODBC) shows up at the very bottom.

Cannot connect to MySQL on server - #1130

There have been a number of questions on this topic on Stackoverflow but not exactly my situation.
I have a MySQL server installed on my PC, which was working fine. We used to have a peer-to-peer network in the office. My PC was just named "MY-PC". Some change occurred to the network and my PC is now connected to a "proper" network, and the name of the PC has changed to "MY-PC.mycompanywebsite.co.uk".
Now every time I try to connect to MySQL it gives me the error:
#1130 - Host 'My-PC.mycompanywebsite.co.uk' is not allowed to connect to this MySQL server
I can't log in using the command line tool or anything. Is there a config file setting I need to change to get this working?
By the way, this is a version of MySQL which came in an installation of WAMPServer, so I did not configure it myself.