We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 22940
    • 16 Posts
    Hi everybody,

    I’ve just downloaded ModX and I’m trying to run the installation, but the install simply stalls.

    I get to the point where it says ’Creating database ’modx’:’ and then stops.

    No error messages or anything.

    Any ideas?

    Cheers,
    PdV

    Web Server:
    ----------------
    PHP version 5.0.5
    MySQL version 5.0.15
    Operating System and version WindowsXP Pro

    Browser/Client:
    -----------------
    Browser name and version Internet Explorer 6
    Operating System and version WindowsXP Pro

    The web server is installed on a memory key and is up and running with a couple of other php-powered sites working OK off of a database.

    Anything else you’d like to know, just let me know.
      • 22940
      • 16 Posts
      Fixed it! smiley

      I think there’s a bug or something in the script, because if the database doesn’t exist it stalls on ’Creating database’. undecided

      I went into phpMyAdmin and created an empty modx database and re-ran the install script and it worked perfectly.

      Over to you guys grin

      Cheers,
      PdV
        • 28042 ☆ A M B ☆
        • 24,524 Posts
        Are you sure the database user you specified has "create database" permissions on your database server?
          Studying MODX in the desert - http://sottwell.com
          Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
          Join the Slack Community - http://modx.org
          • 22940
          • 16 Posts
          Hiya!

          Yes it does. I only have two users registered in MySQL: ’root’ and ’paul’ (the default user for phpMyAdmin), both with all privelages.

          I tried using both users for the installation, but neither worked until I created an empty DB using ’paul’.
            • 25663 MODX Staff
            • 12,272 Posts
            Manually create the database prior to running the installer and let us know if that helps.
              Ryan Thrash, MODX Co-Founder
              Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
              • 28042 ☆ A M B ☆
              • 24,524 Posts
              He did. It does.
                Studying MODX in the desert - http://sottwell.com
                Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
                Join the Slack Community - http://modx.org
                • 25663 MODX Staff
                • 12,272 Posts
                So resolved now?
                  Ryan Thrash, MODX Co-Founder
                  Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
                  • 22303 MODX Staff
                  • 10,725 Posts
                  I believe this is actually a bug and should be logged in the tracker. If the database does not exist, and the user has priveleges, then something else in the install script is preventing the creation of the database container, and I experience this consistently on my local XAMPP installation. It may be another issue with the backticks syntax and the way the install script is passing it to the create table command. I’ll take a look if someone will open the bug.
                    • 33337
                    • 3,975 Posts
                    Confirmed and logged under #139, http://modxcms.com/bugs/task/139

                    Thank you pdv for reporting. If you come across another thing like this, just dont hesitate to post here.

                    best regards,

                    zi
                      Zaigham R - MODX Professional | Skype | Email | Twitter

                      Digging the interwebs for #MODX gems and bringing it to you. modx.link
                      • 32963
                      • 1,732 Posts
                      I’ve seen this before and from the test I think it’s a PHP 5 bug (maybe 5.0.5). Once the create database function is called the system hangs up. If you even did a test for the create db function it still hangs up.
                        xWisdom
                        www.xwisdomhtml.com
                        The fear of the Lord is the beginning of wisdom:
                        MODx Co-Founder - Create and do more with less.