Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Which particular version of Ubuntu is this and is this Ubuntu Server Edition?</p> <p>Recent Ubuntu Server Editions (such as 10.04) ship with AppArmor and MySQL's profile might be in enforcing mode by default. You can check this by executing <code>sudo aa-status</code> like so:</p> <pre class="lang-none prettyprint-override"><code># sudo aa-status 5 profiles are loaded. 5 profiles are in enforce mode. /usr/lib/connman/scripts/dhclient-script /sbin/dhclient3 /usr/sbin/tcpdump /usr/lib/NetworkManager/nm-dhcp-client.action /usr/sbin/mysqld 0 profiles are in complain mode. 1 processes have profiles defined. 1 processes are in enforce mode : /usr/sbin/mysqld (1089) 0 processes are in complain mode. </code></pre> <p>If mysqld is included in enforce mode, then it is the one probably denying the write. Entries would also be written in <code>/var/log/messages</code> when AppArmor blocks the writes/accesses. What you can do is edit <code>/etc/apparmor.d/usr.sbin.mysqld</code> and add <code>/data/</code> and <code>/data/*</code> near the bottom like so:</p> <pre class="lang-none prettyprint-override"><code>... /usr/sbin/mysqld { ... /var/log/mysql/ r, /var/log/mysql/* rw, /var/run/mysqld/mysqld.pid w, /var/run/mysqld/mysqld.sock w, **/data/ r, /data/* rw,** } </code></pre> <p>And then make AppArmor reload the profiles.</p> <pre class="lang-none prettyprint-override"><code># sudo /etc/init.d/apparmor reload </code></pre> <p>WARNING: the change above will allow MySQL to read and write to the /data directory. We hope you've already considered the security implications of this.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload