in reply to DBI / mySQL: Access denied for user 'myusername'@'localhost' (using password: YES)

There's no trick here -- the permissions are setup incorrectly for this user. Try it from the shell. MySQL has a somewhat confusing distinction about users who can connect over a local socket. See the MySQL docs on creating user accounts for more help.
  • Comment on Re: DBI / mySQL: Access denied for user 'myusername'@'localhost' (using password: YES)