Moving the dataabase

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dafnie
    Senior Member
    • Dec 2015
    • 140

    Moving the dataabase

    Hi

    I have imported a database with testdata in my testinstallation of Espo and changed the SQL setting in config.php, but the login system response dialog says that the user password is now wrong. Is there any way to correct this?
    I found the incrypted user-password in the database but I can't figure how to decrypt them?
  • yuri
    Member
    • Mar 2014
    • 8695

    #2
    Hi,

    You should carry over passwordSalt and cryptKey from config.php
    If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

    Comment

    • dafnie
      Senior Member
      • Dec 2015
      • 140

      #3
      Great. it worked perfectly.
      I just carried over passwordSalt I couldn't find cryptKey. Anyway it worked..

      Thanks..

      Comment

      • ziondevil
        Member
        • Jun 2016
        • 30

        #4
        can you explain how to carry over?

        Comment

        • tarasm
          Super Moderator
          • Mar 2014
          • 573

          #5
          All passwords are encrypted with passwordSalt from data/config.php
          Job Offers and Requests

          Comment

          • tarasm
            Super Moderator
            • Mar 2014
            • 573

            #6
            ziondevil, did you move files and database dump?

            Originally posted by ziondevil
            can you explain how to carry over?
            Job Offers and Requests

            Comment

            • ziondevil
              Member
              • Jun 2016
              • 30

              #7
              yes move all files and dump the entire database

              Comment

              • tarasm
                Super Moderator
                • Mar 2014
                • 573

                #8
                It should work fine. Please check if "siteUrl" from data/config.php is correct.
                Job Offers and Requests

                Comment

                • ziondevil
                  Member
                  • Jun 2016
                  • 30

                  #9
                  also correct

                  Comment

                  • tarasm
                    Super Moderator
                    • Mar 2014
                    • 573

                    #10
                    Something wrong with your files or database dump. All you need for moving:
                    1. Archive EspoCRM directory,
                    2. Dump MySQL database.
                    3. Copy them on a new hosting/server,
                    4. Unarchive files,
                    5. Import the database dump
                    6. Correct siteUrl" in the data/config.php if a domain name was changed.

                    Note: if you see an install process after moving to a new server, something wrong with your file archive (check if "data" directory exists).

                    Did you do as described above?
                    Last edited by tarasm; 07-12-2016, 11:46 AM.
                    Job Offers and Requests

                    Comment

                    • ziondevil
                      Member
                      • Jun 2016
                      • 30

                      #11
                      all the above is correct
                      :/


                      I have all files with the correct permissions, espo can read the database...


                      also i'm trying to reset the password

                      [2016-07-12 11:51:09] Espo.ERROR: Display Error: Connection refused, Code: 500 URL: /api/v1/User/passwordChangeRequest [] []
                      Last edited by ziondevil; 07-12-2016, 11:51 AM.

                      Comment

                      • tarasm
                        Super Moderator
                        • Mar 2014
                        • 573

                        #12
                        Are you sure that MySQL user is correct and has all privileges?
                        Job Offers and Requests

                        Comment

                        • ziondevil
                          Member
                          • Jun 2016
                          • 30

                          #13
                          I have repetead all the steps and mysql user with all privileges.

                          Also if i try to reset the password 500 conecction refused.

                          Worng username and password

                          Comment


                          • dafnie
                            dafnie commented
                            Editing a comment
                            Have you checked the databasesetting in config file
                        • iscon
                          Active Community Member
                          • May 2014
                          • 187

                          #14
                          I can confirm that it works correctly with 415, did it a couple of times within one server and between different servers.
                          Check data/logs for any clues, then check the apache error log. Most likely you'll find a verbose explanation there. My guess is that your permissions on the espo directory are wrong - chown recursively to the Apache user (if on your own machine) or to your ftp user on webspache. Set permissions to 755 for all files and dirs.
                          ------------------
                          Robert Laussegger
                          iscon group
                          http://www.iscongroup.net
                          mailto://info@iscongroup.net

                          Comment

                          Working...