It's a horrible idea to have a root MySQL account with a blank password as means for accessing your database for an application.
To be honest it sounds like you are having trouble with setting up permissions for your database and venting it on the fact that you can't just use "root." Of course that's just a guess.
There's plenty of tutorials on how to setup your database permissions.