Page 2 of 2 FirstFirst 12
Results 11 to 19 of 19

Thread: MySQL - error #1045 cannot connect...

  1. #11
    Join Date
    Apr 2008
    Location
    Phoenix, AZ
    Beans
    1,393
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: MySQL - error #1045 cannot connect...

    Quote Originally Posted by GCoffee View Post
    All went well, then this occured: * Starting MySQL database server mysqld [fail]
    Check /var/log/mysql.log for the cause of the error. I'm not sure what you did previously, but you may be better off starting completing over, and making sure that all the config files are purged. It looks like you reinstalled after deleting the /var/lib/mysql folder manually. If the config files were still in place the install may have assumed it did not need to create that directory. I don't know what else that may have borked.

  2. #12
    Join Date
    Mar 2008
    Location
    UK
    Beans
    279
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: MySQL - error #1045 cannot connect...

    When you say starting over what do you mean?
    GCoffee.

  3. #13
    Join Date
    Apr 2008
    Location
    Phoenix, AZ
    Beans
    1,393
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: MySQL - error #1045 cannot connect...

    Quote Originally Posted by GCoffee View Post
    When you say starting over what do you mean?
    A fresh install, without leaving crud from an improper removal of mysql.


    Code:
    sudo apt-get --purge remove mysql-server
    sudo rm -rf /etc/mysql
    sudo rm -rf /var/lib/mysql

    Then reinstall it.
    Last edited by Monicker; May 2nd, 2008 at 09:47 PM.

  4. #14
    Join Date
    Mar 2008
    Location
    UK
    Beans
    279
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: MySQL - error #1045 cannot connect...

    I will do so tommorow, I have completely removed it,

    I will reinstall tommorow.

    I'm shattered..
    GCoffee.

  5. #15
    Join Date
    Dec 2006
    Location
    Oregon, US
    Beans
    1,541
    Distro
    Ubuntu Development Release

    Re: MySQL - error #1045 cannot connect...

    Try

    sudo apt-get remove --purge mysql*
    sudo apt-get install mysql-server

  6. #16
    Join Date
    Apr 2008
    Location
    Phoenix, AZ
    Beans
    1,393
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: MySQL - error #1045 cannot connect...

    Quote Originally Posted by jimv View Post
    Try

    sudo apt-get remove --purge mysql*
    sudo apt-get install mysql-server

    The down side to using msyql* is that it will also remove the mysql client and admin tools, which are separate from the mysql-server package.

  7. #17
    Join Date
    Mar 2008
    Location
    UK
    Beans
    279
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: MySQL - error #1045 cannot connect...

    bump
    GCoffee.

  8. #18
    Join Date
    May 2008
    Beans
    1

    Re: MySQL - error #1045 cannot connect...

    I'm having the exact same issue with mysql on 8.04. I don't think there's any sort of permission issue. Mysql starts just fine with: /etc/init.d/mysql start. The run level symlinks (/etc/rc.d) *seem* to be correct, however I'm no guru in this area.

    Anyone else know what's going on here?

  9. #19
    Join Date
    Apr 2008
    Location
    Phoenix, AZ
    Beans
    1,393
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: MySQL - error #1045 cannot connect...

    Quote Originally Posted by davehimself View Post
    I'm having the exact same issue with mysql on 8.04. I don't think there's any sort of permission issue. Mysql starts just fine with: /etc/init.d/mysql start. The run level symlinks (/etc/rc.d) *seem* to be correct, however I'm no guru in this area.

    Anyone else know what's going on here?
    Did you follow the troubleshooting steps mentioned previously in this thread???

    If so, what were the results?

Page 2 of 2 FirstFirst 12

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
  •