Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: sudo Could not connect to database

  1. #1
    Join Date
    Jun 2006
    Beans
    12

    sudo Could not connect to database

    I have a strange thing happening when I use the sudo command. I'm getting "Could not connect to database" every time I use the sudo command. I don't have the slightest clue. The sudo command works but it gives this phrase.
    Can someone enlighten me?

  2. #2
    Join Date
    Jan 2007
    Beans
    Hidden!
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: sudo Could not connect to database

    What database you want to connect?? What is the command line you use to connect.

  3. #3
    Join Date
    Mar 2006
    Beans
    88

    Re: sudo Could not connect to database

    This does sound odd. Just out of curiousity, `which sudo` does give you `/usr/bin/sudo`, right?

    @n0dix
    I don't think he's trying to connect to a database, but getting that when he issues any sudo command.
    Santiance (Blog) - GTalk: nullmind@gmail.com - AIM: nullsmind

  4. #4
    Join Date
    Jun 2006
    Beans
    12

    Re: sudo Could not connect to database

    Actually, I only have one database on the machine, MySQL and I'm not attempting to connect to a database. This occurs each and every time I use the /usr/bin/sudo command. This command is the only time I see the phrase

  5. #5
    Join Date
    Jun 2008
    Location
    Ballard
    Beans
    2,409
    Distro
    Ubuntu 16.04 Xenial Xerus

    Re: sudo Could not connect to database

    What happens if you try sudo --help or sudo -V (note: that's a capital V)?
    "We're all in this together, kid." --H. Tuttle (a.k.a. H. Buttle)
    "Maybe it's a layer 8 problem." --thatguruguy
    A High-Tech Blech!

  6. #6
    Join Date
    Jun 2006
    Beans
    12

    Re: sudo Could not connect to database

    Actually not much,
    $ sudo -V
    Sudo version 1.6.9p10
    jgenus@bull:~>
    $ sudo --help
    sudo: please use single character options
    usage: sudo -h | -K | -k | -L | -l | -V | -v
    usage: sudo [-bEHPS] [-p prompt] [-u username|#uid] [VAR=value]
    {-i | -s | <command>}
    usage: sudo -e [-S] [-p prompt] [-u username|#uid] file ...

  7. #7
    Join Date
    Jun 2008
    Location
    Ballard
    Beans
    2,409
    Distro
    Ubuntu 16.04 Xenial Xerus

    Re: sudo Could not connect to database

    It may not seem like much but those are responses from sudo itself. So we know that it's working on some level.

    Sometimes solving a problem is eliminating what is not at issue.
    "We're all in this together, kid." --H. Tuttle (a.k.a. H. Buttle)
    "Maybe it's a layer 8 problem." --thatguruguy
    A High-Tech Blech!

  8. #8
    Join Date
    Jun 2006
    Beans
    12

    Re: sudo Could not connect to database

    The sudo command appears to be working but I have no idea why it would be attempting to connect to a database unless it is calling the sudoers fill a database or some shadow file associated with it where it can't access those files.

  9. #9
    Join Date
    Jun 2008
    Location
    Ballard
    Beans
    2,409
    Distro
    Ubuntu 16.04 Xenial Xerus

    Re: sudo Could not connect to database

    So if you run sudo mycommand, mycommand runs through sudo as expected (only you also get that db error)?

    Annoying.
    "We're all in this together, kid." --H. Tuttle (a.k.a. H. Buttle)
    "Maybe it's a layer 8 problem." --thatguruguy
    A High-Tech Blech!

  10. #10
    Join Date
    Jun 2006
    Beans
    12

    Re: sudo Could not connect to database

    Yes, very

Page 1 of 2 12 LastLast

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
  •