Skip to content

Latest commit

 

History

History
15 lines (13 loc) · 338 Bytes

create-user-unix-socket.md

File metadata and controls

15 lines (13 loc) · 338 Bytes

Create user who can authenticate through unix-socket (passwordless) (Centos)

mysql>create user training@localhost identified via unix_socket
useradd training
passwd training

# testing
su - training
# mysql 
# shouuld not work without password 
# Be sure, that use has access to socket 
cd /var/lib/mysql 
ls -la mysql.socket