The command to delete a user in MySQL is DROP USER 'username', where 'username' is the username to be deleted. User permissions should be revoked before use. The deletion operation is permanent and cannot be undone.
Command to delete a user in MySQL
To delete a user in the MySQL database, you can use the following command:
<code class="sql">DROP USER 'username'</code>
Among them, 'username'
is the username to be deleted.
Command structure
Usage Example
To delete a user named 'admin'
, you can use the following command:
<code class="sql">DROP USER 'admin';</code>
IMPORTANT
The above is the detailed content of What is the command to delete a user in mysql. For more information, please follow other related articles on the PHP Chinese website!