Might be best to document that this only works if you run the script on the same server as the MySQL server or you've somehow sent the server the file.  I don't know if WMF will allow either one.