The MySQL protocol is complex and some features (such as compression and encryption) simply can not be implemented through an mIRC script. I'd suggest you use the mysql.dll (or whatever it's called) it's a much better alternative.