Is GlassFish installed in the same machine as MySQL ?
If not, can you try connecting to MySQL using a standalone java program ?
Since ping also fails, it looks like a connectivity or configuration problem.
[Message sent by forum member 'jr158900']
http://forums.java.net/jive/thread.jspa?messageID=396123