Personal tools
You are here: Home Community Help Center FAQs How do I reset the underlying mySQL database?

How do I reset the underlying mySQL database?

Up to Table of Contents

Note: This operation deletes all data from the database.

Ther are two ways to reset the database.

  1. Directly in IntelliJ IDEA: Open a Grails command line using: CTRL + ALT + "G"
    Type "-Dgrails.env=mysql init-mysql" and press Enter
  2. Open a OS console:
    Switch to the project directory
    Execute "setenv.cmd" for Windows or "setenv.sh" for all other operating systems.
    Type "grails -Dgrails.env=mysql init-mysql" and press Enter
Document Actions