<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic mysqldump command fail in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/mysqldump-command-fail/m-p/265270#M218400</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have intalled Alfresco Community 3.4.d on an Ubuntu Server 10.04 server using the quick install with the bundled mysql database.&amp;nbsp; The Ubuntu server only had ssh installed; mysql was not installed.&amp;nbsp; When I use the mysqldump command:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; mysqldump -u root -p –default-character-set=latin1 -N alfresco &amp;gt; backup.sql&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I get this error:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;mysqldump: Got error: 2002: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) when trying to connect&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have discovered that there are two my.cnf files on the server, one at /etc/mysql, and the other at /opt/alfresco-3.4.d/mysql.&amp;nbsp; Each points to a different mysqld.sock.&amp;nbsp; The /etc/mysql/my.cnf points to the one referenced in the error message and the other points to /opt/alfresco-3.4.d/mysql/tmp/mysql.sock.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Where do I need to look to re-direct the mysqldump command to the correct socket?&amp;nbsp; A search shows two copies of the command, one under /usr/bin the other under /opt/alfresco-3.4.d/mysql/bin.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 24 Feb 2011 17:44:37 GMT</pubDate>
    <dc:creator>gdowrey</dc:creator>
    <dc:date>2011-02-24T17:44:37Z</dc:date>
    <item>
      <title>mysqldump command fail</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/mysqldump-command-fail/m-p/265270#M218400</link>
      <description>I have intalled Alfresco Community 3.4.d on an Ubuntu Server 10.04 server using the quick install with the bundled mysql database.&amp;nbsp; The Ubuntu server only had ssh installed; mysql was not installed.&amp;nbsp; When I use the mysqldump command: mysqldump -u root -p –default-character-set=latin1 -N alfresco &amp;gt;</description>
      <pubDate>Thu, 24 Feb 2011 17:44:37 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/mysqldump-command-fail/m-p/265270#M218400</guid>
      <dc:creator>gdowrey</dc:creator>
      <dc:date>2011-02-24T17:44:37Z</dc:date>
    </item>
    <item>
      <title>Re: mysqldump command fail</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/mysqldump-command-fail/m-p/265271#M218401</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I dont think that this is still relevant but here it goes.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I had the same error, but after a couple of hours ( &lt;img id="smileysad" class="emoticon emoticon-smileysad" src="https://connect.hyland.com/i/smilies/16x16_smiley-sad.png" alt="Smiley Sad" title="Smiley Sad" /&gt; ) i managed to make the dump.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The mistake i made was this: wit ./opt/alfresco/alfresco.sh stop i also stopped the mysql server.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;so, if you stop Alfresco using the script, make sure to restart mysql: ./opt/alfresco/mysql/scripts/ctl.sh start (from memory)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Recently i red somewhere that you can also stop the tomcatserver, but havnt tried this yet.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also, i replaced /etc/my.cnf with the /opt/alfresco/mysql/my.cnf &amp;lt;- i'm not sure if this is really nececerly… I can imagine that it might muck up mysql as a whole on your server.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this is helpfull for someone.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Sjoerd&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Nov 2011 12:48:53 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/mysqldump-command-fail/m-p/265271#M218401</guid>
      <dc:creator>sjoerdjump</dc:creator>
      <dc:date>2011-11-15T12:48:53Z</dc:date>
    </item>
  </channel>
</rss>

