Use a tool like "phpmyadmin", login as the root user, edit the permissions section; it should list the username, the md5 (or sha) version of the password, and the host it can connect to...
Generally it should show several copies of the same user, for differant hosts:
localhost
localhost.localdomain
127.0.0.1