Commit 4fe2478b authored by Vladislav Vaintroub's avatar Vladislav Vaintroub

Improve cleanup in create_initial_db.cmake, fix the 'table already exists'...

Improve cleanup in create_initial_db.cmake,  fix the 'table already exists' error if build is run twice.
parent cdb54f48
...@@ -42,8 +42,9 @@ ENDFOREACH() ...@@ -42,8 +42,9 @@ ENDFOREACH()
FILE(READ ${CMAKE_SOURCE_DIR}/scripts/fill_help_tables.sql CONTENTS) FILE(READ ${CMAKE_SOURCE_DIR}/scripts/fill_help_tables.sql CONTENTS)
FILE(APPEND bootstrap.sql "${CONTENTS}") FILE(APPEND bootstrap.sql "${CONTENTS}")
FILE(REMOVE_RECURSE mysql performance_schema)
FILE(REMOVE ibdata1 ib_logfile0 ib_logfile1)
FILE(REMOVE_RECURSE mysql)
MAKE_DIRECTORY(mysql) MAKE_DIRECTORY(mysql)
IF(WIN32) IF(WIN32)
SET(CONSOLE --console) SET(CONSOLE --console)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment