-3
How to perform a complete deletion of a database structure mysql
?
I need to delete all the entidades
, tabelas
, procedures
, I want to keep only the name of the database, without any table or data or anything else linked to that database.
There is a command that I do such a procedure?
DROP database <nome>
?– rray
Will I keep the name of the bank? It will remain registered?
– durtto
Everything will be removed! what is the purpose of keeping the name?
– rray
I need to keep the name of the bank because I am doing experiments with an application called GLPI that is having error so my logistics to find the solution to a problem is to install the various versions of the system until finding a solution.
– durtto
@rray knows some command that does this?
– durtto
@Sergio, can you help me?
– durtto
Using only Mysql does not make something as automated as this, using some script can facilitate this task. I don’t know any commands that perform DROP on all objects in the database without removing it, you can see this by the answers, each one tries to solve the limitation in a way.
– rray
I understand. I’ll find a solution. Thank you anyway.
– durtto
Perhaps the most automated (I imagine) way is to create a project that manages
drop
and perform one by one.– rray