[Hidden-tech] Can't connect to MariaDB on Mac Mojave (10.14.4) Using Homebrew Installation

David Greenberg david.greenberg3 at gmail.com
Mon Jun 3 00:23:43 UTC 2019


Hi All,

This may be a bit much to try to troubleshoot via a mailing list, but after
struggling with this for a good 8 hours, I'm willing to give it a try. The
installation ('brew install mariadb') appeared to work fine. Starting the
server with the command 'brew services start mariadb' appears to start the
server. However, connecting to the server with the command, 'mysql -uroot'
gives me the following error:

'mysql: Can't read dir of '/usrlocal/etc/my.cnf.d' (Errcode: 2 "No such
file or directory")
Fatal error in defaults handling. Program aborted'

In the process of proofreading this message, I see now that there is in
fact, no directory called '/usrlocal'. The '/' between 'usr' and 'local'
seems to have gotten lost somehow.
There *is *a directory called /usr/local/etc/my.cnf.d however, and, if I am
reading this correctly, everyone can read it:  drwxr-xr-x   3 dg    admin
96 Jun  2 11:42 my.cnf.d

So I went ahead and made a 'usrlocal/etc/my.cnf.d' directory just for the
heck of it - (I know this is not a great idea) - and now I get this error
message:

'ERROR 2002 (HY000): Can't connect to local MySQL server through socket
'private/var/mysql/mysql.sock' (2)'

My understanding is that if the server is running, the socket is created
when a client tries to connect, so there is no mysql.sock file in the
directory.

Unfortunately, I know just enough about working in the terminal to be
dangerous (--; If anyone has any ideas, I'd appreciate it. Thanks.

David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.hidden-tech.net/pipermail/hidden-discuss/attachments/20190602/eb5473ca/attachment.html>


Google

More information about the Hidden-discuss mailing list