refactor mysql
add errlog
update proxy, can not run now