Results 1 to 5 of 5

Thread: [SOLVED] Trouble updating mysql-server-5

  1. #1
    Join Date
    Feb 2007
    Location
    South Australia
    Beans
    136
    Distro
    Ubuntu 7.04 Feisty Fawn

    [SOLVED] Trouble updating mysql-server-5

    Hi,

    Tried updating mysql from the update manager, but it is having problems updating mysql-server-5.

    The error that seems to pin point the problem is...
    "Access denied for user 'debian-sys-maint'@'localhost' (using password: YES)"

    So I guess the question is, how do I give debian-sys-maint full access again. I dont remember changing anything other than the root password for mysql.

    Jay
    Ubuntu 7.04 on Toshiba Satellite M110/L00.
    http://www.myspace.com/dnb_jay019 - http://jay019.com/

  2. #2
    Join Date
    Feb 2007
    Location
    South Australia
    Beans
    136
    Distro
    Ubuntu 7.04 Feisty Fawn

    Re: Trouble updating mysql-server-5

    Full output from update-manger / synaptic...

    Code:
    Preconfiguring packages ...
    (Reading database ... 154932 files and directories currently installed.)
    Preparing to replace mysql-server-5.0 5.0.51a-3ubuntu5.1 (using .../mysql-server-5.0_5.0.51a-3ubuntu5.4_i386.deb) ...
     * Stopping MySQL database server mysqld
       ...fail!
    invoke-rc.d: initscript mysql, action "stop" failed.
    dpkg: warning - old pre-removal script returned error exit status 1
    dpkg - trying script from the new package instead ...
     * Stopping MySQL database server mysqld
       ...fail!
    invoke-rc.d: initscript mysql, action "stop" failed.
    dpkg: error processing /var/cache/apt/archives/mysql-server-5.0_5.0.51a-3ubuntu5.4_i386.deb (--unpack):
     subprocess new pre-removal script returned error exit status 1
     * Stopping MySQL database server mysqld
       ...fail!
    invoke-rc.d: initscript mysql, action "stop" failed.
     * Starting MySQL database server mysqld
       ...done.
    /usr/bin/mysqladmin: connect to server at 'localhost' failed
    error: 'Access denied for user 'debian-sys-maint'@'localhost' (using password: YES)'
    Errors were encountered while processing:
     /var/cache/apt/archives/mysql-server-5.0_5.0.51a-3ubuntu5.4_i386.deb
    E: Sub-process /usr/bin/dpkg returned an error code (1)
    A package failed to install.  Trying to recover:
    Ubuntu 7.04 on Toshiba Satellite M110/L00.
    http://www.myspace.com/dnb_jay019 - http://jay019.com/

  3. #3
    Join Date
    Feb 2007
    Location
    South Australia
    Beans
    136
    Distro
    Ubuntu 7.04 Feisty Fawn

    Re: Trouble updating mysql-server-5

    Never mind, found it.
    For anyone else stuck in my predicament...

    look in /etc/mysql/deban.cnf for the default password.
    update it in mysql.
    profit.
    Ubuntu 7.04 on Toshiba Satellite M110/L00.
    http://www.myspace.com/dnb_jay019 - http://jay019.com/

  4. #4
    Join Date
    Aug 2008
    Beans
    40

    Re: [SOLVED] Trouble updating mysql-server-5

    Thanks for telling how you solved the problem. However, for the less experienced mysql users: how did you update the password? Doesn't this change the password you chose when installing it?

  5. #5
    Join Date
    Feb 2007
    Location
    South Australia
    Beans
    136
    Distro
    Ubuntu 7.04 Feisty Fawn

    Re: [SOLVED] Trouble updating mysql-server-5

    Good point...

    To update the password I used phpmyadmin and logged on as root using the root password I set. Then I clicked on the link for "Privileges", clicked on the edit button for the "debian-sys-maint" user, then changed the password in the "Change Password" section to the password I found in /etc/mysql/deban.cnf

    If anyone has any troubles fixing the same issue feel free to PM me for help.

    :thumbsup:
    Ubuntu 7.04 on Toshiba Satellite M110/L00.
    http://www.myspace.com/dnb_jay019 - http://jay019.com/

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •