Failed to create virtual server : DBI connect failed : Access denied for user ''@'localhost' to database 'mysql'

Through virtual min, I am getting this error while adding the Virtualmin Virtual Servers.

“Failed to create virtual server : DBI connect failed : Access denied for user ‘’@‘localhost’ to database ‘mysql’”

How I can fix this.

Thanks in advance.

Hi Sourav,

Are you sure you’re using the latest version of Webmin and Virtualmin? These was a bug in Webmin in the past, similar to this, that has been fixed for quite a long time. There could be some other cause…but that’s the first thing I’d check.