Error Cannot Connect To Local Mysql Server Through Socket
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might cannot connect to local mysql server through socket /var/run/mysqld/mysqld.sock (2) have Meta Discuss the workings and policies of this site About error 2002 hy000 can't connect to local mysql server through socket Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads
Error 2002 Hy000 Can't Connect To Local Mysql Server Through Socket Tmp Mysql Sock 111
with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers,
Error 2002 (hy000): Can't Connect To Local Mysql Server Through Socket '/var/lib/mysql/mysql.sock' (2)
just like you, helping each other. Join them; it only takes a minute: Sign up Can't connect to local MySQL server through socket '/var/mysql/mysql.sock' (38) up vote 227 down vote favorite 68 I am having a big problem trying to connect to mysql. When I run: /usr/local/mysql/bin/mysql start I have the following error : Can't can't connect to local mysql server through socket mac connect to local MySQL server through socket '/var/mysql/mysql.sock' (38) I do have mysql.sock under the /var/mysql directory. In /etc/my.cnf I have: [client] port=3306 socket=/var/mysql/mysql.sock [mysqld] port=3306 socket=/var/mysql/mysql.sock key_buffer_size=16M max_allowed_packet=8M and in /etc/php.ini I have : ; Default socket name for local MySQL connects. If empty, uses the built-in ; MySQL defaults. mysql.default_socket = /var/mysql/mysql.sock I have restarted apache using sudo /opt/local/apache2/bin/apachectl restart But I still have the error. Otherwise, I don't know if that's relevant but when I do mysql_config --sockets I get --socket [/tmp/mysql.sock] mysql share|improve this question edited Jun 27 '12 at 15:18 Carrie Kendall 7,79543666 asked Mar 21 '11 at 10:33 Lambivist 1,1842810 30 Is MySQL running? –David Mar 21 '11 at 10:39 I'd supplement @David, you should look at the MySQL log to see if the server is actually running or if it has crashed/is not ready to accept connections. –Romain Mar 21 '11 at 11:02 No, mysql is not running, i have the "Can't connect....."er
Du kan ändra inställningen nedan. Learn more You're viewing YouTube in Swedish. You can change this preference
Can't Connect To Local Mysql Server Through Socket Osx
below. Stäng Ja, behåll den Ångra Stäng Det här videoklippet är can't connect to local mysql server through socket centos inte tillgängligt. VisningsköKöVisningsköKö Ta bort allaKoppla från Läser in ... Visningskö Kö __count__/__total__ Ta reda på can't connect to local mysql server through socket rails varförStäng Mysql error - Can't connect to local MySQL server through socket mysqld.sock Ambar Hasbiyatmoko PrenumereraPrenumerantSäg upp8383 Läser in ... Läser in ... Arbetar ... Lägg till http://stackoverflow.com/questions/5376427/cant-connect-to-local-mysql-server-through-socket-var-mysql-mysql-sock-38 i Vill du titta på det här igen senare? Logga in om du vill lägga till videoklippet i en spellista. Logga in Dela Mer Rapportera Vill du rapportera videoklippet? Logga in om du vill rapportera olämpligt innehåll. Logga in Statistik 5 970 visningar 4 Gillar du videoklippet? Logga in och gör din röst hörd. Logga https://www.youtube.com/watch?v=Ue6lPF10wC0 in 5 1 Gillar du inte videoklippet? Logga in och gör din röst hörd. Logga in 2 Läser in ... Läser in ... Läser in ... Rankning kan göras när videoklippet har hyrts. Funktionen är inte tillgänglig just nu. Försök igen senare. Publicerades den 29 jan. 2016i get error like this :Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)You can fixing by : sudo apt-get install mysql-server Kategori Människor och bloggar Licens Standardlicens för YouTube Visa mer Visa mindre Läser in ... Annons Automatisk uppspelning När automatisk uppspelning är aktiverad spelas ett föreslaget videoklipp upp automatiskt. Kommer härnäst MySQL - ERROR 2002 (HY000): Can't connect to local MySQL server through socket | BackTrack 5 - Längd: 2:42. Hanh Nghien 76 792 visningar 2:42 How to Fix "mysql service failed to start" in linux - Längd: 3:54. abhishek kanojia 2 355 visningar 3:54 How to install and run Apache web server in Ubuntu Linux - Längd: 9:53. danscourses 225 644 visningar 9:53 H
communities company blog Stack Exchange Inbox Reputation and Badges sign up log in tour help Tour Start here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more http://askubuntu.com/questions/34095/cant-connect-to-local-mysql-server-through-socket-error about hiring developers or posting ads with us Ask Ubuntu Questions Tags Users Badges Unanswered Ask Question _ Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute: Sign https://ubuntuforums.org/showthread.php?t=804021 up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the top “Can't connect to local MySQL server through” socket error [duplicate] up vote 5 down vote connect to favorite 1 This question already has an answer here: “Failed to spawn mysql main process: unable to execute: No such file or directory” 14 answers I install mysql and try start /usr/local/mysql/bin# ./mysql ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) /usr/local/mysql/bin# Any Idea? mysql share|improve this question edited Apr 8 '11 at 14:52 Jorge Castro 24.2k91386589 asked Apr 8 '11 at 11:14 Miki 36124 marked as duplicate by Luis Alvarado♦ Jul 10 '13 connect to local at 7:35 This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question. add a comment| 4 Answers 4 active oldest votes up vote 7 down vote mysql can be started from upstart. Basically you install mysql-server package. You can easily search for mysql-server package in synaptic and install it. You will be prompted for root password during installtion[i.e.mysql user root password] . After that in terminal just do sudo start mysql or sudo service mysql start Mysql usually is started on boot so you may have it running as well. Just ps aux | grep mysql to see if it is running. share|improve this answer answered Apr 8 '11 at 11:40 sagarchalise 13.8k75171 3 Job failed to start and no mysql process running –Pierre de LESPINAY Jul 2 '13 at 8:24 add a comment| up vote 5 down vote Ubuntu 11.10: sudo dpkg-reconfigure mysql-server-5.1 Ubuntu 12.04: sudo dpkg-reconfigure mysql-server-5.5 Follow instruction then reboot. This problem may happen when you upgrade from one ubuntu version to another and config gets messed up somehow. Usually the related to the startup process of mysql daemon mysqld) share|improve this answer answered Mar 14 '12 at 2:22 Hanynowsky 1,99842042 Worked for me but deleted my users –Pierre de LESPINAY Jul 2 '13 at 8:29 add a comment| up vote 2 dow
Get Kubuntu Get Xubuntu Get Lubuntu Get UbuntuStudio Get Mythbuntu Get Edubuntu Get Ubuntu-GNOME Get UbuntuKylin Ubuntu Code of Conduct Ubuntu Wiki Community Wiki Other Support Launchpad Answers Ubuntu IRC Support AskUbuntu Official Documentation User Documentation Social Media Facebook Twitter Useful Links Distrowatch Bugs: Ubuntu PPAs: Ubuntu Web Upd8: Ubuntu OMG! Ubuntu Ubuntu Insights Planet Ubuntu Activity Page Please read before SSO login Advanced Search Forum The Ubuntu Forum Community Ubuntu Specialised Support Development & Programming Programming Talk [SOLVED] MySQL ERROR 2002 (HY000): Can't connect to local... Having an Issue With Posting ? Do you want to help us debug the posting issues ? < is the place to report it, thanks ! Page 1 of 5 123 ... Last Jump to page: Results 1 to 10 of 50 Thread: MySQL ERROR 2002 (HY000): Can't connect to local... Thread Tools Show Printable Version Subscribe to this Thread… Display Linear Mode Switch to Hybrid Mode Switch to Threaded Mode May 23rd, 2008 #1 sevenearths View Profile View Forum Posts Private Message Visit Homepage Gee! These Aren't Roasted! Join Date Feb 2008 Location Swansea Beans 144 DistroUbuntu 9.04 Jaunty Jackalope MySQL ERROR 2002 (HY000): Can't connect to local... I upgraded to 8.04 recently and during the upgrade process Ubuntu asked me if I wanted to change one of my mysql configuration files and I must have clicked yes which is why I am in a bit of a pickle now. I currently get the following when I try to log in: Code: arthur@localhost:/etc/mysql$ mysql -u root -p Enter password: ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) And my /etc/mysql/my.cnf is as follows: Code: # # The MySQL database server configuration file. # # You can copy this to one of: # - "/etc/mysql/my.cnf" to set