add port support

1、port support for mysql
2、delete useless statements