We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 30733
    • 4 Posts
    i have been trying to connect modx to mysql
    when i test the connection,
    i get a blank page.
    mysql is working properly, what can be wrong?
      • 28042 ☆ A M B ☆
      • 24,524 Posts
      Can you explain in a bit more detail what you are trying to do? MODx connects to its database automatically. You can use $modx->db->apifunction() syntax to access the database.

      http://wiki.modxcms.com/index.php/API:DBAPI
        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
        • 30733
        • 4 Posts
        After installing apache, mysql, i put modx in my website root directory. Then i tried to install it.
        On http://localhost:8080/install/index.php?action=connection
        i enter my database host , database login and password, then i test connection.
        i then get a green and black blank screen of modx. That is where it ends, and i have uninstalled, download another
        modx again and tried but i still get the same error.
        i am using a windows vista
          • 25663 MODX Staff
          • 12,272 Posts
          Setting up a WAMP stack on a localhost install is not trivial, and not something I’d recommend unless you’re a server admin. I’d suggest starting with XAMPP and see if that gets you a bit farther along.
            Ryan Thrash, MODX Co-Founder
            Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me