Issue with MariaDB "Got error: 2002: "Can't connect to local server through socket '/tmp/mysql.sock' (2)" when trying to connect" #3410
Replies: 4 comments 28 replies
-
What does |
Beta Was this translation helpful? Give feedback.
-
@carlocab Yeah I thought the . might be noteworthy. @gromgit
(I deleted the comment since the section was getting overflown). |
Beta Was this translation helpful? Give feedback.
-
What are the contents of |
Beta Was this translation helpful? Give feedback.
-
There are many cases for Mariadb or any other service to stop working properly on the computer. My case MacOs Sequoia
They can be the specific cause in this type of problems and for that a generic question in the communities to it does not always lead you to the answer/solution valid since the causes are several/different. It is solved by making a backup of the tc.log file (same path in #coment) delete the last one, this case a read and follow this thread and not have the file mysql.sock in place. And run. Note Dont forget restart service to include last configuration in your pc. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm unable to startup Mariadb, spent a while troubleshooting, and haven't found any solutions. At this point, I just want it working so that I can export my database and switch to running Mariadb on Lima, because Mariadb on Homebrew is simply that unreliable. I ran all the commands outputted by
brew doctor
, ranbrew reinstall mariadb
, and a few other things a while ago that I forgot, but I still get the same error. For each things I tried, I ranbrew services restart mariadb
. I'm on macOS 12.4.I'm going to be very patient with fixing if I have to do lots of back and forth with troubleshooting.
Edit: I'm using an M1 Mac.
Beta Was this translation helpful? Give feedback.
All reactions