<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    On 10/11/2011 11:04, Damian wrote:
    <blockquote cite="mid:4EBBAFBA.1000102@surr.co.uk" type="cite">On
      09/11/2011 12:00, <a class="moz-txt-link-abbreviated" href="mailto:mythtv-users-request@mythtv.org">mythtv-users-request@mythtv.org</a> wrote:
      <br>
      <blockquote type="cite">Date: Tue, 08 Nov 2011 14:08:56 -0600
        <br>
        From: Bill Meek<a class="moz-txt-link-rfc2396E" href="mailto:keemllib@gmail.com">&lt;keemllib@gmail.com&gt;</a>
        <br>
        Subject: Re: [mythtv-users] Upgraded the Ubuntu 11.10 and not
        Myth,
        <br>
        &nbsp;&nbsp;&nbsp;&nbsp;can't connect to MySQL
        <br>
        <a class="moz-txt-link-abbreviated" href="mailto:To:mythtv-users@mythtv.org">To:mythtv-users@mythtv.org</a>
        <br>
        Message-ID:<a class="moz-txt-link-rfc2396E" href="mailto:4EB98C58.7030603@gmail.com">&lt;4EB98C58.7030603@gmail.com&gt;</a>
        <br>
        Content-Type: text/plain; charset=ISO-8859-1; format=flowed
        <br>
        <br>
        On 11/08/2011 07:46 AM, Damian wrote:
        <br>
        ...
        <br>
        <br>
        Hi;
        <br>
        <br>
        OK, good news. I've duplicated your problem with the
        <br>
        same error messages and no response after sudo start
        <br>
        mysql.
        <br>
        <br>
        Go to /etc/apparmor.d and look at the file:
        <br>
        <br>
        &nbsp;&nbsp; usr.sbin.mysqld
        <br>
        <br>
        I suspect you'll see lines like:
        <br>
        <br>
        &nbsp;&nbsp;&nbsp; /var/run/mysqld/mysqld.pid w,
        <br>
        &nbsp;&nbsp;&nbsp; /var/run/mysqld/mysqld.sock w,
        <br>
        <br>
        On my 11.10 system, they look like:
        <br>
        <br>
        &nbsp;&nbsp;&nbsp; /{,var/}run/mysqld/mysqld.pid w,
        <br>
        &nbsp;&nbsp;&nbsp; /{,var/}run/mysqld/mysqld.sock w,
        <br>
        <br>
        Because now /run exists along with /var/run.
        <br>
        <br>
        You may also see the same file name with .dpkg
        <br>
        at the end of it (or something like it.)
        <br>
        <br>
        I'm/guessing/&nbsp; that when you upgraded, you were
        <br>
        asked if you wanted to install the new file and
        <br>
        you answered no.
        <br>
        <br>
        -- Bill
        <br>
      </blockquote>
      It works!!
      <br>
      <br>
      Bill, you are a genius! Thank you so much. It was clearly only a
      tiny problem, but you managed to find the needle in the haystack!
      <br>
      <br>
      You will be correct in how the problem was caused as well. I will
      have clicked to keep the old file as I have other problems in the
      past with newer files replacing my previous settings. I'm not sure
      what the recommended plan would be there (other than /don't
      upgrade/ ), but here are my lessons learned:
      <br>
      <br>
      1) Only upgrade on LTS releases (and some would argue to not even
      do that)
      <br>
      <br>
      2) When there are differences between old and new config files
      during an upgrade, *cut and paste the diff information* for use if
      there's a problem at the end!!!
      <br>
      <br>
      Thanks again Bill, and that comes from all of the family too.
      <br>
      <br>
      Now I need to track back what I did along the way. I think the
      only thing that needs 'undoing' is one of the files or folders
      that I granted universal access to. I'll find that and get it
      patched back up as it should be.
      <br>
      <br>
      Thanks to everyone else who helped too. It was a tricky one to
      find.
      <br>
      <br>
      Best wishes
      <br>
      Damian
      <br>
    </blockquote>
    Hi all,<br>
    <br>
    What is the <span style="border-collapse: separate; color: rgb(0,
      0, 0); font-family: Tahoma; font-style: normal; font-variant:
      normal; font-weight: normal; letter-spacing: normal; line-height:
      normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px;
      text-transform: none; white-space: normal; widows: 2;
      word-spacing: 0px; -webkit-border-horizontal-spacing: 0px;
      -webkit-border-vertical-spacing: 0px;
      -webkit-text-decorations-in-effect: none;
      -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;
      font-size: medium;">chmod value of /var/run/mysql supposed to be?
      It was set to 'o+w' during the process of getting this thing
      sorted, but I want everything back as it should be now.<br>
      <br>
      Cheers<br>
      Damian<br>
    </span>
  </body>
</html>