Home  >  Article  >  Database  >  How to check user permissions in mysql

How to check user permissions in mysql

王林
王林Original
2020-10-13 16:58:4822138browse

Mysql method to check user permissions: You can check user permissions by executing the [show grants for username] statement, such as [show grants for root;].

How to check user permissions in mysql

View the permissions of a MySQL user:

(Recommended tutorial: mysql video tutorial)

show grants for 用户名
MariaDB [neutron]> show grants for root;

As shown:

How to check user permissions in mysql

Related recommendations: mysql tutorial

The above is the detailed content of How to check user permissions in mysql. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn