bug的原因是在linux系統下,mysql的配置檔案my.cnf的basedir不能使用軟連接配接.
表象如下:
<code>#cat /usr/local/mysql/my.cnf | grep basedir</code>
<code>basedir=</code><code>/usr/local/mysql</code>
<code>#ln -sf Percona-Server-5.6.34-rel79.1-Linux.x86_64.ssl101 mysql</code>
<code>#/usr/local/mysql/support-files/mysql.server start</code>
<code>Starting MySQL (Percona Server). mysqld_safe ld_preload libraries can only be loaded from </code>
<code>system directories (</code><code>/usr/lib64</code><code>, </code><code>/usr/lib</code><code>, </code><code>/usr/local/mysql/lib</code><code>)</code>
<code>ERROR! The server quit without updating PID </code><code>file</code> <code>(</code><code>/usr/local/mysql/data/pidfile</code><code>.pid).</code>
然後,把basedir的位址換成絕對路徑
<code>#cat /etc/my.cnf | grep basedir</code>
<code>basedir=</code><code>/mysql/Percona-Server-5</code><code>.6.34-rel79.1-Linux.x86_64.ssl101</code>
<code>Starting MySQL (Percona Server). SUCCESS!</code>
就是這麼回事.......
此bug存在于5.6.34(我用出問題的版本),還有5.7.15(bug提供者的版本),其實我個人感覺嚴格來說也不能算是bug吧,畢竟也沒影響正常使用,如果是官方版本,也不會出現此類問題,因為不用創軟連接配接.
bug提供者送出的網頁位址
https://bugs.launchpad.net/percona-server/+bug/1639735
本文轉自arthur376 51CTO部落格,原文連結:http://blog.51cto.com/arthur376/1879839,如需轉載請自行聯系原作者