View previous topic :: View next topic |
Author |
Message |
simbad Senior Member
Joined: 30 Jun 2011 Posts: 106
|
Posted: Sun Oct 21, 2012 8:59 pm Post subject: mysl root password need to change |
|
|
The full MySQL error message was : DBI connect failed : Access denied for user 'root'@'localhost' (using password: NO)
i can only user command line / ssh.
Any options how to fix this.
I have reinstall mysql server,...didn t fix this
or how to full remove mysql and start fresh mysql install  |
|
Back to top |
|
gerasimos_h Site Admin
Joined: 09 Aug 2007 Posts: 1757 Location: Greece
|
|
Back to top |
|
simbad Senior Member
Joined: 30 Jun 2011 Posts: 106
|
Posted: Sun Oct 21, 2012 10:46 pm Post subject: |
|
|
root@xenya:~# mysql -u root -p
Enter password:
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
root@xenya:~#
root@xenya:~# mysql -u root mysql
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO) |
|
Back to top |
|
gerasimos_h Site Admin
Joined: 09 Aug 2007 Posts: 1757 Location: Greece
|
Posted: Sun Oct 21, 2012 11:00 pm Post subject: |
|
|
Is this a new installation (version?)?
Did you change mysql's root password and if so how?
Have you try to reset it ?
http://sms.it-ccs.com/forum/viewtopic.php?t=52
If you don't have any databases installed backup databases (/var/lib/mysql) and remove and reinstall mysql-data.
gerasimos_h _________________ Superb! Mini Server Project Manager
http://sms.it-ccs.com |
|
Back to top |
|
simbad Senior Member
Joined: 30 Jun 2011 Posts: 106
|
Posted: Sun Oct 21, 2012 11:38 pm Post subject: |
|
|
I have changed by webmin, and i have try it . to remove and fresh istal mz sql and mysql-data. I have the same error  |
|
Back to top |
|
gerasimos_h Site Admin
Joined: 09 Aug 2007 Posts: 1757 Location: Greece
|
Posted: Sun Oct 21, 2012 11:53 pm Post subject: |
|
|
Have you tried that?
http://sms.it-ccs.com/forum/viewtopic.php?p=3447#3447
Although if you remove (backup first) /var/lib/mysql/mysql and install mysql-data it should revert as fresh install (mysql rot with no password)
Can you post step by step what you did, so I can try to reproduce it, and check if that's an webmin bug, because I can change my password in webmin with no issues.
gerasimos_h _________________ Superb! Mini Server Project Manager
http://sms.it-ccs.com |
|
Back to top |
|
simbad Senior Member
Joined: 30 Jun 2011 Posts: 106
|
Posted: Mon Oct 22, 2012 7:43 pm Post subject: |
|
|
Click this button to start the MySQL database server on your system with the command cd /usr ; (/usr/bin/safe_mysqld || /usr/bin/mysqld_safe) &. This Webmin module cannot administer the database until it is started |
|
Back to top |
|
simbad Senior Member
Joined: 30 Jun 2011 Posts: 106
|
Posted: Mon Oct 22, 2012 7:45 pm Post subject: |
|
|
I have folow your link, and now is ok!
THANKS!!! |
|
Back to top |
|
simbad Senior Member
Joined: 30 Jun 2011 Posts: 106
|
Posted: Tue Oct 23, 2012 7:35 am Post subject: |
|
|
I have try now to install mailwatch (instalation OK! / root + mailwatch db pass).
When i now try to access to http://*/mailwatch with admin/admin i got this error:
Could not connect to database: Access denied for user 'mailwatch'@'localhost' (using password: YES) |
|
Back to top |
|
gerasimos_h Site Admin
Joined: 09 Aug 2007 Posts: 1757 Location: Greece
|
Posted: Tue Oct 23, 2012 7:49 am Post subject: |
|
|
The path it's http://yourserver/mailscanner.
Did you get any error during installation of the package...?
Check that your database "password" during installation exist in
/var/www/htdocs/mailscanner/config.php
define('DB_PASS', 'yourpassword');
gerasimos_h _________________ Superb! Mini Server Project Manager
http://sms.it-ccs.com |
|
Back to top |
|
|