mysql 主从报错 last_sql_errno 12 Unable to use slave’s temporary directory /tmp - Can’t read dir of ‘/tmp/’ (Errcode: 13 - Permission denied) 在从库的配置文件里面加上 tmpdir=/var/lib/mysql