You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near \'localhost\' to database \'mysql\'\', do= \'\', task= \'\', link= \'/index.php?option=com_\' at line 1 SQL=UPDATE jos_fb_whoisonline SET time=\'1227174448\', what=\'DBI connect failed : Access denied for user \'\'@\'localhost\' to database \'mysql\'\', do= \'\', task= \'\', link= \'/index.php?option=com_fireboard&Itemid=77&func=view&id=2590&catid=4\', func= \'view\'\n WHERE userid=\'0\' AND userip=\'38.103.63.56\'
DBI connect failed : Access denied for user ''@'localhost' to database 'mysql' 2006/08/22 07:35
Dear Forum When in Webmin, if I try to access any of the 'Global Options' on the 'MySQL Database Server', the above message appears.
Its the same message if I'm in Virtualmin and tick the 'MySql database enabled' option when in 'virtual server details'
The user I am logged in as in webmin is 'root'
Any help here, please
Michael
The administrator has disabled public write access.
#2596
Joe(Admin)
Posts: 4082
Re: DBI connect failed : Access denied for user ''@'localhost' to database 'mysql' 2006/08/22 19:42
Hey Michael,
You need to tell Webmin's MySQL module your username and password for the root account in MySQL (this is separate and possibly wholly different than your system root password).
Click on Module Config in the MySQL module to configure this.
The administrator has disabled public write access.
#2631
MichaelDaly(User)
Posts: 2
Re: DBI connect failed : Access denied for user ''@'localhost' to database 'mysql' 2006/08/29 01:22
Thanks Joe, it has worked
I think there is NO mysql admin password in my mysql setup; is it possible to set up a database password in this situation?
Sincerely Michael
The administrator has disabled public write access.
#2640
Joe(Admin)
Posts: 4082
Re: Re: DBI connect failed : Access denied for user ''@'localhost' to database 'mysql' 2006/08/29 21:31
I think there is NO mysql admin password in my mysql setup; is it possible to set up a database password in this situation?
Given this error, I suspect there is a root password set.
But, yes, you can certainly reset the password. From the command line:
# mysql -u root mysql
mysql> SET PASSWORD FOR root@localhost=PASSWORD('biglongpassword'); Query OK, 0 rows affected (0.06 sec)
If you've got a root password, but have forgotten it, you'll have to first stop/start mysqld with the --skip-grant-tables option:
# service mysqld stop
# mysqld --skip-grant-tables --user=root
And then run the above password setting command sequence.
The administrator has disabled public write access.
#3859
BurtAdjoodani(User)
Posts: 5
DBI connect failed : Access denied for user ''@'localhost' to database 'mysql' 2007/02/21 13:19