I examined the code and couldn't see an issue, then to confirm I did a test install with a new mysql user with a password of "#", and this worked correctly. I then finally confirmed the password in info.php continued to be "#".
If I have misunderstood somehow or you can reproduce a different experience, please reopen.
If I have misunderstood somehow or you can reproduce a different experience, please reopen.