[Discuss] mysql/mariadb

Rich Braun richb at pioneer.ci.net
Mon Jun 26 13:29:52 EDT 2017


There is a difference between "localhost" and "socket" access. Probably if
you're running a new installation, you want to access root by the mysql.sock
file on the server.

mysql -u root -p -S /tmp/mysql.sock

That file is placed in a location that depends on your particular distro. Look
for it under /var/run, /var/mysql, or just do 'find / -name mysql.sock' if you
have no idea.

-rich





More information about the Discuss mailing list