Find the answer to your Linux question:
Results 1 to 4 of 4
Hi folks, Ubuntu 7.04 server amd64 It just comes to my notice on running following commands $ sudo /etc/init.d/mysql stop Code: * Stopping MySQL database server mysqld [fail] $ sudo ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux Guru
    Join Date
    Sep 2004
    Posts
    1,788

    Problem on MySQL


    Hi folks,


    Ubuntu 7.04 server amd64


    It just comes to my notice on running following commands

    $ sudo /etc/init.d/mysql stop
    Code:
     * Stopping MySQL database server mysqld       [fail]

    $ sudo /etc/init.d/mysql start
    Code:
     * Starting MySQL database server mysqld        [ OK ] 
    /usr/bin/mysqladmin: connect to server at 'localhost' failed
    error: 'Access denied for user 'debian-sys-maint'@'localhost' (using password: YES)'

    I suppose the problem is caused by running several 'apt-get update' and 'apt-get upgrade'. Before MySQL start/stop without problem nor having warning.


    Please advise how to fix this problem. TIA


    B.R.
    satimis

  2. #2
    Just Joined! andriagutama's Avatar
    Join Date
    Jul 2008
    Location
    Batam, Indonesia
    Posts
    34
    1.try to start mysql-server:
    Code:
    /etc/init.d/mysql start
    2.then log in to mysql server with known user and password
    Code:
    mysql -u root -p
    in case the user is root and have password,if the user have no password,type in terminal:
    Code:
    mysql -u root

  3. #3
    Linux Guru
    Join Date
    Sep 2004
    Posts
    1,788
    Quote Originally Posted by andriagutama View Post
    1.try to start mysql-server:
    Code:
    /etc/init.d/mysql start
    2.then log in to mysql server with known user and password
    Code:
    mysql -u root -p
    in case the user is root and have password,if the user have no password,type in terminal:
    Code:
    mysql -u root
    Hi andriagutama,


    Thanks for your advice.


    It was MySQL package upgraded on repo having problem. After removing it and other relevant packages and reinstalling them, problem is now gone.


    B.R.
    satimis

  4. #4
    Just Joined! andriagutama's Avatar
    Join Date
    Jul 2008
    Location
    Batam, Indonesia
    Posts
    34
    owh,,,
    well done

Posting Permissions

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