mariadb troubles in macos - RLidea/dev.docs GitHub Wiki
MacOS μμ λ§λ mariadb νΈλ¬λΈλ€
κ°μκΈ° μ μμ΄ μ λ¨
$ mariadb -u root -p
Enter password:
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
$ brew services list
Name Status User Plist
mariadb started me /Users/me/Library/LaunchAgents/homebrew.mxcl.mariadb.plist
$ sudo lsof -i :"3306"
(nothing)
$ less /usr/local/etc/my.cnf
[mysqld]
port=3306
μλ λ΄μ©λ€μ μ§μ°κ³ μ¬μ€μΉνλ λ¬Έμ κ° ν΄κ²°λκΈ΄ νλ€.
$ brew services stop mariadb
$ brew uninstall mariadb
$ rm -rf /usr/local/var/mysql
$ rm /usr/local/etc/my.cnf
$ brew install mariadb
μ΄λ, /usr/local/var/mysql
μλ λ°μ΄ν° νμΌλ€μ΄ λ€μ΄μμΌλ κΌ λ°±μ
μ ν΄λμ.