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!

Similar Messages

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

    I am new at this.  I created a PHP page and I want to connect to mysql on my host's server.  I can connect to my server as I can upload my site.   When I click on my database - MYSQL connection in dreamweaver I populate the appropriate informatioin.     When I hit test I get an unidentified error  It doesn't appear it is connecting to my database.   My cpanal and database appear to be set up so I can access it remotely.
    YUUGGG.   Since I can connect to my server to upload my site, I have verified I should be ok with accessing the database remotely what could be the problem?

    Connection name = database
    MySQL server: 174.120.152.211 (I was told to use this by my hosting company since I was accessing the file remotely
    Use name:  jake_jake
    Password - password for database
    datebase = database name
    What's weired is I can connect to upload my site but when I try to connect to get my database I can't. 

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

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

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

  • How can I throw a hard 404 error to apache when a JSP is not found.

    How can I throw a hard 404 error to apache when a JSP is not found.
    I want to let apache handle the error.

    [email protected] (Jeremy Conner) wrote in
              <[email protected]>:
              >How can I throw a hard 404 error to apache when a JSP is not found.
              >I want to let apache handle the error.
              >
              >
              First thought that comes to mind is to return HTML that tells the browser
              redirect to a nonexistent file under Apache. You can't tell Apache to
              throw a 404 unless you're in a mod. Maybe something they could add to the
              proxy, but until then, I think a redirection in the response HTML is your
              only option.
              Jesse
              

  • Can't connect to PSN. Error code: ce-33987-0

    Almost every night I can't connect to PSN. Error code: ce-33987-0
    After multiple PS4 restarts and my router restarts - it connects. Sometimes it connects after few hours without doing anything at all. So I couldn't find any pattern.
    My router and internet is perfect - all other devices at home has perfect internet connection at full speed.
    I tried all the tricks I've found in this forum (make my PS4 primary, connect to wifi and connect back to cable, do not turn off PS4 and leave in standby, check NAT type etc.).
    But nothing helped.
    Connection test shows NAT Type 2 which is perfectly OK I guess.
    Is this PSN that unstable or what?
    How should I solve this problem?

    I've been having the same problem for over a week, but I think I found the solution to it.Firstly, my internet setup is an old netgear modem-router combo hooked up to a new TP-Link (n) router. The netgear is set to modem only mode. My ps4 is connected wirelessly downstairs.For about 3 months, my ps4 was working normally with no problems, but about a week ago this error code started popping up inconsistently. Sometimes everything was fine, most times it wasn't.I isolated the problem to the PS4-Router communication, as my ps3 (and everything else at home) worked perfectly with no changes to the setup. Possible Solution- Today, I factory reset both devices (Netgear and TP-Link routers) and set them up to the point where they worked normally (with my phone, laptop, etc).Then, I enabled UPnP on BOTH devices, and also Forwarded all the necessary ports for my PS4 on the TP-Link router.I changed the wireless channel on the TP-Link to [1] from [6].I also changed the wireless channel width on it from [auto] to [20mhz]. This automatically reduced my max Tx rate to [130mbps] from [300mbps]. (I suggest doing this manually if it doesn't change automatically).I rebooted the TP-Link router, and started up my ps4 after a few seconds. The system loaded perfectly, PSN signed in instantly, and I played an hour on BF4 with no problems. I also restarted my PS4 again to see whether the settings would 'Stick'. They did, it still ran perfectly. I won't play again for a few hours, but I will report here if it does/doesn't work. Good luck trying my solution, Hope it works for you.Happy Gaming

  • I can't connect to Time Capsule- error message: Backup disk is not available. Was working fine before.

    I can't connect to Time Capsule- error message: Backup disk is not available. Was working fine before.

    Restart it.. Does this all the time with Lion and even worse ML.
    Restart the whole network if that doesn't work.. do it in correct order.. from off.. modem.. TC.. clients 2min gap.

  • Can't connect to cloud.. error message.

    Ever since I did the Lollipop update on my Galaxy S5 I'm getting this error message: "Warning! we can't connect to the coud service at this time. Please check your data servic e and try again". This is happening CONSTANTLY. Sometimes every five minutes if I'm using my phone.
    I'm connected to WiFi and data, so I don't understand why I keep getting this error message or how to make it stop. Anyone have suggestions?
    Please refer to post and replies: Can't connect to Cloud.. error message.
    Message was edited by: Verizon Moderator

    Let's get you connected to your cloud once and for all madelinefrances. When was the last time you were able to connect to the Cloud successfully? Are you able to connect to the internet successfully on your phone? Does the error message pop up randomly on your phone or only when you try to access the application?
    Thank You,
    MichelleL_VZW
    VZW Support
    Follow us on Twitter @VZWSUPPORT

  • I receive an error message0xe800007f iTunes can not connect with iPhone unknown error

    i receive an error message, " itunes can not connect with iphone , unknown error
    " 0xe800007f
    i have mac mini with lion os and iphone 4s

    Make sure you have the latest version of iTunes. You can download it from here -> http://www.apple.com/itunes/download/
    If that doesn't work, check out this Apple article -> iOS: Unknown error containing '0xE' when connecting to a Windows PC

  • I can´t set the control panel iCloud. PC writes this: you can not connect because the server error occurred. What´s matters?

    I can´t set the control panel iCloud. PC writes this: you can not connect because the server error occurred. What´s matters?

    Whenever I log into icloud.com
    Using what version of which browser?
    iCloud.com requires Safari 6 or later, Firefox 22 or later, or Google Chrome 28 or later. Have you tried all of those?
    If you have, have you tried clearing your browser cache and cookies?
    For the first tine since 1989 I'm thinking about buying a PC.
    You'd have exactly the same problems on an 8 year old PC too. It's a bit unreasonable to expect such an old Mac to continue to be compatible as software is constantly updated.
    Saying that, I'm still able to access iCloud.com successfully in Safari v5.0.6 on a PowerPC Mac running Mac OS X 10.5.8, so the problem you're having is likely to be a browser issue, not something inherently wrong with the computer.
    Since all this crap started, Mail won't download my Mac.com or me.com email.
    The iCloud.com website is totally unconnected to Mail's ability to download email via IMAP. Have you checked the mail server settings are correctly setup and up-to-date?

  • Itunes sudden can't connect with itunes store, error code 11556

    Sudden can't connect with itues store, error code 11556

    Try these discussions...
    https://discussions.apple.com/message/18950811#18950811
    https://discussions.apple.com/message/20057934#20057934
    FRom the  More Like This  section on the right.

  • 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

Maybe you are looking for

  • Need Help with Logic

    Am on 10G. Inside my Table there is a field for PHONE, but we have other fields like PHONE2, 3 and 4. Some are like HOME, some are for CELL, some for WORK, and OTHER. I am not sure if this can be done with a Case Statement in SQL, but what I am looki

  • Using SELECT INTO statement to transfer data from one DB to another?

    Hello, I need to move data from an SAP table to another downstream SQL server box without flat file in between. I have set up the DBCON interface, so that my ABAP code on SAP can connect to the remote SQL Server, then I can run INSERT command as Nati

  • Idoc types and message types we use in IS-Retail

    hi gurus,              can anyone tell me what are the idoc types and their message types that we use in SAP IS-Retail . Thanks in advance regards gopal

  • Pacman: clean-up or de-fragmentation?

    I have three ThinkPads (notebooks) with exactly the same set of packages installed (the same output of `pacman -Q'). Unfortunately: outputs of `pacman -Qe' are completely different. I wonder what's the best way to find the minimal set of packages tha

  • Motion Lens Flare

    Hi, I'm new to Motion. I imported a graphic and placed a lens flare on it at a certain point it time. Then Imported it to FCP. Looks great until the lens flare comes on screen. It has a black box with it that takes up most of the screen. When I impor