Re: Extremely Off Topic -- but!

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Error is: ERROR 2002 Can't connect to local MYSQL through socket
'/tmp/mysql.sock' (2)
  From installation instructions  I did ln -s /tmp/mysql.sock
/private/var/mysql/mysql.sock which is no help.

Error 2002 is usually a permissions/ownership problem. Try:

cd /var/lib/mysql
touch mysql.sock
chown mysql:mysql mysql.sock
chmod 1777 mysql.sock

now make a sym link into /tmp


Thank you Geoffrey.
I find using Mac terminal is same as Linuxen boxes. Services can be treated the same way, sudo service xyz start or stop or restart, but deleting-- nope?
I tried the commands  you suggest but did not fix.
I found the culprit though. Seems as though: if mysql is running during a system update, it gets corrupted in the mysql/data file. So renamed /usr/local/mysql/data and reinstalled mysql, reinstalled data and all good ---so far.
Trap for the unwary when installing from the terminal.
Roger
--
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org




[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux