Update tools.php

add mysqld default settings, add shell class