[英]How to determine whether a user can login or not in MySQL
How to find that a user can login or not in MySQL without actually logging in.如何在不实际登录的情况下查找用户是否可以登录 MySQL。
for example:例如:
mysql -u root
I do not need to login.我不需要登录。 just want to find that whether i can login or not?只是想知道我是否可以登录?
any command options ?任何命令选项?
You can use one of the mysqladmin
options such as ping
or status
.您可以使用mysqladmin
选项之一,例如ping
或status
。
For example:例如:
mysqladmin -u root ping
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.