I want to know if mysqlplus gem is a better database driver than regular Ruby mysql gem? I used to have some problems in a Rails application, for example: ActiveRecord :: StatementInvalid: Mysql :: Error: MySQL server was gone
MySQL server has gone awaymeans that either the MySQL server crashed the execution of the query or (most often) you sent it a quert, which is more than max_allowed_packet. see http://dev.mysql.com/doc/refman/5.1/en/packet-too-large.html
MySQL server has gone away
, "mysql server has away away" , activerecord . , .
checkout http://blog.new-bamboo.co.uk/2010/4/11/automatic-reconnection-of-mysql-connections-in-active-record .
mysqlplus , concurrency, :-) , .
mysql . 'wait_timeout'.mysql :mysql > wait_timeout
8 . , , .
Activerecord ActiveRecord:: Base # verify_active_connections! . reconnect: true database.yml, .
, , .
, wait_timeout. mysql. : http://gist.github.com/238999 , , , .
Source: https://habr.com/ru/post/1724643/More articles:best jQuery mouseover way? - jqueryHow can urllib2 / httplib speak HTTP 1.1 for HTTPS connections through a Squid proxy? - pythonCaching data using hidden divs - htmlUnable to set style for path in resource dictionary - silverlightWorkflow Options for Workflow Workflow - workflowBy including a JSP page on another JSP page, how do I avoid multiple HEAD / BODY sections? - java-eeWhat could cause the Windows service to freeze if the console application does not do the same using the same base libraries? - c #Using HTML collectors in grails instead of GSP - javaJQuery UI draggable doesn't work at all! - javascriptDoes anyone run the sphinx from ant? - documentationAll Articles