2
Good afternoon friends, after having correctly installed Mysql 5.7 on my Ubuntu 16.04, while trying to connect to the bank, I get an error message saying that I could not connect through the socket.
Executed: mysql -u root -p
And right away I get the bug:
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
In the directory /var/run/mysqld/mysqld.sock
the file with extension does not exist .sock
I have uninstalled and installed, tried with version 5.6 and nothing has worked. Any suggestions? Thank you!
In my.cnf you can edit the . Sock option, unless mistaken. After that use the
chmod -R 755
in the directory, example:chmod -R 755 /var/run/mysqld/mysqld.sock
.– Inkeliz