Score:0

Can't connect to local MySQL server through socker

uz flag

I am using Ubuntu 20.4. LTS version.

I sucessfully installed mysql server with

sudo apt install mysql-server

Than I checked

mysql --version

and it says: mysql Ver 8.0.31 for Linux on x86_64 (MySQL Community Server - GPL)

Than I wanted to install secure installation with sudo mysql_secure_installation and it says :

Error: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)

I amd completely lost and I have not idea what to do..

HiHat avatar
in flag
Please check service status via ``` systemctl status mysql.service ```
Marc Vanhoomissen avatar
in flag
Are you sure mysql runs? Could yo edit your question with the output of `systemctl status mysql`?
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.