We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 26786
    • 11 Posts
    Web Server:

    * PHP 1.3
    * Apache 1.3.41
    * Unix

    Database:

    * MySQL version 4.1.22
    * No tables made yet

    MODx:

    * 0.9.6.3

    Browser/Client:

    * Firefox 3.0.7
    * WindowsXP Professional

    I’m receiving the following error when I try to install MODx on my web host:

    Checking database: failed - could not create database


    I have tried making the database, with the name "modx," and tried having the MODx installer create one for me. Both return this error. Here is a screenshot:


    http://tinyurl.com/cznh5f
      • 26931
      • 2,314 Posts
      Hi,

      hmmm...you probably need to create a database via phpmyadmin with the name "modx" (or whatever) yourself first, the installation will then create all your tables (with the prefix "modx_" ).

      hope that helps, j
        • 7231
        • 4,205 Posts
        This normally indicates that the database user does not have permission to create a database. In this case you need to do as sharkbait suggested, create the database before running the installer which will then create all the tables.
          [font=Verdana]Shane Sponagle | [wiki] Snippet Call Anatomy | MODx Developer Blog | [nettuts] Working With a Content Management Framework: MODx

          Something is happening here, but you don't know what it is.
          Do you, Mr. Jones? - [bob dylan]
          • 26786
          • 11 Posts
          I finally figured it out. Thanks to your suggestions I got some ideas and did some digging around...

          We were using a MySQL databases page to create the database ( doh rolleyes ), which by default adds a prefix to whatever name you give the db... from there we simply set the install option to "SET_NAME" instead and it worked just fine!

          Very fast install btw. I am excited to get started with my first MODx site!

          cheers,
          seth