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 &)...

Similar Messages

  • MySQL conversion: can't connect to mysql server

    Hi all,
    I've downloaded the latest migration workbench with the mysql plugin. After I've choosen the source database, I don't get a connection to the source database. The hourglass stays visible for about an hour, no message is shown.
    The error.log file complains about a NoClassDefFound, but I've installed the latest mysql jdbc driver.
    Did I miss something?
    Any help appreciated.
    Best Regards,
    Richard den Adel
    Java Architect, Vodafone Netherlands
    error.log:
    ** Oracle Migration Workbench
    ** Release 9.2.0.1.0 Production
    ** ( Build 20020308 )
    ** ORACLE_HOME: C:\ORANT\MigrationWorkbench
    ** user language: en
    ** user region: US
    ** user timezone: ECT
    ** file encoding: Cp1252
    ** java version: 1.1.8.16
    ** java vendor: Oracle Corporation
    ** o.s. arch: x86
    ** o.s. name: Windows NT
    ** o.s. version: 4.0
    ** Classpath:
    C:\ORANT\MigrationWorkbench\Omwb\olite\Oljdk11.jar;C:\ORANT\MigrationWorkbench\Omwb\olite\Olite40.jar;C:\Program Files\Oracle\jre\1.1.8\lib\rt.jar;C:\Program Files\Oracle\jre\1.1.8\lib\i18n.jar;C:\ORANT\MigrationWorkbench\Omwb\jlib;C:\ORANT\MigrationWorkbench\Omwb\jlib\Omwb.jar;C:\ORANT\MigrationWorkbench\Omwb\jlib\oembase-9_2_0.jar;C:\ORANT\MigrationWorkbench\Omwb\plugins\SQLServer6.jar;C:\ORANT\MigrationWorkbench\Omwb\plugins\SQLServer7.jar;C:\ORANT\MigrationWorkbench\Omwb\plugins\SQLServer2K.jar;C:\ORANT\MigrationWorkbench\Omwb\plugins\Sybase11.jar;C:\ORANT\MigrationWorkbench\Omwb\plugins\Sybase12.jar;C:\ORANT\MigrationWorkbench\Omwb\plugins\MSAccess.jar;C:\ORANT\MigrationWorkbench\Omwb\plugins\MySQL.jar;C:\ORANT\MigrationWorkbench\Omwb\drivers\mm.mysql.jdbc-1.2a;C:\ORANT\MigrationWorkbench\Omwb\plugins\Informix7.jar;C:\ORANT\MigrationWorkbench\Omwb\drivers\ifxjdbc.jar;C:\ORANT\MigrationWorkbench\Omwb\plugins\db2400v4r5.jar;C:\ORANT\MigrationWorkbench\Omwb\drivers\jt400.jar;C:\ORANT\MigrationWorkbench\lib\xmlparserv2.jar;C:\ORANT\MigrationWorkbench\rdbms\jlib\xsu111.jar;C:\ORANT\MigrationWorkbench\jdbc\lib\classes111.zip;C:\ORANT\MigrationWorkbench\lib\vbjorb.jar;C:\ORANT\MigrationWorkbench\jlib\netcfg.jar;C:\ORANT\MigrationWorkbench\jlib\ewt3.jar;C:\ORANT\MigrationWorkbench\jlib\ewtcompat-3_3_15.jar;C:\ORANT\MigrationWorkbench\jlib\share.jar;C:\ORANT\MigrationWorkbench\jlib\help3.jar;C:\ORANT\MigrationWorkbench\jlib\oracle_ice5.jar;C:\ORANT\MigrationWorkbench\jlib\kodiak.jar
    ** Started : Fri Aug 23 14:23:14 CEST 2002
    ** Workbench Repository : Oracle Lite ORDBMS 4.0.1.0.7
    ** The following plugins are installed:
    ** MySQL Release 9.2.0.1.0 Production
    ** Active Plugin : MySQL
    Exception occurred during event dispatching:
    java.lang.NoClassDefFoundError: org/gjt/mm/mysql/Driver
         at java.util.Vector.<init>(Vector.java:128)
         at oracle.mtg.mysql.server.MySQLServiceImpl.getDatabases(MySQLServiceImpl.java:1123)
         at oracle.mtg.mysql.ui.MySQLCaptureWizard._populateDatabases(MySQLCaptureWizard.java:1093)
         at oracle.mtg.mysql.ui.MySQLCaptureWizard.wizardValidatePage(MySQLCaptureWizard.java:633)
         at oracle.ewt.wizard.WizardPage.processWizardValidateEvent(Unknown Source)
         at oracle.ewt.wizard.WizardPage.validatePage(Unknown Source)
         at oracle.ewt.wizard.BaseWizard.validateSelectedPage(Unknown Source)
         at oracle.ewt.wizard.BaseWizard.doNext(Unknown Source)
         at oracle.ewt.wizard.BaseWizard$Action.actionPerformed(Unknown Source)
         at oracle.ewt.button.PushButton.processActionEvent(Unknown Source)
         at oracle.ewt.button.PushButton.processEventImpl(Unknown Source)
         at oracle.ewt.lwAWT.LWComponent.redispatchEvent(Unknown Source)
         at oracle.ewt.lwAWT.LWComponent.processEvent(Unknown Source)
         at oracle.ewt.button.PushButton.activate(Unknown Source)
         at oracle.ewt.lwAWT.AbstractButton.processMouseReleased(Unknown Source)
         at oracle.ewt.lwAWT.AbstractButton.processMouseEvent(Unknown Source)
         at java.awt.Component.processEvent(Component.java:2210)
         at java.awt.Container.processEvent(Container.java:901)
         at oracle.ewt.lwAWT.LWComponent.processEventImpl(Unknown Source)
         at oracle.ewt.button.PushButton.processEventImpl(Unknown Source)
         at oracle.ewt.lwAWT.LWComponent.redispatchEvent(Unknown Source)
         at oracle.ewt.lwAWT.LWComponent.processEvent(Unknown Source)
         at java.awt.Component.dispatchEventImpl(Component.java:1819)
         at java.awt.Container.dispatchEventImpl(Container.java:946)
         at java.awt.Component.dispatchEvent(Component.java:1751)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:1848)
         at java.awt.LightweightDispatcher.processMouseEvent(Container.java:1637)
         at java.awt.LightweightDispatcher.dispatchEvent(Container.java:1538)
         at java.awt.Container.dispatchEventImpl(Container.java:933)
         at java.awt.Window.dispatchEventImpl(Window.java:509)
         at java.awt.Component.dispatchEvent(Component.java:1751)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:85)
    ** Shutdown : Fri Aug 23 14:29:03 CEST 2002
    ** Oracle Migration Workbench
    ** Release 9.2.0.1.0 Production
    ** ( Build 20020308 )
    ** ORACLE_HOME: C:\ORANT\MigrationWorkbench
    ** user language: en
    ** user region: US
    ** user timezone: ECT
    ** file encoding: Cp1252
    ** java version: 1.1.8.16
    ** java vendor: Oracle Corporation
    ** o.s. arch: x86
    ** o.s. name: Windows NT
    ** o.s. version: 4.0
    ** Classpath:
    C:\ORANT\MigrationWorkbench\Omwb\olite\Oljdk11.jar;C:\ORANT\MigrationWorkbench\Omwb\olite\Olite40.jar;C:\Program Files\Oracle\jre\1.1.8\lib\rt.jar;C:\Program Files\Oracle\jre\1.1.8\lib\i18n.jar;C:\ORANT\MigrationWorkbench\Omwb\jlib;C:\ORANT\MigrationWorkbench\Omwb\jlib\Omwb.jar;C:\ORANT\MigrationWorkbench\Omwb\jlib\oembase-9_2_0.jar;C:\ORANT\MigrationWorkbench\Omwb\plugins\SQLServer6.jar;C:\ORANT\MigrationWorkbench\Omwb\plugins\SQLServer7.jar;C:\ORANT\MigrationWorkbench\Omwb\plugins\SQLServer2K.jar;C:\ORANT\MigrationWorkbench\Omwb\plugins\Sybase11.jar;C:\ORANT\MigrationWorkbench\Omwb\plugins\Sybase12.jar;C:\ORANT\MigrationWorkbench\Omwb\plugins\MSAccess.jar;C:\ORANT\MigrationWorkbench\Omwb\plugins\MySQL.jar;C:\ORANT\MigrationWorkbench\Omwb\drivers\mm.mysql.jdbc-1.2a;C:\ORANT\MigrationWorkbench\Omwb\plugins\Informix7.jar;C:\ORANT\MigrationWorkbench\Omwb\drivers\ifxjdbc.jar;C:\ORANT\MigrationWorkbench\Omwb\plugins\db2400v4r5.jar;C:\ORANT\MigrationWorkbench\Omwb\drivers\jt400.jar;C:\ORANT\MigrationWorkbench\lib\xmlparserv2.jar;C:\ORANT\MigrationWorkbench\rdbms\jlib\xsu111.jar;C:\ORANT\MigrationWorkbench\jdbc\lib\classes111.zip;C:\ORANT\MigrationWorkbench\lib\vbjorb.jar;C:\ORANT\MigrationWorkbench\jlib\netcfg.jar;C:\ORANT\MigrationWorkbench\jlib\ewt3.jar;C:\ORANT\MigrationWorkbench\jlib\ewtcompat-3_3_15.jar;C:\ORANT\MigrationWorkbench\jlib\share.jar;C:\ORANT\MigrationWorkbench\jlib\help3.jar;C:\ORANT\MigrationWorkbench\jlib\oracle_ice5.jar;C:\ORANT\MigrationWorkbench\jlib\kodiak.jar
    ** Started : Mon Aug 26 08:29:36 CEST 2002

    What is the version of your mm.mysql driver? We test using version 1.2a
    Have you placed the zip files (mm.mysql.jdbc-1.2a.zip) in the %ORACLE_HOME%\Omwb\drivers directory?
    Donal

  • Database error #2002 can not connect local mysql server to socket through '/var/run/mysqld/mysqld.sock'(2) on mac os x 10.9.2

    Dear Fellas:
    I received "database error #2002 can not connect local mysql server to socket through '/var/run/mysqld/mysqld.sock'(2)" on mac os x 10.9.2.
    mysql info:
    ps -ef | grep mysql
        0    66     1   0 11:06AM ??         0:00.04 /bin/sh /usr/local/mysql/bin/mysqld_safe --user=mysql
       74   225    66   0 11:06AM ??         0:02.50 /usr/local/mysql/bin/mysqld --basedir=/usr/local/mysql --datadir=/usr/local/mysql/data --plugin-dir=/usr/local/mysql/lib/plugin --user=mysql --log-error=/usr/local/mysql/data/Chuans-MacBook-Pro-2.local.err --pid-file=/usr/local/mysql/data/Chuans-MacBook-Pro-2.local.pid --socket=/var/run/mysqld/mysqld.sock
      501   952   947   0  3:52PM ttys000    0:00.00 grep mysql
    Please help!!

    Fascinated and guessing:
    Something related to sock(2) because that's not part of your copied info. I'm thinking you've doubled up on sockets and the second socket doesn't exist, meaning you should be connecting to the first socket "mysqld.sock" whether automatic or not.
    I've only used GUI tools on purpose, so does this mean you've already got MySQL running and you tried to launch it again manually? Perhaps you already have one instance of a db and you're trying to launch a second instance, and the two can't coexist with a single user local db?
    Assuming this is all local, I'd shut down the db service and restart it, out of hand. I've seen similar messages when I set the db to start up on boot, and it didn't finish shutting down when I tried to restart it manually. Usually the GUI won't let me turn it on because it reports it's already running, but in that case it hadn't finished performing what the GUI was reporting.
    Just speculating.

  • ERROR#: 2002 can't connect to MySQL server through socket '/var/mysql/mysql.sock'

    I was following this adobe article (
    http://www.adobe.com/devnet/dreamweaver/articles/php_macintosh.html)
    to set up PHP and MySQL and connect a MySQL database to dreamweaver
    in Mac OS 10.4.8 and I kept getting:
    "Can't connect to MySQL server through socket
    '/var/mysql/mysql.sock' ERROR#: 2002".
    After a lot of searching I came across
    this
    article which said that there was an error in the PHP and MySQL
    connection or something.
    Anyway all I had to do was type (in a TERMINAL window):
    $ sudo mkdir /var/mysql
    $ sudo ln -s /tmp/mysql.sock /var/mysql/mysql.sock
    and that fixed the problem, otherwise the adobe article
    worked very well.
    Check out the "this article" link to get the fix straight
    from the horse's mouth.

    I was following this adobe article (
    http://www.adobe.com/devnet/dreamweaver/articles/php_macintosh.html)
    to set up PHP and MySQL and connect a MySQL database to dreamweaver
    in Mac OS 10.4.8 and I kept getting:
    "Can't connect to MySQL server through socket
    '/var/mysql/mysql.sock' ERROR#: 2002".
    After a lot of searching I came across
    this
    article which said that there was an error in the PHP and MySQL
    connection or something.
    Anyway all I had to do was type (in a TERMINAL window):
    $ sudo mkdir /var/mysql
    $ sudo ln -s /tmp/mysql.sock /var/mysql/mysql.sock
    and that fixed the problem, otherwise the adobe article
    worked very well.
    Check out the "this article" link to get the fix straight
    from the horse's mouth.

  • Can I connect to MySQL database

    sorry for my English...
    I'm absolutely new in Flex
    can I connect to MySQL database?
    I read here that I need to create a java class file and edit
    an xml to create connection to oracle, can I connect to MySQL
    server too, I think that the PHP-XML is too slow to work with lare
    amounts of data... so can you post me MXML, the XML, and the JAVA
    class file, with I will be able to send sql to mysql server and get
    the response?
    or FDS is a stand-alone SQL server?

    Flex is not a SQL server.
    The Flex SDK and compiler supports developing applications
    that run in the Flash player.
    Flex Data Services is deployed as a Java web application that
    simplifies integrating Flex clients with Java server-side resources
    (including interacting with SQL databases via Java).
    FlexBuilder is an IDE for developing Flex apps.
    I'd recommend spending some time browsing the Flex product
    area on adobe.com.
    Best,
    Seth

  • 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

  • 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

  • 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 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

  • PHP can't connect to MySQL socket

    Since upgrading from 10.4 to Leopard 10.5, PHP can no longer connect to MySQL. It gives the error:
    +Can't connect to local MySQL server through socket '/var/mysql/mysql.sock'+
    I've read the threads and the following Technical Article:
    http://docs.info.apple.com/article.html?artnum=301457
    The problem is that none of the solutions are working!
    I can see that MySQL is creating a socket at:
    /tmp/mysql.sock
    1. So in /etc/apache2/httpd.config I set:
    mysql.default_socket = /tmp/mysql.sock
    But that had no effect, because even after restarting everything it still gives the above error message referring to /var/mysql/mysql.sock
    2. So then I followed the directions to have MySQL create the socket in the /var/mysql/mysql.sock. But any attempt to set the permissions on that directory has no effect or produces an 'unexpected error'.
    3. So then I tried creating an alias from /var/mysql/mysql.sock to /tmp/mysql.sock, but that had no effect either.
    Three possible solutions -- any one of which would solve the problem -- but all three of them fail, and the error message is always the same. What gives?

    Hi,
    I had the exactly the same problem after the 10.5 upgrade, I found following in another forum (seems to be pretty same as your solution 3, except for the mkdir command). After I applied these commands via the terminal window the MySQL worked with my PHP scripts (The PHP needed also some tweaking before working, but is not the issue here).
    ! first create the /var/mysql directory
    sudo mkdir /var/mysql/
    ! Then create the link
    sudo ln -s /tmp/mysql.sock /var/mysql/mysql.sock
    ! The restart apache (web sharing off and on in the sharing panel)
    Best regards,
    Sebastian

  • Can't connect PHP/MySQL 404 error

    Wow, the learning curve is killing me. Yet another challenge. I'm using Dreamweaver CC and this tutorial http://www.adobe.com/devnet/dreamweaver/articles/setup_php.html
    I'm at this step:
    Open comments.php. You must have a PHP page open in the Document window to create a MySQL connection.
    In the Databases panel (choose Window > Databases), click the Plus button on the panel and select MySQL Connection.The MySQL Connection dialog box appears.
    Type connTest as the connection name.
    For the MySQL Server, type localhost.If you are using the MAMP default ports on a Mac, use localhost:8889.
    For the User Name, type phptestuser.
    Type the password you chose for the phptestuser account in the Password field.
    For the Database, type php_test.Note: You don't need to precede the underscore with a backslash here. It was inserted by phpMyAdmin in the previous section (see Figure 20) only because phpMyAdmin uses a query that permits wildcard characters.
    Click Test.Dreamweaver attempts to connect to the database. If the connection fails, do the following:
    Double-check the server name, user name, and password.
    Check the settings for the folder Dreamweaver uses to process dynamic pages (see Specifying a Testing Server for Dreamweaver).
    Verify that the web and MySQL servers are both running.
    Temporarily disable any firewall or security program. If the connection works, you need to configure the security program to permit communication between Dreamweaver and MySQL.
    Click OK. The new connection appears in the Databases panel.
    Expand the connTest connection, and then expand the Tables branch. You'll see the comments table in the database, which you can expand to reveal the details of the table columns (see Figure 23).
    As far as I can tell I have followed this tutorial to the letter.
    As far as I can tell, XAMPP/php mySQL are all running fine, the files are in the correct place and everything should be working. However when I hit test I get a 404 error. (Same error when I hit the select button.)
    The suggested problems on the 404 message are:
    1. There is no testing server running on the server machine.
    Pretty sure the testing server is running. Is there any way to test this, other than to note that xampp is definitely running right now and that I can log into phpMYadmin no problem?
    2. The testing server specified for this site does not map to the http://localhost/php_test/_MMServerScripts/MMHTTPDB.php URL Verify that the URL Prefix maps to the root of the site.
    Ummm...I'm pretty sure I put things where I was told to put them in the tutorial, but I'm lost at this point where I should verify what. A clue here? The files are where they are supposed to be, but maybe I entered something wrong? Except...I'm not sure what that could be or where to find it. Whatever IT is.
    Everything in local files is looking good.
    Thanks for your help!
    PS: Extra points to anyone who figures out how to make copy/pasteable error messages! These buggers are the bane of my life!

    Bgupta, you rock!
    I hope you have copied the "mysql.php" and "MMHTTPDB.php" files from "C:\Users\username\AppData\Roaming\Adobe\Dreamweaver CC\locale\Configuration\Connections\Scripts\PHP_MySQL\_mmDBScripts" to "C:\xampp\htdocs\phptest\_mmServerScripts"
    This was EXACTLY the problem. I checked the tutorial and I couldn't even find where the tutorial said to do this. (If I missed it, let me know where in the tutorial it was, please.)
    Fixed!

  • I can't connect to MySQL getting Error #2002 after I updated php

    I'm on a mac and I updated my version of PHP and installed the GD library.
    The problem is that I needed up date my connection to the database or something to that affect so I ran this command line:
    sudo mkdir /var/mysql
    sudo ln -s /private/tmp/mysql.sock /var/mysql/mysql.sock
    And it worked... but then I restarted my computer and now I can't connect and I'm getting the error I had of...
    #2002 - The server is not responding (or the local MySQL server's socket is not correctly configured)
    So I tried the above two lines of code and it said those files/directory exist.
    I went into /etc/php.ini file to change this mysql.default_socket = /var/mysql/mysql.sock
    So what do I need to do here to change this permanently?

    Post Unix queries to the Unix forum under OS X Technologies.

  • Can't connect to MySQL Community Server 5.6 from CF11

    I'm trying to connect to MySQL Community Server version 5.6 from Cold Fusion 11. If I choose the DataDirect driver, I get an error message stating that the driver does not support Community Server. So I choose the MySQL5 driver and I am able to verify the connection from the CF Admin page. However, whenever I try to run any queries using the verified datasource, I get a "500 - internal server error".
    Is there an updated driver I can use? Does that driver support Community Server?

    Have either of you turned on "Enable Robust Exception Handling" in CF Administrator so a more detailed error message can be viewed?  If you are using IIS, have you set the Error Pages settings to show "Detailed errors" so it will pass through ColdFusion errors?
    -Carl V.

  • Can't connect to MySQL

    Hi all:
    I've set up a LAMP (Linux-Apache-MySQL-PHP of course) server
    and I'm getting the good old unidentified error when trying to
    connect. The Adobe technote gives a number of seemingly ambiguous
    reasons why this can happen. Has anyone else encountered this
    problem and if so what is the most common cause? I have a user set
    up for Dreamweaver in the MySQL database and I can connect wtih an
    admin program from the same computer. The error occurs just as I
    click test on the add connection dialog. I can supply more info but
    I'm so new at this I don't even know what's important. Any help
    would be greatly appreciated.
    Thanks!
    Ken Ha Quad

    IfyO wrote:
    > I begin to wonder if the makers of Dreamweaver8 intended
    to give
    > us all a Jigsaw puzzle.
    No, the makers of Dreamweaver give you software that works
    correctly
    with a properly configured setup.
    > How can Adobe sit bag and let us keep going through this
    stress?
    I agree that the setup documentation could be clearer, but
    most of the
    problems that I've encountered are the result of incorrect
    installation
    of PHP/MySQL. That's not Adobe's responsibility. The other
    main source
    of problems is failure to define a testing server correctly
    in the
    Dreamweaver site setup.
    > Following your suggestion, how does one determine a more
    uptodate library when
    > you have just installed the latest version of
    Dreamweaver 8 and EasyPHPserver?
    Dreamweaver 8 relies on a correctly configured installation
    of PHP and
    MySQL. It installs nothing that affects the performance of
    PHP or MySQL.
    Part of your problem may lie in using EasyPHP. I've just
    visited the
    EasyPHP site, and see that the latest version of EasyPHP uses
    PHP
    4.3.10, MySQL 4.1.9, and phpMyAdmin 2.6.1. The latest "real"
    versions
    are PHP 5.1.4, MySQL 5.0.22, and phpMyAdmin 2.8.
    There is a warning in the PHP manual that none of the
    "all-in-one"
    packages are endorsed by php.net. The fact that EasyPHP can't
    be
    bothered to update to more recent versions is one reason you
    shouldn't
    rely on such packages.
    > You still keep getting the error message that it cannot
    find MMHTTPDB which is
    > sitting clearly in the appropriate folders!!
    If it were sitting in the appropriate folder, Dreamweaver
    would find it.
    It sounds as though you haven't defined your testing server
    correctly.
    To start off with, the site files must be in the Apache
    server root. In
    the testing server definition, enter the location of the
    files in
    testing server folder, and the correct URL in URL prefix.
    On my setup, the Apache server root is C:\htdocs. So the
    correct
    settings for a site called "mysite" is as follows:
    Server model: PHP MySQL
    Access: Local/network
    Testing server folder: C:\htdocs\mysite\
    URL prefix:
    http://localhost/mysite/
    However, you may still have problems connecting to MySQL with
    EasyPHP,
    because it uses PHP 4.3 in combination with MySQL 4.1. You
    may need to
    set up your MySQL passwords using the OLD_PASSWORD protocol:
    http://dev.mysql.com/doc/refman/5.0/en/old-client.html
    David Powers
    Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
    Author, "Foundation PHP 5 for Flash" (friends of ED)
    http://foundationphp.com/

  • I can't connect to MySQL database from The JSP Standard Tag Library

    Hi All !
    I have a problem, please help me anybody !
    I don't connect to MySQL database from jsp page using JSTL tag but from servlet all work correctly. I set my path and put �mysql-connector-java-3.1.13-bin.jar� in ENVIRONMENT WinXP(classpath=C:\Java\jdk1.5.0_10\jre\lib\ext\mysql-connector-java-3.1.13-bin.jar) and in War project folder �WEB-INF/lib� and in [TomcatServer]\common\lib.
    I have in folder�WEB-INF/lib� following files:
    antlr.jar
    commons-beanutils.jar
    commons-collections.jar
    commons-digester.jar
    commons-fileupload.jar
    commons-logging.jar
    commons-validator.jar
    jakarta-oro.jar
    jsf-api.jar
    jsf-impl.jar
    jstl.jar
    mysql-connector-java-3.1.13-bin.jar
    standard.jar
    struts.jar
    I'm using:
    NetBeans 5.5 Build200610171010 (bundled Tomcat 5.5.17)
    Ent.Pack 20061020 Visual Wb Pack 061103
    OS WinXP SP2
    Java 1.5.0_10
    MySQL 5.0.18-nt
    1:<%@page contentType="text/html"%>
    2:<%@page pageEncoding="UTF-8"%>
    8: <%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
    9: <%@taglib uri="http://java.sun.com/jstl/sql" prefix="sql"%>
    10:
    11: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    12: "http://www.w3.org/TR/html4/loose.dtd">
    13:
    14: <sql:setDataSource var="ds"
    15: driver="com.mysql.jdbc.Driver"
    16: url="jdbc:mysql://localhost:3306/test"
    17: user="root"
    18: password="xxxx"/>
    19:
    20:
    21:<sql:query sql="select name, age from People" var="res"
    22: dataSource="${ds}"/>
    I have received report on mistake when entered code at the top:
    �/index.jsp [21;0] According to TLD or attribute directive in tag file, attribute dataSource does not accept any expressions�
    I used instead of (dataSource="${ds}")->(dataSource="ds") but this did not work.
    After build and run I have received
    =========================================START=================================
    HTTP Status 500
    type Exception report:
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    org.apache.jasper.JasperException: /index.jsp(21,0) According to TLD or attribute directive in tag file, attribute dataSource does not accept any expressions
    org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:510)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:375)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:368)
    root cause
    org.apache.jasper.JasperException: /index.jsp(21,0) According to TLD or attribute directive in tag file, attribute dataSource does not accept any expressions
    org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:39)
    org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:405)
    org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:146)
    org.apache.jasper.compiler.Validator$ValidateVisitor.checkXmlAttributes(Validator.java:955)
    org.apache.jasper.compiler.Validator$ValidateVisitor.visit(Validator.java:710)
    org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1441)
    org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2163)
    org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2213)
    org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2219)
    org.apache.jasper.compiler.Node$Root.accept(Node.java:456)
    org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2163)
    org.apache.jasper.compiler.Validator.validate(Validator.java:1489)
    org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:166)
    org.apache.jasper.compiler.Compiler.compile(Compiler.java:295)
    org.apache.jasper.compiler.Compiler.compile(Compiler.java:276)
    org.apache.jasper.compiler.Compiler.compile(Compiler.java:264)
    org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:563)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:303)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:368)
    note The full stack trace of the root cause is available in the Apache Tomcat/5.5.17 logs.
    Apache Tomcat/5.5.17
    =======================================END================================
    Error: "According to TLD or attribute directive in tag file, attribute dataSource does not accept any expressions" - but according to documentation such parameter possible.
    BUT WHEN JOINING With DATABASE FROM SERVLET ALL WORK FINE.
    I read this doc - [http://tomcat.apache.org/tomcat-5.5-doc/jndi-datasource-examples-howto.html], this applicable if I Tomcat Admin, but i'am not Admin
    I simply user, i.e. I want to place its database on virtual host (Tomcat+(JSP-JSTL)+MySQL).
    There is idea how can resolve this problem
    Thank you in advance ;)

    For all how have similar problem.
    Decision instead of these ways
    <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
    <%@ taglib prefix="sql" uri="http://java.sun.com/jstl/sql" %>
    it is necessary to indicate these
    <%@ taglib prefix="sql" uri="http://java.sun.com/jsp/jstl/sql" %>
    <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

Maybe you are looking for

  • Inter-company Sub-contracting

    Dear Experts, I am working on a scenerio where Plant A is sending Components to Plant B. Then In plant B the processing is done on those components and a semifinished material is made. Then the Semifinished Material is recieved back into plant A. I a

  • I transfered my itunes library to an external hard drive, and its accessible, but I can't burn a cd now. I need help!

    I transfered all my music to an external hard drive, and changed the location in the preferences options in itunes. I can add music to the library, i can play music and make play lists, but I cannot burn a cd. What's happening, and what can i do to f

  • Adobe Edge Animate cc

    Hi, I downloaded this and have a scyning error message & couldnt get rid of the error so I put it in the trash can and now i cant re-download the program. What should I do ? Thanks, Danielle

  • Version 6 SLOOOOOW Renders

    I have been using the latest version of FCP up to yesterday when I upgraded to V6. Renders that were taking 11 minutes last week are now taking over an hour! Has the code been optimized for Intel? Are us G5 users screwed?

  • ILOK and CS4 problems

    Hello. I know this is an older version, but I am at a complete loss as to understand this. I need to run up this version in particular, and on launch I get a message telling me that Auto Tune 7 cannot be loaded as it "requires a valid license on my i