Home > Database > Mysql Tutorial > body text

mysql通过socket登陆_MySQL

WBOY
Release: 2016-06-01 13:29:42
Original
1744 people have browsed it

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
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!