Could not connect to host 'localhost'. MySQL Error Nr. 1045

Discussion in 'Installation/Configuration' started by SiMiE, Feb 16, 2007.

  1. SiMiE

    SiMiE New Member

    Hi Guys,

    ***NEWBIE WARNING*** :)

    I am using the GUI interface from MySQL to administrate my databases (aswell as phpMyAdmin) and users. On logging on today as root I got the following message:

    I haven't change the root password since I installed MySQL

    The strange thing is that I can still login using my other user accounts I have created and my phpBB forum and ISPconfig webs connects to the database fine, as they are setup with different users.

    Any ideas what is causing the problem?? :confused:


    P.S Setup my server according to

    Sorry if this isn't the right place to discuss this type of topic
    Last edited: Feb 16, 2007
  2. martinfst

    martinfst ISPConfig Developer ISPConfig Developer

    Have you ever logged in as root before? Are you sure you didn't make a typo (capslock)?
  3. SiMiE

    SiMiE New Member

    Yeh I usually login as root and Caps lock wasn't on
  4. martinfst

    martinfst ISPConfig Developer ISPConfig Developer

    If you are sure you can login to the database with other userid's, then someone must have changed the root password.
    See here for a possible recovery procedure.
  5. SiMiE

    SiMiE New Member

    Don't worry about it... Seems to of corrected itself with a restart, strangely...
    For some reason when logging into other user accounts, before restart, i was getting messages saying lose of connection etc... when browsing the menu items.... :confused:

    Thanks for your help...


Share This Page