my.cnf 添加long_query_time=2slow-query-log=Onslow_query_log_file=/data/mysql/data/slow.log //修改所有者chown -R mysql:mysql ./data//修改权限chmod -R 777 ./data