Hmm, had you done the install, or did a provider do it for you? As I’ve never seen MySQL be installed without a root user before…
Where is it exactly that you’re seeing that error above?
In most cases, once you’ve gotten Virtualmin up and running, what you’d be able to do is go into Webmin -> Servers -> MySQL, choose “Change Administration Password”, and set a new one.
Does that work by chance, or is that where you’re receiving the error?
I tried that before and it didn’t give me a root user for some strange reason…
I’ve managed to add a root user to the mysql.user table and give it access - so i’ve got Virtualmin working just now. I’ll let you know if I run into problems.
I just ran into this issue on a new test server (Ubuntu 8.04). Here’s my take on the situation …
I installed mysql-server and mysql-client before installing Virtualmin 3.73.gpl. During mysql installation, I had already set the mysql root user’s password to XXXX.
Then, later in the Virtualmin Post Installation Wizard, it asks for the password so I type XXXX again. Virtualmin then tries to set the mysql root password to XXXX, but using its current (and uninitialised) credentials of …
user ‘root’@‘localhost’ (using password: NO)
which naturally fails because the root password is already set to something. Hence, I also got the error message
DBI connect failed : Access denied for user ‘root’@‘localhost’ (using password: NO).
Later I went to Webmin’s mysql module configuration page and set the mysql root password to XXXX and everything worked fine afterwards.
So, I think this is just a small bug in the Post Installation Wizard. If it can’t set the root password using current credentials, it should then perhaps try to confirm that the supplied password is, in fact, already the one in use.