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.
- Directly in IntelliJ IDEA: Open a Grails command line using: CTRL + ALT + "G"
Type "-Dgrails.env=mysql init-mysql" and press Enter - 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

