Koozali.org: home of the SME Server

Help!!! - smerver 7.1.3 - Restore lost root access to mysql

daley

Help!!! - smerver 7.1.3 - Restore lost root access to mysql
« on: March 29, 2007, 03:20:03 PM »
I have sudddenly lost root access to mysql on SMEServer 7.1.3 installation. Sad Logging on as root, thus:

[root@ns1 ~]# mysql
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
[root@ns1 ~]#

I don't know what I could have done to cause this, appreciate your help.

Thanks in anticipation.

Regards,
Daley

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: Help!!! - smerver 7.1.3 - Restore lost root access to my
« Reply #1 on: March 29, 2007, 03:34:33 PM »
Quote from: "daley"
I have sudddenly lost root access to mysql on SMEServer 7.1.3 installation. Sad Logging on as root, thus:

[root@ns1 ~]# mysql
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
[root@ns1 ~]#

I don't know what I could have done to cause this, appreciate your help.

Thanks in anticipation.

Regards,
Daley
It seems that you somehow have been tempering with the MySQL root password. You should never do this. See the wiki for resetting the MySQL root password and more information.
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

daley

Help!!! - smerver 7.1.3 - Restore lost root access to mysql
« Reply #2 on: March 29, 2007, 03:46:01 PM »
Quote

 cd /var/service/mysqld
 runsvctrl d .
 expand-template /root/.my.cnf
 expand-template /var/service/mysqld/set.password
 /usr/libexec/mysqld --bootstrap --user=mysql --skip-grant-tables < ./set.password
 runsvctrl u .


Thanks for help, i have restored the password....

i was wanted to use the phpmyadmin to set password for one of the database name "roundcule", if i using the contrib file without the database password, how can i do it?

example....

[root@ns1 ]# config show roundcube
roundcube=service
    DbPassword=
    Name=RoundCube IMAP Client
    PublicAccess=global-pw-remote
[root@ns1 ]#

Thanks so much,

Regards,
Daley

Offline bpivk

  • *
  • 908
  • +0/-0
    • http://www.bezigrad.com
Help!!! - smerver 7.1.3 - Restore lost root access to mysql
« Reply #3 on: March 29, 2007, 03:52:29 PM »
Folow the install procedure as described on www.dungog.net
"It should just work" if it doesn't report it. Thanks!

daley

Help!!! - smerver 7.1.3 - Restore lost root access to mysql
« Reply #4 on: March 29, 2007, 04:15:36 PM »
Quote

# pico -w db.inc.php

# add password and shorten roundcubemail to roundcube
# note if your password has an @ you may have problems ?
$rcmail_config['db_dsnw'] = 'mysql://roundcube:hpxQLICHl-SNIP-vfpc034S@localhost/roundcube';


DATABASE ERROR: CONNECTION FAILED!

Unable to connect to the database!
Please contact your server-administrator.

Where do i go wrong for the setup?, i can't find the mysql password with 'config show roundcube',

[root@ns1 ]# config show roundcube
roundcube=service
    DbPassword=
    Name=RoundCube IMAP Client
    PublicAccess=global-pw-remote
[root@ns1 ]#

Regards,
Daley[/b]

Offline bpivk

  • *
  • 908
  • +0/-0
    • http://www.bezigrad.com
Help!!! - smerver 7.1.3 - Restore lost root access to mysql
« Reply #5 on: March 29, 2007, 04:17:55 PM »
Did you folow the procedure as described on dungog?
You have to install 2 (two) contribs.
"It should just work" if it doesn't report it. Thanks!

daley

Help!!! - smerver 7.1.3 - Restore lost root access to mysql
« Reply #6 on: March 29, 2007, 04:38:07 PM »
Yes, both files, i got it fixed, this contrib does not required password for the configuration file.

Thanks for help.
Daley