How to echo it properly (wrong username and password) mysql

Yes, @Gandalf had already mentioned that so I didn’t want to labour the point. I can only assume OP is in charge of their server versions and will plan ahead to suit.