You don't set the %m.sql, you just edit this part:
else if ($1 = mysql) { if ($2 = hostname) return 127.0.0.1 else if ($2 = username) return root else if ($2 = password) return else if ($2 = database) return bot }
and refresh mIRC (/exit -rn)