Remove anonymous login and test database for Ubuntu.
Move MySQL commands to file for execution.
Remove temporary MySQL script after execution.