Sounds like you got something wrong when doing the 'GRANT' for 'moodleuser' in your mysql database (or you didn't do it at all).
Installing and upgrading help
Error Message while creating a database
This discussion has been locked so you can no longer reply to it.