Add mysql and fix socket error