Mysql Setup
By default, glassfish can't connect to mysql on localhost using a username/password. Execute following statements on the mysql db. (open it with mysql -uroot mysql)
- delete from user where user ='';
- flush privileges;
You can also check the user table if necessay: select host, password, user from user;