You should not keep script files in the same directory as mirc.exe as this breaks the inherent multi user support that has been available since 6.3

use $scriptdir\mysql.dll and keep your dll with your script files.