How to remove full database in one command
#1

Hey guys, so probably I'd like to have a command a simple one that will delete all the database that has in the server, something like /terminate or thing like that, and it will simply delete the database itself from the MySQL panel. Is it even possible?
Reply
#2

Код:
DROP DATABASE `database_name`;
By default the "DROP DATABASE" statement is disabled. You'll have to set "AllowUserDropDatabase" to true in "config.inc.php" file. I haven't tried running such an SQL command through server. I doubt your connection to MySQL server will be lost in case if the database which was referred in "mysql_connect" got removed.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)