Error Executing Database Query. Communications link failure

I use  CF 10, MySQL 5 on my mac, it crashed the other day, I used Time Machine to restore my system but now I'm getting this when I try to run a site on my local server. I don't know what happen, I thought Time Machine was like a clone?

Error Executing Database Query.
Communications link failure The last packet successfully received from the server was 315 milliseconds ago. The last packet sent successfully to the server was 312 milliseconds ago.

om.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet successfully received from the server was 414 milliseconds ago.  The last packet sent successfully to the server was 411 milliseconds ago.
      at sun.reflect.GeneratedConstructorAccessor63.newInstance(Unknown Source)
      at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(
      at java.lang.reflect.Constructor.newInstance(
      at com.mysql.jdbc.Util.handleNewInstance(
      at com.mysql.jdbc.SQLError.createCommunicationsException(
      at com.mysql.jdbc.MysqlIO.reuseAndReadPacket(
      at com.mysql.jdbc.MysqlIO.reuseAndReadPacket(
      at com.mysql.jdbc.MysqlIO.checkErrorPacket(
      at com.mysql.jdbc.MysqlIO.sendCommand(
      at com.mysql.jdbc.MysqlIO.sqlQueryDirect(
      at com.mysql.jdbc.ConnectionImpl.execSQL(
      at com.mysql.jdbc.ConnectionImpl.execSQL(
      at com.mysql.jdbc.StatementImpl.execute(
      at com.mysql.jdbc.StatementImpl.execute(
      at coldfusion.server.j2ee.sql.JRunStatement.execute(
      at coldfusion.sql.Executive.executeQuery(
      at coldfusion.sql.Executive.executeQuery(
      at coldfusion.sql.Executive.executeQuery(
      at coldfusion.sql.SqlImpl.execute(
      at coldfusion.tagext.sql.QueryTag.executeQuery(
      at coldfusion.tagext.sql.QueryTag.doEndTag(
      at cfdesign_step2ecfm1444990369.runPage(/Applications/ColdFusion10/cfusion/wwwroot/obcre/www/step.cfm:8)
      at coldfusion.runtime.CfJspPage.invoke(
      at coldfusion.tagext.lang.IncludeTag.doStartTag(
      at coldfusion.filter.CfincludeFilter.invoke(
      at coldfusion.filter.IpFilter.invoke(
      at coldfusion.filter.ApplicationFilter.invoke(
      at coldfusion.filter.RequestMonitorFilter.invoke(
      at coldfusion.filter.MonitoringFilter.invoke(
      at coldfusion.filter.PathFilter.invoke(
      at coldfusion.filter.LicenseFilter.invoke(
      at coldfusion.filter.ExceptionFilter.invoke(
      at coldfusion.filter.BrowserDebugFilter.invoke(
      at coldfusion.filter.ClientScopePersistenceFilter.invoke(
      at coldfusion.filter.BrowserFilter.invoke(
      at coldfusion.filter.NoCacheFilter.invoke(
      at coldfusion.filter.GlobalsFilter.invoke(
      at coldfusion.filter.DatasourceFilter.invoke(
      at coldfusion.filter.CachingFilter.invoke(
      at coldfusion.CfmServlet.service(
      at coldfusion.bootstrap.BootstrapServlet.service(
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(
      at coldfusion.monitor.event.MonitoringServletFilter.doFilter(
      at coldfusion.bootstrap.BootstrapFilter.doFilter(
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(
      at org.apache.catalina.core.StandardWrapperValve.invoke(
      at org.apache.catalina.core.StandardContextValve.invoke(
      at org.apache.catalina.authenticator.AuthenticatorBase.invoke(
      at org.apache.catalina.core.StandardHostValve.invoke(
      at org.apache.catalina.valves.ErrorReportValve.invoke(
      at org.apache.catalina.valves.AccessLogValve.invoke(
      at org.apache.catalina.core.StandardEngineValve.invoke(
      at org.apache.catalina.connector.CoyoteAdapter.service(
      at org.apache.coyote.http11.AbstractHttp11Processor.process(
      at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(
      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(
      at java.util.concurrent.ThreadPoolExecutor$
Caused by: Can not read response from server. Expected to read 4 bytes, read 0 bytes before connection was unexpectedly lost.
      at com.mysql.jdbc.MysqlIO.readFully(
      at com.mysql.jdbc.MysqlIO.reuseAndReadPacket(
      ... 55 more
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Gurpreet Singh RandhawaWeb DeveloperCommented:
Hi Overcolor, Its an issue with the latest mysql driver, update the driver and check that same in the coldfusion datasource you will be good to go. Here is the link for the reference:

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
overcolorAuthor Commented:
When I do a "Verify all connections" in CF admin they all say "ok", I don't understand what you mean by update the MySQL driver.
Gurpreet Singh RandhawaWeb DeveloperCommented:
did you read the Forums post, please check

@overcolor -

So was it working correctly before the restore? Silly question: I assume you already tried restarting CF + MySQL and your computer? If not, do that first, just to make sure it's not something simple like stale connections, etc... being cached somewhere.

That link talks about problems with the CF9 drivers. You're using CF10.  If you never saw this error before doing the restore, that suggests it's a different problem. I don't use MAC, but this thread says it's not actually a full clone of your system. So perhaps something is missing? That's just a guess though ...
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Mac OS X

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.