Home  >  Article  >  Database  >  mysql通过socket登陆_MySQL

mysql通过socket登陆_MySQL

WBOY
WBOYOriginal
2016-06-01 13:29:421737browse

bitsCN.com


mysql通过socket登陆

 

mysql -S /var/run/mysqld/mysqld.sock 

 

这条命令就可以登陆mysql.不需要用户名密码 

 

也不会受到其他安全策略的影响.利器啊 

 

在配置文件中可以看到具体的socket路径 

 

vi  /etc/mysql/my.cnf 

 

socket          = /var/run/mysqld/mysqld.sock 

bitsCN.com
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