Question

I need to delete my schema when i created during table creation but i no need to disturb tables inside that schema so please suggest me to delete my schema without deleting tables present inside that schema.

Was it helpful?

Solution

In Mysql a schema is the same as a database. Removing the schema removes the database, and also your objects (ie tables)

OTHER TIPS

you can not delete schema without deleting underlying tables, because schema is logical container which holds database objects like table, procedure etc..

you want to do like: breaking the glass(filled with water) without flowing water, which is impossible,

best practice for your problem would be RENAME your schema. so it feels like schema is no longer available, but you can access it via different name.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top