Dreamweaver & MySQL

I recently purchased a MacBook Pro, then upgraded to Leopard
and MAMP
Pro, and phpMyAdmin is working better than ever. Now that
I've moved all
my websites from my PC to my Mac, I want to comb through them
and better
organize them.
One project is to simply make a list of every file that
features one or
more PHP database queries, preferably with a few details
(e.g. the type
of query, tables queried, etc.).
I can find these files by simply doing a site-wide search for
"mysql_."
However, it's a little tedious, as i still have to open each
file and
examine the code.
So, can anyone suggest any shortcuts? Are you aware of any
software
programs somehow monitor database quries?
I'd also be interested in hearing about other software
programs people
use for working with MySQL on a Mac.
Thanks.

I second that, Brendon. Just started using it and I'm pretty
impressed.
Well worth the price.
Kelley Rao, Webeze
Website Planning Guide for Developers
http://www.web-eze.com/dwpg.html
"Brendon" <[email protected]> wrote in message
news:fn0vci$r69$[email protected]..
> One word - Navicat.
>
>
> "David Blomstrom" <[email protected]>
wrote in message
> news:fn0qtv$n0p$[email protected]..
>>I recently purchased a MacBook Pro, then upgraded to
Leopard and MAMP Pro,
>>and phpMyAdmin is working better than ever. Now that
I've moved all my
>>websites from my PC to my Mac, I want to comb through
them and better
>>organize them.
>>
>> One project is to simply make a list of every file
that features one or
>> more PHP database queries, preferably with a few
details (e.g. the type
>> of query, tables queried, etc.).
>>
>> I can find these files by simply doing a site-wide
search for "mysql_."
>> However, it's a little tedious, as i still have to
open each file and
>> examine the code.
>>
>> So, can anyone suggest any shortcuts? Are you aware
of any software
>> programs somehow monitor database quries?
>>
>> I'd also be interested in hearing about other
software programs people
>> use for working with MySQL on a Mac.
>>
>> Thanks.
>
>

Similar Messages

  • DreamWeaver MySQL "Group by" Tutorial

    Hi People,
    Does anyone know of a good DreamWeaver / MySQL Tutorial to show how to 'Group' result from a MySQL database.
    I need to combine "Group by" and a "Repeat Region" row in a table:
    // Start Repeat Region
    Group by: Order No.
                                 - Show: Column A, Column B, Column C, Column D, Column E
    // End Repeat Region
    Anyone got any ideas?
    Many thanks!

    " SELECT *, COUNT(order_no) as count
    FROM order
    GROUP BY order_no
    ORDER BY due_date ASC
    Replace the bolded word with the respective column in table. Drag any variable that u want to put on page do normar repeat region."
    I don't have a 'count' column.
    I have one table called projects, which holds the order number, due date, etc, then another table called jobs, which uses a Foreign Key to link to the projects table. The jobs table hold information, such as language, what stage the jobs is at, etc.
    Can you explain where the 'count' column would go, would it be a sum of all 'jobs' that have the same order number?
    Apologies for the confusion, I'm trying to learn this as I go along!

  • Dreamweaver & MySQL Extension for PHP

    Hey guys,
    As everybody knows, the mysql extension in PHP has been deprecated and it will soon be replaced by mysqli, so does anybody know where I can find an Adobe Extension I can use so I can start using mysqli with Dreamweaver instead of mysql?
    By the way, I'm using CS5, CS5.5, so I don't have access to exchange since Adobe put it to work only with CS6.
    Thanks

    PHSTechSupport wrote:
    Hey guys,
    As everybody knows, the mysql extension in PHP has been deprecated and it will soon be replaced by mysqli, so does anybody know where I can find an Adobe Extension I can use so I can start using mysqli with Dreamweaver instead of mysql?
    By the way, I'm using CS5, CS5.5, so I don't have access to exchange since Adobe put it to work only with CS6.
    Thanks
    Unfortunately there is no extention available at the moment which replaces the old/current msql server behaviours in DW for msqli. Whilst they are/were useful they are/were also were quite limiting.
    After Adobe announced that they would be removing the server behaviors in the current version of DW CC and that php announced that it would no longer support the sql extention in it's next release personally I decided it was time to move on. The good news is using sqli to connect/query a database is really quite a simple proceedure. Just Google a few tutorials.
    I understand the reasoning for wanting sqli automation BUT its not available at the moment so you have two choices, 1) continue to use the old mysql server behaviours or 2) learn the new sqli way. It wont take you long to get to grips with it. The server behaviours in DW only offered the basics so learning those basics using sqli isn't going to be too time consuming, plus you actually get more familar with the coding.

  • HOW DO I MAKE IMAGES DYNAMIC USING DREAMWEAVER & MySql

    Hi there,
       I wanted to make images dynamic in that the images would be stored in my database and then use dreamweaver to pull the images from the database using a recordset. But how do I get to store the images in MySql now that dreamweaver doesn't support BLOB and also how do I make dreamweaver pull the images from that database? PLZ somebody help

    To pull the image from Database on to your page
    1. Open your php page
    2. put your cursor where you want the image to show on the page
    3. insert>image>Select File Name From: Data Sources>select record from recordset> click ok
    4. View in browser
    In Mysyl the image was stored as a "longblob" type with "binary" attributes
    but my system is Dreamweaver CS3.
    Hope this helps. Let me know.

  • Dreamweaver MySQL recordset connection problem

    Hi,
    I'm trying to create a recordset for the first time in
    Dreamweaver MX but am having problems getting the connection with
    the database to work.
    I have set up a MySQL database on my server (which I have
    checked and is OK), checked that PHP is running and have connected
    Dreamweaver to the server successfully ( in "Edit Sites" the
    "remote info" & "testing server" tests show a successful
    connection).
    When I try to connect to the database I get this sequence of
    events:
    1. Dialigue box: "Retrieving information from public_html"
    2. Dialigue box: "Waiting for server" (with progress bar)
    3. Dialigue box: "Dreamweaver cannot determine the remote
    server time. The Select Newer and Synchronise commands will not be
    available."
    4. Spinning ball for a few minutes (I'm using Mac OSX)
    5. back to "Waiting for server" dialogue box which remains
    for ages, eventually I click "cancel"
    6. "An unexpected error occurred"
    If anyone can shed any light on what I might be missing I
    would appreciate it greatly.
    Thanks - Zaphodz

    I am a newby to databases and am having a similar problem
    with asp and my remote sql database. My hosting provider told me to
    use this script:
    <%
    Dim DBName,DBUser,DBPass,objRS,objConn
    DBName="cham_members"
    DBUser="cham_member"
    DBPass="mypassword"
    Set objConn=Server.CreateObject("ADODB.Connection")
    objConn.ConnectionString="DRIVER={MySQL ODBC 3.51
    Driver};Server=localhost;Database="&DBName&";UID="&DBUser&";pwd="&DBPass&";"
    objConn.Open
    Set objRS=Server.CreateObject("ADODB.Recordset")
    %>
    Since that code doesn't work with DreamWeaver's Databases
    panel Custom Connection String dialogue box I came up with this
    one:
    DRIVER={MySQL ODBC 3.51
    Driver};Server=localhost;Database=cham_members;UID=cham_member;PWD=mypassword;objConn.Ope n
    Set objRS=Server.CreateObject(ADODB.Recordset)
    It connected but doesn't show my tables. I followed all the
    advice I found here;
    1. Connect using the "Use passive FTP"
    2. Corrected a few illegal hyphens in my database.
    3. Tried MySQL 127.0.0.1:3306 which would not connect at all
    4. Remove Connection Scripts. No change.
    5. I have been running DreamWeaver 7.01 update.
    I noticed the database connection names come up in the
    "Connections" folder so I opened the file it had just created and
    pasted in the script my hosting company gave me. Still no luck. I
    am determined to learn to create dynamic websites so I really
    appreciate your help.
    Thanks, Ann Y.

  • Developing a web application in Dreamweaver,MySql and PHP

    I have two questions:
    1.  Am developing a web application on a windows 7 platform.
    I have an insertion form where I have to always eneter the geographical details for some one. I.e District, County, Sub County and village.
    So what I want is to have these pre entered in the database before I revock this form such that when I select a certain village on the form, it automatyically displays its District, Subcounty and County in the following textfiled. This saves time than typing them manually all the time.
    I need help on how to do this.
    2.  On the same form, I have a textfield for capturing date of Birth. I need help on to insert a calender in this field such that when some one clicks on it, a calender pops up and he selects the date which is then inserted in the text field other than  tytping it manually.
    Thank u.

    1. Have a look here http://labs.adobe.com/technologies/spry/samples/data_region/DataSetMasterDetailSample.html
    2. Have a look here http://www.adobe.com/cfusion/exchange/index.cfm?event=extensionDetail&loc=en_us&extid=2137 022
    I hope this helps.
    Ben
    PS For more support on these products go to the Spry Forum here http://forums.adobe.com/community/labs/spry

  • Live view test server won't execute php scripts

    Hello everyone!
    I've had a web developer design a site for me based on php.
    Rather than bother them for simple image changes and content
    updates, I'm trying to learn to do those things myself. I'm very
    new to Dreamweaver and I'm having difficulties getting php script
    to execute through my test server. I have the latest versions of
    Dreamweaver, MySQL, php, and Apache installed on my machine. I've
    downloaded the source files off of my hosting server. The problem
    is when I try to "Live View" the "index.php" off of the root file
    on the test server, Dreamweaver gives me an error that says:
    "The testing server did not execute any of the scripts in
    your document. Possible explanations include:
    1.> The test server is not running
    2.> The test server ignores files with .php. in the
    extension
    3.> The documents did not contain any scripts."
    I know my system is working properly because I created a page
    "timetest.php" with the following code:
    <p>This page was created at <b><?php echo
    date("h:i:s a", time()); ?></b> on the computer running
    PHP.</p>
    ...and it works fine in "Live View".
    Any ideas what the problem might be? I've been reading books
    and searching online and I haven't been able to figure it out.
    Here's what the code on "index.php" looks like:

    What happens when you view your page on your test server in a
    browser?
    Are the php scripts executed?
    Also, the macromedia.dreamweaver.appdev forum is a more
    appropriate
    place for this question, so you might get a better response.
    Randy
    > "The testing server did not execute any of the scripts
    in your document.

  • DW pbp connection problem

    I have two php/mysql sites up and running on my local
    computer. I'm in the middle of setting up another one, but keep
    getting the following error when trying to establish a MySQL
    connection using Dreamweaver:
    MySQL error #: 1045
    Access denied for user . . . (using password: YES)
    My username and password have not changed. I checked to make
    sure the settings I'm using for the new site match the old sites. I
    then checked the old sites and sure enough, they're no longer
    working.
    Yet phpadmin and mysql are running. I used phpmyadmin to set
    up the d/b which I cannot connect to.
    I've just searched Macfixit and don't see anything about
    10.4.7 breaking either mysql or php.
    Any ideas what's going on?
    mac 10.4.7
    phpMyAdmin 2.6.4-pl3
    DW 8.0.1

    doonavitch wrote:
    > I have two php/mysql sites up and running on my local
    computer. I'm in the
    > middle of setting up another one, but keep getting the
    following error when
    > trying to establish a MySQL connection using
    Dreamweaver:
    >
    > MySQL error #: 1045
    > Access denied for user . . . (using password: YES)
    You don't say which versions of PHP and MySQL you are using,
    but MySQL
    4.1 and higher requires PHP 5 and mysqli. Otherwise you need
    to use the
    OLD_PASSWORD() protocol in MySQL:
    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/

  • Php trouble

    I have two php/mysql sites up and running on my local computer. I'm in the middle of setting up another one, but keep getting the following error when trying to establish a connection using Dreamweaver:
    MySQL error #: 1045
    Access denied for user . . . (using password: YES)
    I checked to make sure the settings I'm using for the new site match the old sites. I then checked the old sites and sure enough, they're no longer working.
    Yet mysql and phpadmin are running without any errors.
    The only change on my laptop since the first two PHP sites were built have been system upgrades. I've just searched Macfixit and don't see anything about 10.4.7 breaking either mysql or php.
    Any ideas what's going on?
    david

    Do you administer mysql through the Terminal, or do you use MySQL Administrator? If you aren't using MySQL Administrator, that might make it easier to diagnose the problem.
    http://www.mysql.com/products/tools/administrator/
    I found this one fix for getting php and mysql talking to one another after upgrading to Mac OS X 10.4.4. Perhaps this will help in this instance too.
    http://www.macosxhints.com/article.php?story=20060111113313511&query=mysql
    PowerMac G5   Mac OS X (10.4.6)   1GB RAM, nvidia 6800 ultra, Apple 30" Cinema Display

  • Dreamweaver adding local testing server MySQL-HELP REQUEST

    I have a website on register.com and I am using MySQL for the
    first time. My DB and table have been created using MyPHPAdmin. Now
    I want to use my Dreamweaver to setup a testing server that will be
    local and then upload asp pages after testing. Can Anyone PLEASE
    assist with this. I have downloaded and installed MySQL 5 and
    loaded the MySQL Driver for ODBC. I am not sure if I am doing this
    correctly OR if anyone knows an easier way. In summary I simply
    want to:
    A : Be able to test MySQL tables using dreamweaver's testing
    server then locally upload to my remote site that is hosted at
    register.com.
    THANKS in advance
    Mark

    Why not use PHPMyAdmin to build the database remotely and
    then just use your
    remote connection for testing?
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "Mark6372" <[email protected]> wrote in
    message
    news:eivg19$sdf$[email protected]..
    >I have a website on register.com and I am using MySQL for
    the first time.
    >My DB
    > and table have been created using MyPHPAdmin. Now I want
    to use my
    > Dreamweaver
    > to setup a testing server that will be local and then
    upload asp pages
    > after
    > testing. Can Anyone PLEASE assist with this. I have
    downloaded and
    > installed
    > MySQL 5 and loaded the MySQL Driver for ODBC. I am not
    sure if I am doing
    > this
    > correctly OR if anyone knows an easier way. In summary I
    simply want to:
    >
    > A : Be able to test MySQL tables using dreamweaver's
    testing server then
    > locally upload to my remote site that is hosted at
    register.com.
    >
    > THANKS in advance
    > Mark
    >

  • How do i create a styled spry mysql driven menu using dreamweaver cs4?

    How do i create a styled spry mysql driven menu using dreamweaver cs4?
    I have cs4. I gave up on using MS sql as a datasource. I finally got a php successfull connection in my PHP web page.
    I would like a nice video tutorial for creating a dynamic menu.
    I guess i can style it by attaching a css file to the page. Are their any already designed css files out there in some online area?
    i am not a good designer. so i would like to simply have a collection of menu_style.css files and choose what looks good.
    But first i need to build the spry menu from the mysql database.
    Any help is apprechiated.
    My first choice was to maintain the data in an MS sql server file. If i could directly attach to an ms sql datasource then that would be the best option.
    I dont think i want to have to re-generate an XML datasource each time i add or modify the menu. I would like to maintain the MS Sql or mySql file instead.
    If i could generate an XML datasource from the MS Sql database then I may even prefere that, but i have spent a lot of time trying to figure out how to do that and not had any success. So i prefere working in MS sql but would settle for mySql if i had to.
    Thanks
    Jerry

    To create a dynamic menu take a look here http://labs.adobe.com/technologies/spry/samples/menubar/MenuFromNestedData.html#
    The XML file for the above menu looks like this
    <?xml version="1.0" encoding="utf-8"?>
    <items>
         <item id="0001" type="donut">
              <name>Cake</name>
              <ppu>0.55</ppu>
              <batters>
                   <batter id="1001">Regular</batter>
                   <batter id="1002">Chocolate</batter>
                   <batter id="1003">Blueberry</batter>
                   <batter id="1003">Devil's Food</batter>
              </batters>
              <topping id="5001">None</topping>
              <topping id="5002">Glazed</topping>
              <topping id="5005">Sugar</topping>
              <topping id="5007">Powdered Sugar</topping>
              <topping id="5006">Chocolate with Sprinkles</topping>
              <topping id="5003">Chocolate</topping>
              <topping id="5004">Maple</topping>
         </item>
         <item id="0002" type="donut">
              <name>Raised</name>
              <ppu>0.55</ppu>
              <batters>
                   <batter id="1001">Regular</batter>
              </batters>
              <topping id="5001">None</topping>
              <topping id="5002">Glazed</topping>
              <topping id="5005">Sugar</topping>
              <topping id="5003">Chocolate</topping>
              <topping id="5004">Maple</topping>
         </item>
         <item id="0003" type="donut">
              <name>Buttermilk</name>
              <ppu>0.55</ppu>
              <batters>
                   <batter id="1001">Regular</batter>
                   <batter id="1002">Chocolate</batter>
              </batters>
         </item>
         <item id="0004" type="bar">
              <name>Bar</name>
              <ppu>0.75</ppu>
              <batters>
                   <batter id="1001">Regular</batter>
              </batters>
              <topping id="5003">Chocolate</topping>
              <topping id="5004">Maple</topping>
              <fillings>
                   <filling id="7001">
                        <name>None</name>
                        <addcost>0</addcost>
                   </filling>
                   <filling id="7002">
                        <name>Custard</name>
                        <addcost>0.25</addcost>
                   </filling>
                   <filling id="7003">
                        <name>Whipped Cream</name>
                        <addcost>0.25</addcost>
                   </filling>
              </fillings>
         </item>
         <item id="0005" type="twist">
              <name>Twist</name>
              <ppu>0.65</ppu>
              <batters>
                   <batter id="1001">Regular</batter>
              </batters>
              <topping id="5002">Glazed</topping>
              <topping id="5005">Sugar</topping>
         </item>
         <item id="0006" type="filled">
              <name>Filled</name>
              <ppu>0.75</ppu>
              <batters>
                   <batter id="1001">Regular</batter>
              </batters>
              <topping id="5002">Glazed</topping>
              <topping id="5007">Powdered Sugar</topping>
              <topping id="5003">Chocolate</topping>
              <topping id="5004">Maple</topping>
              <fillings>
                   <filling id="7002">
                        <name>Custard</name>
                        <addcost>0</addcost>
                   </filling>
                   <filling id="7003">
                        <name>Whipped Cream</name>
                        <addcost>0</addcost>
                   </filling>
                   <filling id="7004">
                        <name>Strawberry Jelly</name>
                        <addcost>0</addcost>
                   </filling>
                   <filling id="7005">
                        <name>Rasberry Jelly</name>
                        <addcost>0</addcost>
                   </filling>
              </fillings>
         </item>
    </items>
    Then remains the manner in which you create the XML file which can be found here http://labs.adobe.com/technologies/spry/samples/utils/query2xml.html
    One you have your menu up and running, you will be able to apply styles and effects

  • Dreamweaver 8 bindings - to MySQL, error code 500

    Hello!
    Well, I've spent five days searching online forums, and a few
    posts come close to my problem, but not getting any clues to a
    solution. I hope one of the resident experts or members could shed
    some light...
    Windows XP
    Dreamweaver 8.0.2 (just upgraded - same problem)
    - Used setup-v1.17-apache-2.2.2-win32.exe for setup - from
    devside.net PHP 5.2.0-dev MySQL 4.1.7 (installed new after package.
    Have two instances of mysql on my system - one active, one in
    manual-inactive)
    - All was going well until trying to establish bindings in
    Dreamweaver. PHP is up and running. MySQL loaded, and database
    connection fine. Bindings gets the error... "HTTP Error Code 500
    Internal Server Error"
    Just getting back to it... Again, thank you for your help!
    Dreamweaver 8 has support for PHP 5. Version I'm using is
    5.2.0. MX specifies versions 4.x and above are required. I'll have
    to research if the support cuts off at 5.0.
    My Connections file: conn_newland.php (I'm following the book
    tutorial):
    <?php
    # FileName="Connection_php_mysql.htm"
    # Type="MYSQL"
    # HTTP="true"
    $hostname_conn_newland = "localhost";
    $database_conn_newland = "newland_tours";
    $username_conn_newland = "root";
    $password_conn_newland = "";
    $conn_newland = mysql_pconnect($hostname_conn_newland,
    $username_conn_newland, $password_conn_newland) or
    die(mysql_error());
    $Recordset1 = mysql_query("SHOW variables", $Connection1);
    echo "<table border=1 width=100%>";
    while ($row_Recordset1 = mysql_fetch_assoc($Recordset1)) {
    echo
    "<tr><td>".$row_Recordset1['Variable_name']."</td><td>".$row_Recordset1['Value']."</td></ tr>";
    echo "</table>";
    ?>
    Recordset parameters I entered in bindings:
    Name: rs_journal
    Connection: conn_newland
    Table: tbl_journal
    Columns: Selected - journalID, journal_entry
    Filter: none
    Sort: journalID Descending
    Clicking Test gives: "HTTP Error Code 500 Internal Server
    Error"
    By the way, the reason I didn't specify a password in "root'
    is that I had a problem before that I didn't know enough to
    overcome, so had to reinstall MySQL. However, the same error occurs
    if I specify another user name and password (previously set up).
    7:30 pm -
    Adding to this post...
    I found the following at
    http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=tn_16515.
    However, it appears it may be referring only to Dreamweaver MX 2004
    on Mac OS X. I have Dreamweaver 8 on Windows XP:
    Verify that the connection scripts are up on the server
    This section is related to the section above. In a web
    browser, browse to the URL prefix you have defined in the Testing
    Server category of the site definition and add
    /_mmServerScripts/MMHTTPDB.php. For example:
    http:/myserver/mysite/_mmServerScripts/MMHTTPDB.php. If things are
    working correctly, you should see something like the following text
    returned in the web browser:
    Notice: Undefined index: Type in
    c:\inetpub\wwwroot\mysite\_mmServerScripts\MMHTTPDB.php on line 13
    Notice: Undefined variable: oConn in
    c:\inetpub\wwwroot\mysite\_mmServerScripts\MMHTTPDB.php on line 20
    When I go to the file above, this is the message I receive
    (only thing that appears):
    The files from the _mmServerScripts folder are for the server
    model PHP-MySQL. You try to connect to a database using a different
    server model . Please remove this folder outside the Dreamweaver
    environment on both local and testing machines and try again.\n
    Is there a hint here of what the problem is? I need some help
    in possible interpretations.
    Previous attempts made to solve:
    - re-installed MySQL with mysql-5.0.24-win32.zip in
    recommended directory (outside the www directory). I now have two
    instances of MySQL on my local server - one set to automatic
    loading and the other manual (switched off)
    - one post suggested problem might be with ODBC - installed
    SQL ODBC with mysql-connector-odbc-3.51.12-win32.msi. However, I
    don't have a clue as to whether it's connected to anything...
    - successfully connected to SQL database through root without
    password and specific logon and password. No difference.
    - other posts suggest problem could reside in php.ini,
    htaccess, my.ini (SQL). I know where to find them, but don't have
    an understanding of what parameters to shift, if any. One post
    suggested a port problem, and I did see a port problem, presently
    set to 3306.
    From what I've been able to gather, this has been recognized
    as an issue before, but there doesn't seem to be any documentation
    online (or at least what I've been able to find) dealing with this.
    And any mention of the problem that I've seen references
    Dreamweaver MX, not 8, although I don't think the version
    difference is a significant issue.
    This error must be relatively rare, or I'd see more out there
    about it. Still, I hope that at least one of the community experts
    may have come across it.
    Will be waiting with bated breath -- at least for a few
    days...
    Thanks!
    Joe

    Hello,
    I have also had the same error - namely that whilst I could connect via ftp, upload/download files, and view database tables, any attempt to view of modify recordsets resulted in error 500.
    Having checked other potential causes (e.g. selection/non-selection use of passive FTP setting, enabling of php, etc.), on the back of posts here I contacted my host and asked if if could relate to mod security, as further investigation revealed that the issue only occurred on sites where mod security had not been disabled (I don't like to disable mod security for obvious reasons - and I'm told you can't do that site by site with apache2 anyway).
    After a few false starts, the problem was resolved - with the following response from my host: "The false positives were being generated by "/_mmServerScripts/MMHTTPDB.php" and that is what we've worked around in the rules. As such, any domain on [servername] using that script in the same way shouldn't generate a false-positive moving forward."
    So it seems the answer (assuming your on an apache server of course) may be to modify the rules to allow full access for MMHTTPDB.php.
    I hope that is of help to some.

  • Local net ssh failure Tiger (PHP MYSQL Apache Dreamweaver)

    I can't be sure, but I think this problem started with the latest security update. I'm 80% done with my first web application using PHP and Mysql in dreamweaver when I began getting an unknown error from dreamweaver when attempting to connect to my DB on my testing server. After 2 days of debugging and re-installing apps I finally wiped the testing server (G4 400 Cube memory topped out 120GB HD, down to the metal) reinstalled Tiger, fully patched, edited the httpd.conf file to enable php 4.4.1. Installed Mysql 4.1 (which was the last general distribution with a packaged install) and the server works fine, so I created myself as a user in mysql @localhost & @localmachinename to replicate root user. Navicat was up and running in no time, so I re-populated my server from my backup. Then I jumped over to my design workstation (G5 2Ghz Dual, 2GB Ram, 250GB HD) only to find navicat can't login to the mysql server because ssh wont connect to the G4. After much testing I discovered ALL of my macs will attach only to external addresses. My linux box, external linux boxes, even windows boxes emulating ssh will attach internally or extenally, the macs won't talk to anything in the local network 10.0.x What the ****! My project is now past due and I'm stuck because I can no longer ssh from any macs to internal machines mac or otherwise. PLEASE HELP!!! is there an SSH pakage so I can re-install? I couldn't find a mac ssh package on apple or ssh.org, Will that even make a difference? Can I uninstall the security update? Can anyone suggest a workaround?
    My network
    *10.0.1.2 Ganymede (Mandrivia 10 server and Gateway)
    *10.0.1.6 Artemis (G5 10.4.7) Web/Video
    *10.0.1.10 Miletus (G4 10.4.7) Web Testing
    *10.0.1.5 Venus (G4 10.4.7) Photo editing
    *10.0.1.4 Hero (G3 ibook 10.4.7) office work
    *10.0.1.7 Hermes (iMac 10.4.7) iLife
    *10.0.1.3 Apollo (Wintendo XP) Web Testing/The Sims
    Here are several ssh logs.
    mac to mac (FAIL)
    Artemis:~ phil$ ssh -vv 10.0.1.10
    OpenSSH_4.2p1, OpenSSL 0.9.7i 14 Oct 2005
    debug1: Reading configuration data /etc/ssh_config
    debug2: ssh_connect: needpriv 0
    debug1: Connecting to 10.0.1.10 [10.0.1.10] port 22.
    debug1: Connection established.
    debug1: identity file /Users/phil/.ssh/identity type -1
    debug1: identity file /Users/phil/.ssh/id_rsa type -1
    debug1: identity file /Users/phil/.ssh/id_dsa type -1
    debug1: Remote protocol version 1.99, remote software version OpenSSH_4.2
    debug1: match: OpenSSH_4.2 pat OpenSSH*
    debug1: Enabling compatibility mode for protocol 2.0
    debug1: Local version string SSH-2.0-OpenSSH_4.2
    debug2: fd 3 setting O_NONBLOCK
    debug1: An invalid name was supplied
    Cannot determine realm for numeric host address
    debug1: An invalid name was supplied
    A parameter was malformed
    Validation error
    debug1: An invalid name was supplied
    Cannot determine realm for numeric host address
    debug1: An invalid name was supplied
    A parameter was malformed
    Validation error
    debug1: SSH2MSGKEXINIT sent
    debug1: SSH2MSGKEXINIT received
    debug2: kexparsekexinit: diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-g roup1-sha1
    debug2: kexparsekexinit: ssh-rsa,ssh-dss
    debug2: kexparsekexinit: aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour128,arcfour256,arcfour,aes1 92-cbc,aes256-cbc,[email protected],aes128-ctr,aes192-ctr,aes256-ctr
    debug2: kexparsekexinit: aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour128,arcfour256,arcfour,aes1 92-cbc,aes256-cbc,[email protected],aes128-ctr,aes192-ctr,aes256-ctr
    debug2: kexparsekexinit: hmac-md5,hmac-sha1,hmac-ripemd160,[email protected],hmac-sha1-96,hmac- md5-96
    debug2: kexparsekexinit: hmac-md5,hmac-sha1,hmac-ripemd160,[email protected],hmac-sha1-96,hmac- md5-96
    debug2: kexparsekexinit: none,[email protected],zlib
    debug2: kexparsekexinit: none,[email protected],zlib
    debug2: kexparsekexinit:
    debug2: kexparsekexinit:
    debug2: kexparsekexinit: firstkexfollows 0
    debug2: kexparsekexinit: reserved 0
    debug2: kexparsekexinit: diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-g roup1-sha1
    debug2: kexparsekexinit: ssh-rsa,ssh-dss
    debug2: kexparsekexinit: aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour128,arcfour256,arcfour,aes1 92-cbc,aes256-cbc,[email protected],aes128-ctr,aes192-ctr,aes256-ctr
    debug2: kexparsekexinit: aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour128,arcfour256,arcfour,aes1 92-cbc,aes256-cbc,[email protected],aes128-ctr,aes192-ctr,aes256-ctr
    debug2: kexparsekexinit: hmac-md5,hmac-sha1,hmac-ripemd160,[email protected],hmac-sha1-96,hmac- md5-96
    debug2: kexparsekexinit: hmac-md5,hmac-sha1,hmac-ripemd160,[email protected],hmac-sha1-96,hmac- md5-96
    debug2: kexparsekexinit: none,[email protected]
    debug2: kexparsekexinit: none,[email protected]
    debug2: kexparsekexinit:
    debug2: kexparsekexinit:
    debug2: kexparsekexinit: firstkexfollows 0
    debug2: kexparsekexinit: reserved 0
    debug2: mac_init: found hmac-md5
    debug1: kex: server->client aes128-cbc hmac-md5 none
    debug2: mac_init: found hmac-md5
    debug1: kex: client->server aes128-cbc hmac-md5 none
    debug1: SSH2MSG_KEX_DH_GEXREQUEST(1024<1024<8192) sent
    debug1: expecting SSH2MSG_KEX_DH_GEXGROUP
    Write failed: Broken pipe
    Artemis:~ phil$
    Mac to linux internal (FAIL)
    Artemis:~ phil$ ssh -vv 10.0.1.2
    OpenSSH_4.2p1, OpenSSL 0.9.7i 14 Oct 2005
    debug1: Reading configuration data /etc/ssh_config
    debug2: ssh_connect: needpriv 0
    debug1: Connecting to 10.0.1.2 [10.0.1.2] port 22.
    debug1: Connection established.
    debug1: identity file /Users/phil/.ssh/identity type -1
    debug1: identity file /Users/phil/.ssh/id_rsa type -1
    debug1: identity file /Users/phil/.ssh/id_dsa type -1
    debug1: Remote protocol version 2.0, remote software version OpenSSH_4.3
    debug1: match: OpenSSH_4.3 pat OpenSSH*
    debug1: Enabling compatibility mode for protocol 2.0
    debug1: Local version string SSH-2.0-OpenSSH_4.2
    debug2: fd 3 setting O_NONBLOCK
    debug1: An invalid name was supplied
    Cannot determine realm for numeric host address
    debug1: An invalid name was supplied
    A parameter was malformed
    Validation error
    debug1: An invalid name was supplied
    Cannot determine realm for numeric host address
    debug1: An invalid name was supplied
    A parameter was malformed
    Validation error
    debug1: SSH2MSGKEXINIT sent
    debug1: SSH2MSGKEXINIT received
    debug2: kexparsekexinit: diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-g roup1-sha1
    debug2: kexparsekexinit: ssh-rsa,ssh-dss
    debug2: kexparsekexinit: aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour128,arcfour256,arcfour,aes1 92-cbc,aes256-cbc,[email protected],aes128-ctr,aes192-ctr,aes256-ctr
    debug2: kexparsekexinit: aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour128,arcfour256,arcfour,aes1 92-cbc,aes256-cbc,[email protected],aes128-ctr,aes192-ctr,aes256-ctr
    debug2: kexparsekexinit: hmac-md5,hmac-sha1,hmac-ripemd160,[email protected],hmac-sha1-96,hmac- md5-96
    debug2: kexparsekexinit: hmac-md5,hmac-sha1,hmac-ripemd160,[email protected],hmac-sha1-96,hmac- md5-96
    debug2: kexparsekexinit: none,[email protected],zlib
    debug2: kexparsekexinit: none,[email protected],zlib
    debug2: kexparsekexinit:
    debug2: kexparsekexinit:
    debug2: kexparsekexinit: firstkexfollows 0
    debug2: kexparsekexinit: reserved 0
    debug2: kexparsekexinit: diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-g roup1-sha1
    debug2: kexparsekexinit: ssh-rsa,ssh-dss
    debug2: kexparsekexinit: aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour128,arcfour256,arcfour,aes1 92-cbc,aes256-cbc,[email protected],aes128-ctr,aes192-ctr,aes256-ctr
    debug2: kexparsekexinit: aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour128,arcfour256,arcfour,aes1 92-cbc,aes256-cbc,[email protected],aes128-ctr,aes192-ctr,aes256-ctr
    debug2: kexparsekexinit: hmac-md5,hmac-sha1,hmac-ripemd160,[email protected],hmac-sha1-96,hmac- md5-96
    debug2: kexparsekexinit: hmac-md5,hmac-sha1,hmac-ripemd160,[email protected],hmac-sha1-96,hmac- md5-96
    debug2: kexparsekexinit: none,[email protected]
    debug2: kexparsekexinit: none,[email protected]
    debug2: kexparsekexinit:
    debug2: kexparsekexinit:
    debug2: kexparsekexinit: firstkexfollows 0
    debug2: kexparsekexinit: reserved 0
    debug2: mac_init: found hmac-md5
    debug1: kex: server->client aes128-cbc hmac-md5 none
    debug2: mac_init: found hmac-md5
    debug1: kex: client->server aes128-cbc hmac-md5 none
    debug1: SSH2MSG_KEX_DH_GEXREQUEST(1024<1024<8192) sent
    debug1: expecting SSH2MSG_KEX_DH_GEXGROUP
    Write failed: Broken pipe
    mac to linux external (Success)
    Artemis:~ phil$ ssh -vv 69.253.x.x
    OpenSSH_4.2p1, OpenSSL 0.9.7i 14 Oct 2005
    debug1: Reading configuration data /etc/ssh_config
    debug2: ssh_connect: needpriv 0
    debug1: Connecting to 69.253.x.x [69.253.x.x] port 22.
    debug1: Connection established.
    debug1: identity file /Users/phil/.ssh/identity type -1
    debug1: identity file /Users/phil/.ssh/id_rsa type -1
    debug1: identity file /Users/phil/.ssh/id_dsa type -1
    debug1: Remote protocol version 2.0, remote software version OpenSSH_4.3
    debug1: match: OpenSSH_4.3 pat OpenSSH*
    debug1: Enabling compatibility mode for protocol 2.0
    debug1: Local version string SSH-2.0-OpenSSH_4.2
    debug2: fd 3 setting O_NONBLOCK
    debug1: Miscellaneous failure
    No credentials cache found
    debug1: Miscellaneous failure
    No credentials cache found
    debug1: SSH2MSGKEXINIT sent
    debug1: SSH2MSGKEXINIT received
    debug2: kexparsekexinit: diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-g roup1-sha1
    debug2: kexparsekexinit: ssh-rsa,ssh-dss
    debug2: kexparsekexinit: aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour128,arcfour256,arcfour,aes1 92-cbc,aes256-cbc,[email protected],aes128-ctr,aes192-ctr,aes256-ctr
    debug2: kexparsekexinit: aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour128,arcfour256,arcfour,aes1 92-cbc,aes256-cbc,[email protected],aes128-ctr,aes192-ctr,aes256-ctr
    debug2: kexparsekexinit: hmac-md5,hmac-sha1,hmac-ripemd160,[email protected],hmac-sha1-96,hmac- md5-96
    debug2: kexparsekexinit: hmac-md5,hmac-sha1,hmac-ripemd160,[email protected],hmac-sha1-96,hmac- md5-96
    debug2: kexparsekexinit: none,[email protected],zlib
    debug2: kexparsekexinit: none,[email protected],zlib
    debug2: kexparsekexinit:
    debug2: kexparsekexinit:
    debug2: kexparsekexinit: firstkexfollows 0
    debug2: kexparsekexinit: reserved 0
    debug2: kexparsekexinit: diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-g roup1-sha1
    debug2: kexparsekexinit: ssh-rsa,ssh-dss
    debug2: kexparsekexinit: aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour128,arcfour256,arcfour,aes1 92-cbc,aes256-cbc,[email protected],aes128-ctr,aes192-ctr,aes256-ctr
    debug2: kexparsekexinit: aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour128,arcfour256,arcfour,aes1 92-cbc,aes256-cbc,[email protected],aes128-ctr,aes192-ctr,aes256-ctr
    debug2: kexparsekexinit: hmac-md5,hmac-sha1,hmac-ripemd160,[email protected],hmac-sha1-96,hmac- md5-96
    debug2: kexparsekexinit: hmac-md5,hmac-sha1,hmac-ripemd160,[email protected],hmac-sha1-96,hmac- md5-96
    debug2: kexparsekexinit: none,[email protected]
    debug2: kexparsekexinit: none,[email protected]
    debug2: kexparsekexinit:
    debug2: kexparsekexinit:
    debug2: kexparsekexinit: firstkexfollows 0
    debug2: kexparsekexinit: reserved 0
    debug2: mac_init: found hmac-md5
    debug1: kex: server->client aes128-cbc hmac-md5 none
    debug2: mac_init: found hmac-md5
    debug1: kex: client->server aes128-cbc hmac-md5 none
    debug1: SSH2MSG_KEX_DH_GEXREQUEST(1024<1024<8192) sent
    debug1: expecting SSH2MSG_KEX_DH_GEXGROUP
    debug2: dhgenkey: priv key bits set: 130/256
    debug2: bits set: 514/1024
    debug1: SSH2MSG_KEX_DH_GEXINIT sent
    debug1: expecting SSH2MSG_KEX_DH_GEXREPLY
    debug1: Host '69.253.239.85' is known and matches the RSA host key.
    debug1: Found key in /Users/phil/.ssh/known_hosts:3
    debug2: bits set: 516/1024
    debug1: sshrsaverify: signature correct
    debug2: kexderivekeys
    debug2: set_newkeys: mode 1
    debug1: SSH2MSGNEWKEYS sent
    debug1: expecting SSH2MSGNEWKEYS
    debug2: set_newkeys: mode 0
    debug1: SSH2MSGNEWKEYS received
    debug1: SSH2MSG_SERVICEREQUEST sent
    debug2: service_accept: ssh-userauth
    debug1: SSH2MSG_SERVICEACCEPT received
    debug2: key: /Users/phil/.ssh/identity (0x0)
    debug2: key: /Users/phil/.ssh/id_rsa (0x0)
    debug2: key: /Users/phil/.ssh/id_dsa (0x0)
    debug1: Authentications that can continue: publickey,password,keyboard-interactive
    debug1: Next authentication method: publickey
    debug1: Trying private key: /Users/phil/.ssh/identity
    debug1: Trying private key: /Users/phil/.ssh/id_rsa
    debug1: Trying private key: /Users/phil/.ssh/id_dsa
    debug2: we did not send a packet, disable method
    debug1: Next authentication method: keyboard-interactive
    debug2: userauth_kbdint
    debug2: we sent a keyboard-interactive packet, wait for reply
    debug1: Authentications that can continue: publickey,password,keyboard-interactive
    debug2: we did not send a packet, disable method
    debug1: Next authentication method: password
    [email protected]'s password:
    debug2: we sent a password packet, wait for reply
    debug1: Authentication succeeded (password).
    debug1: channel 0: new [client-session]
    debug2: channel 0: send open
    debug1: Entering interactive session.
    debug2: callback start
    debug2: clientsession2setup: id 0
    debug2: channel 0: request pty-req confirm 0
    debug2: channel 0: request shell confirm 0
    debug2: fd 3 setting TCP_NODELAY
    debug2: callback done
    debug2: channel 0: open confirm rwindow 0 rmax 32768
    debug2: channel 0: rcvd adjust 131072
    Last login: Tue Aug 15 12:56:42 2006 from artemis.ganymedia.net
    [phil@ganymede ~]$
    G5 Dual 2G   Mac OS X (10.4.7)  

    Mac comes with a fully functioning Apache web server with all the scripting languages (except VB). You need to enable them in the configuration file.
    You need some light weight UNIX administration skills to do this. Use the system restore disk to set the password for the root account.
    Open a terminal screen from the Utilities folder in Applications. Type "su", press return, then enter the root password you set using the system restore disk.
    Make a backup copy of the Apache configuration file with the following command (type this in with no mistakes and press the return key).
    cp /etc/httpd/httpd.conf /etc/httpd/httpd.conf.copy
    Enter the following to open the Apache configuration (type this in with no mistakes and hit the return key).
    /Applications/TextEdit.app/Contents/MacOS/TextEdit /etc/httpd/httpd.conf &
    Locate and remove the # comment symbol from the following lines and save the file in /etc/httpd/httpd.conf.
    #LoadModule php4_module libexec/httpd/libphp4.so
    #AddModule mod_php4.c
    Exit the TextEdit application and quit out of the terminal application.
    Put the following web page into a file named greetings.php inside the folder Library/WebServer/Documents.
    <html>
    <head>
    <title>Experiment</title>
    </head>
    <?php
    echo "Greetings";
    ?>
    </body>
    </html>
    Once you have made these changes, you can reboot to activate the changes.
    Put the following into your browser to test the configuration.
    http://localhost/greetings.php
    You should see "Greetings" on a web page titled "Experiment".
    MySQL is a separate server that you need to download and configure to complete your web server.
    I hope this helps.
    Best regards - Greg

  • How can I include a MySQL table and records with the PUT of my Dreamweaver site?

    I am using .php to validate a user code against one of four codes that I am providing to potential clients.  They enter that code, along with a default user id and the appropriate page is then displayed for them.  Everything is working fine on the desktop.  I need to have this table and the records created on my remote server.  I tried saving the table in the Connections folder, but that didn't help.  Everytime I enter a code (valid or invalid) on the live site, I get the following message:  "Table 'boundsauctions_com.promocode' doesn't exist".  Is there someway to include the table and records in my Dreamweaver folders for the site? 
    Thanks for any help that you can offer.

    You can't.  Dreamweaver, or FTP for that matter has no connection to the MySQL database.  If you have created a MySQL database locally and now wish to move/copy it to your server you'll need to create a back up of your local database and then log into your database on the server and then restore that back up.
    An even easier way to do this, and if you are working with MySQL much at all  a good investement is to get the commercial version of Navicat MySQL - this is the best MySQL administrator I've found to date and is well worth the few bucks to buy it.  With Navicat you can connect to your local MySQL database and also create a connection to your remote database, then literally drag and drop your local database contents to copy them to your server. This function alone justifies buying Navicat. A huge time saver.   And no I do not work for or have any share or ties to Navicat.  I'd recommend something else if I knew of anything better, but so far I don't.
    Hope this helps. If you need any more details let me know.
    Lawrence Cramer - *Adobe Community Professional*
    http://www.Cartweaver.com
    Shopping Cart for Adobe Dreamweaver
    available in PHP, ColdFusion
    Stay updated - http://blog.cartweaver.com

  • Connection error mysql database in Dreamweaver

    the error message is - HTTP error code 404 file not found. here are some possible reasons
    screen shot - http://netwizlk.site50.net/images/DW-error.jpg
    1)there is no testing server running on the server machine.
    2)the testing server specified for this site does not map to the http://localhost/_mmServerScripts/MMhTTPDB.php verify that the URL prefix maps to the root of the site.
    guy pls help me to solve this problem. I tried several times to connect my mysql database with dreamweaver but ended up having this error I reinstalled dreamweaver cs4 and XAMPP still the error is not rectified my both remote and local files are stored in XAMPP server location called in c:\xampp\htdocs\htdocs\myweb
    anybody who could give me a speedy solution for this issue will be highly appreciated thanks alot guys.

    c:\xampp\htdocs\htdocs\myweb
    MM serverscripts must be at the root level of the virtual server, that is directly in the htdocs folder.
    Mylenium

Maybe you are looking for