Answer the question
In order to leave comments, you need to log in
MariaDB how to disconnect from database without leaving mysql?
Hello, I can’t understand how in the terminal when connecting to a database using the use "database" command; Then disconnect from the database, but not exit mysql?
Tried exit and quit but those commands exit mysql. I tried to google, but everywhere only how to connect to the database or delete it.
Answer the question
In order to leave comments, you need to log in
use does not connect to anything, but only sets the schema name to be used in the query if it is not explicitly specified.
but if you really want to, then you can google
create database 'non_existing_schema_name';
use non_existing_schema_name;
drop database 'non_existing_schema_name';
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question