Results 1 to 6 of 6

Thread: Lost root password and. . .

  1. #1
    historicslunk is offline Sugar Community Member
    Join Date
    Jul 2006
    Posts
    52

    Unhappy Lost root password and. . .

    Help

    I am very embarrassed, I have lost my root password to login to my rpath sugarcrm appliance. Also I managed to delete root@localhost from my mysql permissions table. I have trawled through thousands of posts has anyone any bright ideas.

    I need to take a backup of sugarcrm and I can't

  2. #2
    kpit's Avatar
    kpit is offline A Sugar Hero | Help Forum Moderator
    Join Date
    Dec 2005
    Location
    Memphis, TN
    Posts
    996

    Default Re: Lost root password and. . .

    Well the quick and safe way is to use the sugarcrm username and password that will allow you to backup the sugarcrm database.
    Cheers,

    Max W. Blackmer, Jr.

    Blog
    Phone: +1 (901) 672-2694



  3. #3
    historicslunk is offline Sugar Community Member
    Join Date
    Jul 2006
    Posts
    52

    Unhappy Re: Lost root password and. . .

    Thanks for the quick reply but I am not sure I get the idea?

    I have performed a sugar backup (of the files) but how do I backup the db

    S

  4. #4
    kpit's Avatar
    kpit is offline A Sugar Hero | Help Forum Moderator
    Join Date
    Dec 2005
    Location
    Memphis, TN
    Posts
    996

    Default Re: Lost root password and. . .

    to get the password sugarCRM uses you can look for config.php in the sugar directory. look in the file you will find the database username and password that sugarcrm uses to access your database. then use that username and password to backup the sugarcrm database.
    Cheers,

    Max W. Blackmer, Jr.

    Blog
    Phone: +1 (901) 672-2694



  5. #5
    historicslunk is offline Sugar Community Member
    Join Date
    Jul 2006
    Posts
    52

    Talking Re: Lost root password and. . .



    Just for anyone else who gets the same problem . . . . .

    Ok first reboot (very important - do not allow the server to autostart)

    1) hit the e - for edit
    2) Highlight line 2 and hit e - for edit again
    3) at the end of the line add the word " single" without the quotes but make sure there is a space between quiete and your addition
    4) Hit enter
    5) Hit b - boot

    when the system lands you at the prompt - not much is loaded and the whole "system" is ready to roll!! now find the mysql db files. they end in .MYD .MYI .frm

    1) type su
    2) type updatedb
    3) locate sugarcrm

    you are looking for a path similar to below . . . .

    4) You can copy the files from /srv/mysql/sugarcrm - with cp -fr <source> <destination>
    5) repeat above looking for the php files

    We added a second HDD to the server and mounted it to /mnt/backup, copied the files to it - disconnected the main HDD added a new one rebuilt the server from cd and then reversed the above process - it worked like a dream.

    6) once the data is back - run all the repairs and you are working

    Sharif
    The Computer Help Co
    http://www.gimmehelp.com

  6. #6
    mycrmspacegunnar is offline Sugar Community Member
    Join Date
    Sep 2006
    Posts
    105

    Default Re: Lost root password and. . .

    Hi,

    to backup your sugar mysql database use the following line

    mysqldump -udbusername -p dbname > backup.sql

    Replace "dbusername" with the database username
    And replace "dbname" with the databasename
    You will be prompted for your database password.

    You can find your dbusername, and dbname in your sugar config file.
    The config file is called "config.php" the setting are aorund line 30 and will look somewhat liek this:

    'db_host_instance' => '',
    'db_user_name' => 'dbuser',
    'db_password' => 'secretpass',
    'db_name' => 'sugarcrm',
    'db_type' => 'mysql'


    Cheers
    Gunnar
    Gunnar von Boehn
    myCRMspace

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Password lost.
    By PAULV in forum Help
    Replies: 6
    Last Post: 2007-01-03, 02:27 AM
  2. Replies: 1
    Last Post: 2006-08-12, 03:24 AM
  3. root Linux password for 4.2 iso installation
    By mrdebolt in forum General Discussion
    Replies: 0
    Last Post: 2006-05-05, 03:57 AM
  4. "Include" directory invisible ?
    By ymartin in forum General Discussion
    Replies: 11
    Last Post: 2006-02-13, 05:44 PM
  5. Replies: 0
    Last Post: 2005-11-04, 03:19 PM

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
  •