I cannot access MySQL Database Server from within Webmin, though it is running according to the System and Server Status section. I have already reinstalled both LAMP and Webmin, yet the problem is not solved and therefore I cannot install Virtualmin as a module. This is Webmin 1.520 installed in Ubuntu 10.10 via Synaptic, and after, to access, did /usr/share/webmin/changepass.pl /etc/webmin root PASSWORD Thanks in advance.
Here is the output:
MySQL Database Server
Login failed : Incorrect administration username or password
The full MySQL error message was : DBI connect failed : Access denied for user ‘root’@‘localhost’ (using password: YES)
And here is some more info:
mysql -h mysql -p
ERROR 2005 (HY000): Unknown MySQL server host ‘mysql’ (1)
mysql -p -u root
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 1773
Server version: 5.1.49-1ubuntu8.1 (Ubuntu)
Copyright © 2000, 2010, Oracle and/or its affiliates. All rights reserved.
This software comes with ABSOLUTELY NO WARRANTY. This is free software,
and you are welcome to modify and redistribute it under the GPL v2 license
Type ‘help;’ or ‘\h’ for help. Type ‘\c’ to clear the current input statement.
mysql>
mysqladmin status
mysqladmin: connect to server at ‘localhost’ failed
error: ‘Access denied for user ‘root’@‘localhost’ (using password: NO)’
mysqladmin -p status
Uptime: 1226 Threads: 1 Questions: 5267 Slow queries: 0 Opens: 11885 Flush tables: 1 Open tables: 64 Queries per second avg: 4.296
service mysql status
mysql start/running, process 28524
/etc/init.d/apache2 start
- Starting web server apache2
httpd (pid 7384) already running
netstat -ln | grep mysql
unix 2 [ ACC ] FLUJO ESCUCHANDO 91277 /var/run/mysqld/mysqld.sock
mysql -p -h localhost -P 3306
Welcome to the MySQL monitor…
Your MySQL connection id is 1303
Server version: 5.1.49-1ubuntu8.1 (Ubuntu)
mysql>
mysql -u root -h localhost –p
ERROR 1045 (28000): Access denied for user ‘root’@‘localhost’ (using password: NO)
sudo ps aux | grep mysql
mysql 7062 0.0 1.0 194804 39892 ? Ssl 21:05 0:05 /usr/sbin/mysqld
jmm 16835 0.0 0.0 11348 872 pts/0 S+ 23:41 0:00 grep --color=auto mysql