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

Thread: Database backup

  1. #1
    ramji123 is offline Sugar Community Member
    Join Date
    Nov 2006
    Location
    Bangalore, India
    Posts
    266

    Default Database backup

    Hi,

    » Operating system type and version: Windows xp
    » Sugar Suite version : 4.5.1 pro
    » Webserver type and version :Apache 1.3.31
    » PHP version -- 4.3.11
    » MySQL server version 5.0.24

    I taken sugarcrm files through Admin backup link

    but I need to take database backup.

    how can i take a database backup.

    where i will get this database vendor's documentation.

    To backup your database information, refer to your database vendor's documentation.

    Please reply ASAP

    Thanks

  2. #2
    paikmoses's Avatar
    paikmoses is offline Sugar Community Member
    Join Date
    Jan 2006
    Posts
    541

    Default Re: Database backup

    Hi ramji123,

    You can take the back up through the phpMyAdmin.

    To take back-up manully check this out: http://sugarcrm.openapp.org/?p=141

    HTH.

    Regards,

  3. #3
    TheDonMiguel is offline Sugar Community Member
    Join Date
    Dec 2006
    Posts
    59

    Default Re: Database backup

    Hi Moses

    I tried "your script" once and got this error:

    mysqldump: Got error: 1045: Access denied for user 'administrator'@'localhost' (using password: YES) when trying to connect

    Do you know how to fix this?

    Regards,
    Miguel

  4. #4
    ramji123 is offline Sugar Community Member
    Join Date
    Nov 2006
    Location
    Bangalore, India
    Posts
    266

    Default Re: Database backup

    Hi paikmoses,

    For your suggestion i given this command in linux open terminal

    mysqldump -u root -p welcome sugarcrm dump.sql

    but i am getting command not found but it's created the dump.sql file 0 bytes.
    i am using centos.
    any idea

    Please reply me ASAP.

    Thanks

  5. #5
    paikmoses's Avatar
    paikmoses is offline Sugar Community Member
    Join Date
    Jan 2006
    Posts
    541

    Default Re: Database backup

    Hi ramji,

    Run this command:

    Code:
    $ mysqldump -u User -p DBName > DBDump.sql
    This will give you the back-up of the whole structure and data.

    Regards,

  6. #6
    paikmoses's Avatar
    paikmoses is offline Sugar Community Member
    Join Date
    Jan 2006
    Posts
    541

    Default Re: Database backup

    Miguel,

    Could you give me the script that you run?

  7. #7
    TheDonMiguel is offline Sugar Community Member
    Join Date
    Dec 2006
    Posts
    59

    Default Re: Database backup

    Hi Moses,

    I runt this batch file on my windows 2003 server:

    "D:\SugarCRM\mysql\bin\mysqldump.exe" -u "MyAdmin" -p"MyPassword" -t sugarcrm c:\backup.sql

    Thanks,
    Miguel

  8. #8
    paikmoses's Avatar
    paikmoses is offline Sugar Community Member
    Join Date
    Jan 2006
    Posts
    541

    Default Re: Database backup

    Miguel,

    Get inside the mysql through command prompt, then run the command:

    Code:
    $ mysqldump -u User -p DBName > DBDump.sql
    This will give you the dump of structure and data.

    Try this and let me know.

    Regards,

  9. #9
    ramji123 is offline Sugar Community Member
    Join Date
    Nov 2006
    Location
    Bangalore, India
    Posts
    266

    Default Re: Database backup

    Hi paikmoses,

    Thanks for your reply.

    but i am still getting the same error

    bash:mysqldump:command not found

    how to get the mysql command line in command line prompt

    i am entered this command, under mysql bin folder. but i am getting following erro

    [root @ sugarserver bin]# mysqldump -u root -p sugarcrm > sugarcrm1702007.sql
    bash:mysqldump: command not found

    Any idea?

    Thanks

  10. #10
    paikmoses's Avatar
    paikmoses is offline Sugar Community Member
    Join Date
    Jan 2006
    Posts
    541

    Default Re: Database backup

    ramji123,

    Follow these steps to take the dump:

    1. Get inside the /mysql/bin
    2. Now type this command:
    Code:
    mysqldump -u root -p sugarcrm>backup.sql
    Here sugarcrm is the name of the database you want to take the back-up of and backup.sql is the name of the backup file that is created.

    After this it will ask you the password for mysql user root. Once this command is executed, it will create the backup.sql file in the bin directory.

    Try this out.

    Regards,

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Howto? Backup things not in database
    By SteveH in forum Help
    Replies: 9
    Last Post: 2007-05-12, 01:41 AM
  2. step 3 installation problem
    By voitek in forum Installation and Upgrade Help
    Replies: 10
    Last Post: 2007-02-14, 04:35 PM
  3. Repair Database does not
    By mmakowski in forum Help
    Replies: 1
    Last Post: 2007-01-03, 04:58 AM
  4. Replies: 1
    Last Post: 2006-08-01, 10:01 AM
  5. Replies: 0
    Last Post: 2006-07-17, 04:11 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
  •