Added the FLUSH PRIVILEGES; statement to the end of the script.