MySQL can't connect through socket error

I have been mucking around with MySQL and have broken something.
Running 10.4.3 server, I get a "Can't connect to local MySQL server through socket '/var/mysql/mysql.sock' (2)" error
Was working fine before I decided to mess with things - I think I altered the hostname from localhost to 192.168.x.x etc.
Now I cannot connect, and MySQL manager won't start it. I would like to make it work again rather than have to install a different version.
When MySQL manager installs the requisite files for the first time, where does it store these, and how can I do this again?
Thanks
Hamish

There's an issue with authentication between PHP 5 and MySQL 4.1
This thread should contain a resolution for you.
http://discussions.apple.com/thread.jspa?messageID=665175&#665175
FYI- A search here for "MySQL PHP socket" reveals the above thread and other threads with the same issue.
Jeff

Similar Messages

  • MySQL - Another 'Can't connect through mysql.sock' question...

    Hey, folks.
    So I'm trying to install MySQL to run with PHP on my PowerBook G4 (running 10.4.7, non-server edition) to use it to test out a shopping cart program for a website I'm building.
    I had it working as of Monday, when I installed it, got all the permissions set, built the necessary tables, and changed the root password (and logged in just to make sure it worked before retiring for the night)...but today I realized that I had somehow installed the wrong version of MySQL (I connected to it earlier today and discovered it was 4.026 - and I needed to be running MySQL 4.1.20, in order to be running the same version as my webhost).
    So I decided to upgrade. I downloaded and installed the 4.1.20 file, followed the directions about creating the system tables, changed permissions via sudo chown -R mysql:mysql data...and now, when I go to change the root user password (just to make sure it's still the same as it was), I get the following error:
    error: 'Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)'
    Check that mysqld is running and that the socket: '/tmp/mysql.sock' exists!
    This error also occurs when I try to simply startup MySQL. I also now find I can't connect via MySQL Admin, either - it gives me the same error. Pinging the host works, however.
    Sooo...anyone have any ideas? I've read up on the forums re: Apple changing the socket to /var/mysql/mysql.sock as of 10.4.4, but it seems that would have affected me earlier this week when I was running the previous version of MySQL, too (I certainly haven't upgraded the OS since then).
    Regardless, I can't connect through MySQL Admin using the /var/mysql/mysql.sock socket, anyway...nor the standard /tmp/mysql.sock.
    Any thoughts on what might be causing this? I should confess, I'm well-versed in DOS (ugh), but UNIX is not really my strong suit, so I'm still figuring out how to get around in the Terminal...
    Thanks so much for any input you can give me!
    (Oh, one more thing, since it'll probably come up - I'm not currently connecting via PHP, but I will be eventually. Right now, I just want to be able to change my root password, and login from the Terminal)!
    Thanks again!\
    PowerBook G4 1GHz 15   Mac OS X (10.4.7)  

    Alright, folks.
    Somehow my computer has fixed itself. After wiping the mysql directories entirely, then reinstalling, I was still getting the same error.
    After going back to the original "MySQL-On-Mac" site at Marc Liyanage's entropy.ch site & following some of the instructions there, somehow my problem seems to have fixed itself.
    I wish I could tell you what the solution was (to benefit anyone else having this problem), but since I was simply following the unix commands listed there (without much explanation, at times, as to what they were doing), I just know that somehow it worked.
    (But if I had to make a guess, I think it had to do with starting the server via sudo ./bin/mysqld_safe &)...

  • "Can't connect to server" Error

    I'm using a 24" iMac running 10.6.7 and I keep getting a "can't connect to server" error with Safari for certain websites. While I could have posted this topic under the Safari section, the problem is not Safari. I tested other web browsers on my iMac (Firefox and IE) and still got an error. I did all the trouble shooting like: empty cache, reset safari, cookies, proxies, /index.html. Now, I was thinking it could be my router, but I am able to access those websites through my iPhone and my iPhone is connected to my wireless router. So I figured the problem is with my iMac settings.
    Websites trying to view:
    http://www.rangerboard.com/
    http://www.serebiiforums.com/
    Any help?

    Hi Opti1CS,
    Welcome to the forums!
    Have you tried a clear the DNS cache?
    I found that I switch networks allot; witch leans my DNS cache rather jumbled up. After having to reset the DNS cache for the 10th time in a week. I ended up stumbling over DNS flusher. I find it easer then memorizing a terminal command.

  • Can't connect RFCOMM socket: Connection refused

    I am trying to use my mobile as bluetooth modem but I am stuck at the initial step.
    shadyabhi@archlinux-N210 ~ $ rfcomm connect 0
    Can't connect RFCOMM socket: Connection refused
    My rfcomm.conf:
    rfcomm0 {
    # # Automatically bind the device at startup
    bind yes;
    # # Bluetooth address of the device
    device 00:25:47:9F:AA:07;
    # # RFCOMM channel for the connection
    channel 2;
    # # Description of the connection
    comment "Nokia N73";
    Guyz, please help me solve the issue. I have tried googling but no luck. And I already have my laptop as trusted devices in my phone.

    i don't know how and why but appeared a new device on my phone called "james1711" and with this my pin is accepted when i type rfcomm connect 0; but after one minute of trying to connect appear another error in the shell:
    Can't connect RFCOMM socket: Resource temporarily unavailable

  • Safari and Chrome "can't connect to webpage" error message

    I recently purchased this macbook on the 26th and it was working completely fine the first day. Today i was using my macbook and it was working completely fine, then about 20-30 minutes after turning on and using my macbook webpages failed to load. In safari I would refresh the page and the page would stop loading at about 40%, and when i tried doing using the search bar instead of the URL bar, i would recieve a "Can't connect to server error" saying that safari was unable to connect to Google. On Chrome i tried opening the same page, such as twitter or youtube, and the page would fail to load as well and it would give me the "unable to connect to webpage" error message. Anything connected to the internet won't load as well, such as the app store or even skype. Whenever i restart the computer it begins working fine again, but returns to its previous state after 20-30 mins again. I have tried restarting my router and even connecting to a different router. I have also checked my proxies and nothing is selected. I am just wondering what to do at this moment, should i take my computer in so soon? Or should I give the computer some time to get "broken in."? My macbook is running Mac OS X Lion 10.7.4
    Preferences
    1
    2
    3
    4
    5
    6
    7
    8
    9
    0
    =
    Backspace
    Tab
    q
    w
    e
    r
    t
    y
    u
    i
    o
    p
    Return
    capslock
    a
    s
    d
    f
    g
    h
    j
    k
    l
    shift
    `
    z
    x
    c
    v
    b
    n
    m
    shift
    English
    alt
    alt
    PreferencesI r

    Do you have Little Snitch installed?
    See: https://discussions.apple.com/thread/3892943?start=0&tstart=0

  • Os x isnt showing my iphone4s when i plug it in through usb and i can't connect through bluetooth.

    os x isnt showing my iphone4s when i plug it in through usb and i can't connect through bluetooth.help!

    Try the steps in this article: http://support.apple.com/kb/ts1591

  • WRT150N v1.1: Can't connect through router, internet light isnt on

    Recently there was a thunderstorm last week and it somehow shorted out my cable modem. (It was hooked up to a surge protector and still somehow got damaged..) The router seemed to be fine, however, after having replaced the modem, my desktop can't connect through to the internet nor my laptop on it's wifi. The internet only works when I direclty link the modem to my desktop/laptop.
    I've tried unplugging the modem and router for 30 seconds then re-plugginging the modem, waiting for initialization, then booting up the router but i've found no luck in getting it working as it used to.. I searched up past posts, and the "Setting-Up a Linksys Router with Cable Internet Service" doesnt say what to do if the light for internet doesnt turn on.
    Another odd thing the router does is that, for some reason, the 3rd port for ethernet is lit up when theres no cable in the port. I checked to see if the light would work in other ports when it was connected and it shows to work fine, just with the additional 3rd port constantly on.
    I'm not sure if it helps, but after hooking up the router I pinged it and it responded with:
    C:\Documents and Settings\Administrator>ping 192.168.1.1
    Pinging 192.168.1.1 with 32 bytes of data:
    Reply from 192.168.1.1: bytes=32 time=1ms TTL=64
    Reply from 192.168.1.1: bytes=32 time<1ms TTL=64
    Reply from 192.168.1.1: bytes=32 time<1ms TTL=64
    Reply from 192.168.1.1: bytes=32 time<1ms TTL=64
    Ping statistics for 192.168.1.1:
        Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
    Approximate round trip times in milli-seconds:
        Minimum = 0ms, Maximum = 1ms, Average = 0ms
    C:\Documents and Settings\Administrator>
    Anyone know how I can get this router working again? 

    Hm, i didn't see any change in anything after completing the steps.. I just had my cable/internet provider service technician come over and take a look at it. Basically, he told me the modem is probably fried somewhere and said I should invest in getting a new router. Surge protectors are apparently just a pretty name for "a good way to blow out multiple expensive devices." So now I'm out to get a wrt160N

  • Our web server has been changed can't connect through outlook now

    Dear Members,
    i am really thankful for you i have learn a lot of things from this forum.......today i want to ask one question about outlook, we have a website and we use the company email addresses some period ago we received a lot of spam emails when we talk to our
    hosting company they said we will transfer your website to a new server. as they transferred it to new server all the email address were deleted automatically. but we got the backup of emails and create all the email address with same id again,,,,........problem....is
    this that now we can't connect through outlook for example if i try to setup outlook it goes up to "try unencypted connection" and here stops that can not establish a connection. if i go directly to mail server there all is fine. the hosting company
    give us all the spec that incoming port should be 110 outgoing 587 and pop3. i tried all this but not working even i tried on such a computer where never outlook was installed .....but there it does not work as well..................Thanks;;;;;;;;
    Tahir Mehmood

    Hi Tahir,
    According to your description, my understanding is that you can use OWA but Outlook using pop3 can't work. Right?
    In general, the port for SMTP they are 465 (SSL) and 587(StartTLS) and 25 (unencrypted). 
    The following list for your reference:
    Default   Ports:
    Server:
    Authentication:
    Port:
    SMTP   Server (Outgoing Messages)
    Non-Encrypted
    AUTH
    25 
    Secure   (TLS)
    StartTLS
    587
    Secure   (SSL)
    SSL
    465
    POP3   Server (Incoming Messages)
    Non-Encrypted
    AUTH
    110
    Secure   (SSL)
    SSL
    995
    As you said, your outgoing port is 587,  I  recommend you refer to the following screenshot to set your pop3 setting, and check if any helps:
    Best regards,
    Niko Cheng
    TechNet Community Support

  • MySQL can't connect

    mysql unable to connect; MySQL said: Can't connect to local MySQL server through socket '/var/mysql/mysql.sock' (2)

    after that I get this:
    Administrators-Mac-mini:~ administrator$ mysql
    ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/mysql/mysql.sock' (2)
    Administrators-Mac-mini:~ administrator$
    I did not uninstall & start over, just this part:
    Create a launchd config file for MySQL:
    sudo vi /Library/LaunchDaemons/com.mysql.mysql.plist
    Use the following content:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
    <plist version="1.0">
      <dict>
        <key>KeepAlive</key>
        <true/>
        <key>Label</key>
        <string>com.mysql.mysqld</string>
        <key>ProgramArguments</key>
        <array>
        <string>/usr/local/mysql/bin/mysqld_safe</string>
        <string>--user=mysql</string>
        </array>
      </dict>
    </plist>
    (if you are new to vi, type 'i' to enter insert mode. Then ⌘-v to paste the above content. Press escape to get back to command mode. Then type 'ZZ' to save and exit.)
    The default path for the MySQL socket is not appropriate for MacOS X. Until it is changed, MySQL will not be able to communicate with PHP should you choose to enable that. Let's fix this now.
    Create a config file for MySQL that matches the Apple PHP build:
    sudo vi /etc/my.cnf
    Use the following content:
    [client]
    socket=/var/mysql/mysql.sock
    [mysqld]
    socket=/var/mysql/mysql.sock
    Start MySQL:
    sudo launchctl load -w /Library/LaunchDaemons/com.mysql.mysql.plist
    Still No Joy.
    Nav

  • Error when trying to install oracle client (can't connect to X11 error)

    Hi guys,
    I need help to install Oracle Client 10g. I am quite a novice so I am totally hopeless when it comes to difficult or linux-kind-of-terms.
    I can't use GUI at all, so everything got to be done through putty.exe
    my local pc (where the putty is, IP 192.168.8.194) -> linux red hat 4 IP 192.168.8.31 (where the oracle client should be!)
    when I run the runIntaller I receieved error mentioning about DISPLAY variable haven't set yet.
    I did set it trhough putty as follow
    DISPLAY=192.168.8.194:0.0
    export DISPLAY
    no luck...I still hit an error that eventho this time the error is like below;
    =============================================================================
    Can't connect to X11 window server using '192.168.8.194:0.0' as the value of the DISPLAY variable.
    192.168.8.194:0.0
    192.168.8.194:0.0
    OUI-10025:Unable to start an interactive install session because of the following error:Can't connect to X11 window server using '192.168.8.194:0.0' as the value of the DISPLAY variable. The DISPLAY environment variable should be set to <hostname or IP address>:<screen>, where the <screen> is usually '0.0'.
    - Make sure that client users are authorized to connect to the X Server.
    OUI-10027:To enable client users to access the X Server, open an xterm, dtterm or xconsole as the user that started the session and type the following command:
    % xhost +
    To test that the DISPLAY environment variable is set correctly, run a X11 based program that comes with the native operating system such as 'xclock':
    % <full path to xclock... see below>
    If you are not able to run xclock successfully, please refer to your PC-X Server or OS vendor for further assistance.
    Typical path for 'xclock': '/usr/X11R6/bin/xclock'
    ==============================================================================
    When I run the xclock using GUI I can see it pop up on my screen, but when I run xclock trhough putty, I see that it just went blank...is that right because I am using putty or what?
    Can you guys please help? Everyone that had this problem like find the solution real easy...I just so frustrated because this setting is just not working, and I have no idea what to check. Do I need extra library or something to install this?
    Please remember that I can use GUI in my test server but I can't use any GUI at all when I am implementing this.
    Thanks thanks thanks.
    Daniel -

    Hi-
    You are right. putty is just a simple console without X11 in it. how come it didn't even cross my mind?
    Thanks for the reply. I solved it by using third party software called xdeep, from what I got from internet looks like this and the software you were talking about hold the same purpose. This xdeep is pretty easy to configure and in just few seconds I can launch the installer! Gee...!
    For those guys that having the same problem as me then find xdeep software from google and browse on the configure webpage. I found a step by step configuration setting from the internet too and it's real easy.
    Daniel -

  • EA6900 Can't connect to Router error message from Linksys Smart Wifi

    Hello Everyone, I am having an issue where I cannot remotely access my router. I currently have Charter as my ISP and have internet connectivity when at home. I can also access my router through Smart Wifi when on my local connection. When I try to access remotely I get the "Can't connect to the router" error message. I believe that I have enable the correct settings on my router to provide this service. Any thoughts would be greatly appreciated! Thanks in advance. Mike Carlin

    Thanks for the reply. ISP: Charter CableModem: Wish I could tell you at this point, but not at home and can't remember specifics. I thought that I did the association.  Is this what you are talking about?http://www.linksys.com/us/support-article?articleNum=140177   

  • Software Update can't connect to server -- error

    I have Tiger 10.4.7 on a 600mH white G3 dual USB iBook. When I try to use the SoftwareUpdate function off the Apple Menu to check for any updates to Tiger, the "checking for new software" window starts up all right but immediately the error message window appears with "Software Update can't connect to the update server."
    I'm otherwise connected to the internet all right and everything is working. I tried trashing the com.apple.softwareupdate.plist file from the Library/Preferences and the user/Library/Preference/ and restarting, but this didn't do it either.
    I've had this problem before and it has "become" fixed, but I don't know exactly what sequence does it. Any help, please?
    PM9600/233 (OS 8.6); G3 white iBook (10.4.7)   Mac OS X (10.4.7)  

    No, I didn't try creating a new user, in part because once before doing that only made things more complicated and didn't solve any problems.
    Software Update simply started working again. No idea why.
    However, even after several days, Safari is still reporting that it cannot connect to the server for any URL put in. I've restarted Safari, reset Safari, manually emptied all caches, removed cookies. All very odd!
    Firefox is working just fine.

  • Can't connect to server Error -1 HP 6510

    When I initially installed printer I was able to access apps, now all I get is an error code that says I can't connect to the server error -1.  Is there a fix for this?
    This question was solved.
    View Solution.

    Djenav,
    I just wanted to check in and see how things went.

  • Can't connect through "extention"

    I cannot connect through "extentions" in Illustrator CS4, which I just recently purchased.  I can get to the Kuler site, but not through a Kuler desktop program.
    I'm lost.  Any suggestions?  I read another thread on this problem, but it's from 2008!

    This does not seem to be a support forum since there is no support...
    Due to limited access to the classroom I've just installed the Adobe air version, but it suffers from the same problems...
    Because it seems Kuler points to:
    http://www.robtex.com/ip/76.74.170.30.html
    IE -> internet tools -> Connections -> Lan settings -> select proxy setting -> click advance
    In the box for “Do not use proxy for addresses beginning with”
    Add:
    ;76.74.170.30
    HOW is it possible that developers can still create software without taking Proxy servers into account.
    Adobe? Any response at all?

  • Hi, I can't connect to itune error 11556 please help i can't use my iphone

    i was syncing for my iphone  to use the new ios5  but i can't connect i get this error #11556 so now i can't use my iphone i need to syn anyone plseae help thank you chino10458

    wifi is wifi, and business hub means very little.. this is area for time capsule discussion.. but the standard measures apply.
    1. Set wireless name (SSID) to a name that is short, no spaces and pure alphanumeric. Eg your Business Hub call wireless BH. There is no need for names longer than that.
    2. Set wireless channel for 2.4ghz to 11 or 6 or 1. Please test in that order. In Eurozone you can add 13 or use it instead of 11. They are the only 3 non-overlapping channels.
    3. Use no security to test.. of course this is unsafe long term.. so this is to test for a few minutes only.
    The only security that should be used with N wireless is WPA2 TKIP-AES .. it can be named several different things ie in Apple routers it is WPA2 personal. Use a passkey of 10-20 characters.. more if you are paranoid, mix of upper and lower case + numerics.. so pure alphanumeric.
    4. If it fails set the mode to G wireless. It is more consistent standard.
    If it still fails buy an Apple router and use that as WAP.

Maybe you are looking for

  • SPEED TEST: 10.0.2 faster than 10.0.3

    After a couple of weeks battering my brain switching between two identical systems with one running 10.0.2 and the other 10.0.3, I decided to do a side-by-side comparion. To my (not really) surprise, 10.0.2 was much FASTER and less beachballing than

  • In which table are LSMW Project details stored

    Hi Gurus, Can you pls tell me in which table can I find the Project, Sub Project, Object details, User Name. We have developed LSMW's during a global implementation for 60 countries and need to now send a report with all the above details. Pls help!!

  • Custom Toolbar Buttons - built from my SQL - feature request

    I would like to request a feature to be added to SQL Developer. I'm on EA, v 4.0.0.12. I would like to be able to create edit and add custom toolbar buttons. I do have some of my SQL saved as Snippets. As long as I want to keep the Snippets pane open

  • 3.1.2 - apex collections and invalid number

    Hi, We use collections on a number of pages in our production applications and everything is running well. Those applications are running on Apex 3.0 right now in 4 different environments. We have now upgraded to Apex 3.1.2 on 3 of those environments

  • Coherence local storage behavior on Weblogic server

    Hi, I am setting the following parameter as input to my Weblogic process - Dtangosol.coherence.session.localstorage=false. However, I see the below output - <Sep 16, 2010 11:42:01 AM CST> <Notice> <Stdout> <BEA-000000> <[EL Fine]: 2010-09-16 11:42:01