Sporadic issue with ODBC on localhost
I'm brand-spanking new to MySQL, using ColdFusion, and I'm having sporadic issues with queries on localhost. Sometimes they work, and sometimes they throw an error. If I reload the page executing a query five times, it might display the page correctly only one or two of those times. The execution times for the pages range from 5 to 15 seconds, whether there's an error or not. Works the same in two different browsers. The behavior is the same, whether I pass a username/pw to the database or not. Pages with no queries execute in the normal millisecond range.
MySQL Server 8.0.13 Windows 64 bit ODBC datasource (AptMaps2), which is referenced from within Coldfusion administrator, where I created a CF DSN with a different name (AptMaps). ColdFusion2018
You can see from the error text, even if the page sends back an error, the variable gets passed properly.
I have no understanding why, but I suspect there is a problem in how I've configured my DSN. Thoughts?
Error Executing Database Query. [Macromedia][SequeLink JDBC Driver]TCP/IP error, connection refused.
The error occurred in C:/ColdFusion2018/cfusion/wwwroot/pages/map.cfm: line 45
43 : SELECT *
44 : FROM Maps
45 : WHERE MID = #url.id#
46 : ORDER BY MID
47 :
SQLSTATE 08S01
DATASOURCE AptMaps
VENDORERRORCODE 2306
SQL SELECT *
FROM Maps
WHERE MID = 110
ORDER BY MID
