mysqldump http://alexmoreno.net/ en ERROR 2013 (HY000): Lost connection to MySQL server http://alexmoreno.net/error-2013-hy000-lost-connection-mysql-server/17-12-2012 <article role="article" about="http://alexmoreno.net/error-2013-hy000-lost-connection-mysql-server/17-12-2012" class="node node--type-blog node--promoted node--view-mode-teaser"><header><div class="node__meta"> <span> By <span class="node__author"><span><a title="View user profile." href="http://alexmoreno.net/alejandro-moreno" lang="" about="http://alexmoreno.net/alejandro-moreno" typeof="schema:Person" property="schema:name" datatype="" xml:lang="">alexmoreno</a></span></span>, 17 December, 2012 </span> </div> <div class="node__top-wrapper"> <h2 class="node__title"> <a href="http://alexmoreno.net/error-2013-hy000-lost-connection-mysql-server/17-12-2012" rel="bookmark"> <span>ERROR 2013 (HY000): Lost connection to MySQL server </span> </a> </h2> </div> </header><div class="node__content text-content"> <div class="text-content field field--name-body field--type-text-with-summary field--label-hidden field__item"><p>Have you ever had a big (and when i say big I mean BIG) database which you need to import in a sql file?</p><p>If so, you'll probably have found this issue (or even you are having the problem just now and you are reading this looking for a solution):</p><p>ERROR 2013 (HY000): Lost connection to MySQL server</p><p>This uses to happen when trying to import the dump with the mysql -u command:</p><p>mysql -u root -p database < databasetoimport.sql</p><p>You can try to play with the my.ini settings, but a best secure solution is just to do the import from the mysql own console. How? easy.</p></div> <div class="field field--name-taxonomy-vocabulary-1 field--type-entity-reference field--label-hidden field--tag-ref"> <ul class="links field__items field--tag-ref__items"><li class="field--tag-ref__item"><a href="http://alexmoreno.net/mysql" hreflang="es">mysql</a></li> <li class="field--tag-ref__item"><a href="http://alexmoreno.net/backups" hreflang="es">backups</a></li> <li class="field--tag-ref__item"><a href="http://alexmoreno.net/mysqldump" hreflang="es">mysqldump</a></li> </ul></div> </div> </article> Mon, 17 Dec 2012 11:22:16 +0000 alexmoreno 71 at http://alexmoreno.net