Since, the error you are receiving is
Access denied for user 'myuser'@'localhost' (using password: NO)
and not
blah blah blah
as defined in the die ('blah blah blah');
segment; the error is not because of your connection to MySQL server.
This is most probably because the user myuser does not have PRIVILEGES
to perform the task you are asking it to do(may be DELETE
, may be UPDATE
or may even be SELECT
)