I then tried to delete the world's map.sqlite file, but this crashes the server. However, on reboot, the world is indeed reset in a flash. This is what I want, but without the crash obviously. Is there any way to tell Minetest to regenerate the map.sqlite file without restarting the server?
Here is the error message produced when I delete the map.sqlite file...
Code: Select all
2019-03-03 20:43:31: ERROR[Emerge-0]: An unhandled exception occurred: Failed to prepare query 'SELECT `data` FROM `blocks` WHERE `pos` = ? LIMIT 1': no such table: blocks
2019-03-03 20:43:31: ERROR[Emerge-0]: In thread 7f206bfff700:
2019-03-03 20:43:31: ERROR[Emerge-0]: /home/realcourse/minetest5/newestMT5/compiled/minetest/src/emerge.cpp:2aa: virtual void* EmergeThread::run(): A fatal error occurred: Failed to prepare query 'SELECT `data` FROM `blocks` WHERE `pos` = ? LIMIT 1': no such table: blocks
Something like if !table then create_sqlfile() is what I need I suppose.
Or is there a better or existing solution?