A (very) dirty trick is to let the installation script stop the mysqld daemon, start it again with --skip-grant-tables, load your databases (no password is then required), and restart the daemon normally.
wow! I am speechless with admiration for the sheer beauty of this "(very) dirty trick". It is exactly that, but it is exactly the solution to the OP's problem. As I said, wow! peace --wpd