PHP Connection to a MySQL database "An unidentified err has occurred"

This is driving me up the wall.... With my hosting provider
at work I cannot make a connection to a MySQL database with
dreamweaver using the new connection in the databases tab. "an
unidentified error has occurred"
I am certain that I am entering the info correctly and have
the correct permissions to access the database, I think it has to
do with the _mmServerScripts folder and the testing server.
With the hosting provider that I use for personal websites I
make connections all day long doing the exact same thing that I am
doing here at work and I'm stumped. I even read a lenghty article
on this forum with possible solutions... none of them worked.
Is there any way around the _mmServerScripts directory and
testing server to make a connection and then use the bindings and
server behaviors tabs to creat recordsets, etc??
Thanks in advance for any help!
George

o0knightro wrote:
> Is there any way around the _mmServerScripts directory
and testing server to
> make a connection and then use the bindings and server
behaviors tabs to creat
> recordsets, etc??
Not if you want to use Dreamweaver server behaviors, no. The
usual
meaning of "an unidentified error has occurred" is failure to
connect
because communication is blocked by a firewall.
David Powers, Adobe Community Expert
Author, "The Essential Guide to Dreamweaver CS3" (friends of
ED)
Author, "PHP Solutions" (friends of ED)
http://foundationphp.com/

Similar Messages

  • Connect to mysql DB (An unidentified error has occurred.) plz need help...

    I have been unable to create a database connection in dreamweaver to my MySql
    server.  Each time I receive the message "an unidentified error has occurred".
    I can use pure php code to create a connection successfully:
    <?php
    $username = "root";
    $password = "password";
    $hostname = "localhost";
    $dbh = mysql_connect($hostname, $username, $password)
    or die("Unable to connect to mysql");
    print "connected to mysql<br>";
    $selected = mysql_select_db("test",$dbh)
    or die("Could not select first_test");
    if (mysql_query("insert into test_table values('5')")) {
    print "successfully inserted record";
    else {
    print "Failed to insert record";
    mysql_close($dbh);
    ?>
    This works, I can successfully insert a record.  However, if I try and create
    a connection in Dreamweaver with these same variables, I receive the message
    "an unidentified error has occurred".  I have tried, deleting the _mm
    connection scripts folder and recreating them.  I have used the mx2004 updater,
    I have tried all document types...  nothing seems to work...
    i am using local server (phptraid)
    PHPTriad 2.2 contains the following changes:
    Updated packages for Apache(1.3.23), MySQL(3.23.48) and PHP(4.1.1).
    also using remote host at (www.0fees.net)
    last thing i would to say in my computer i success only one time to make connection in window 7 - dreamweaver cs4
    and i create this site mwlobby.0fees.net
    but now i downloaded dreamweaver cs5 and i need to install new windows
    so i need help
    any suggestions?

    Turn your iPhone to a DFU mode and restore it

  • MySql connection error message "An unidentified error has occurred"

    I am trying to connect the Mysql database with dreamweaver
    but I keep getting the following error message:
    "An unidentified error has occurred". any idea what is wrong?
    Any help will be appreciated.
    SC Xiou

    SCXiou wrote:
    > I am trying to connect the Mysql database with
    dreamweaver but I keep getting
    > the following error message:
    > "An unidentified error has occurred".
    There are two common reasons for that happening:
    1. An incorrect testing server definition, or
    2. A software firewall is blocking access between MySQL and
    Dreamweaver.
    David Powers
    Adobe Community Expert, Dreamweaver
    http://foundationphp.com

  • Connecting to a Mysql database using CF Administrator and DW

    I can't create a mysql datasource in CF Administrator.
    If I use the following datasource settings in CF
    Administrator:
    JDBC URL: jdbc:mysql://localhost:3306/test
    Drive Class: MySQL Connector J
    AND (note the emphasis) I set my local and remote folders in
    my DW site local folder, remote folder and testing server folders
    all to C:\CFusionMX\db\, I can connect to my mysql database in CF
    Administrator.
    However, with these DW site folder settings, DW doesn't
    recognize any databases (Access or Mysql) at all.
    When I change my DW site folder settings to 'wwwroot'
    (e.g.local folder C:\CFusionMX\db\' is changed to
    'C:\CFusionMX\wwwroot') DW now lists all my CF Administrator
    databases.
    The problem is CF Administrator can't connect to my Mysql
    data sources. It gives me the error:
    "Connection verification failed for data source: javaserver
    []java.sql.SQLException: SQLException occurred in JDBCPool
    while attempting to connect, please check your username, password,
    URL, and other connectivity info.
    The root cause was that: java.sql.SQLException: SQLException
    occurred in JDBCPool while attempting to connect, please check your
    username, password, URL, and other connectivity info"
    I've tried changing the 3306 port to 8500, but this doesn't
    help.
    My java path and connector file is:
    C:\CFusionMX\wwwroot\WEB-INF\lib\mysql-connector-java-3.0.17-ga-bin.jar,
    Is this a ID/password problem? I've tried both 'root' and
    leaving the ID field in the CF Administrator add data source block,
    both to no avail. I don't have a password set in Mysql for 'root'
    either.
    Any help would be gratefully appreciated. I've been working
    on this for weeks and keep running into one problem after another.
    Thanks a million in advance.
    Sincerely,
    Graham A. Kerby

    1) ensure mysql server is running
    2) there are numerous tutorials for mysql installation out
    there
    3) there are good free mysql admin tools out there
    4) use both the above to verify your mysql installation is
    correct
    5) please tell me you do have your zonealarm DISABLED
    hth
    Azadi Saryev
    Sabai-dee.com
    http://www.sabai-dee.com

  • Connecting to a Mysql database using a ColdFusion server

    can't create a mysql datasource in CF Administrator.
    If I use the following datasource settings in CF
    Administrator:
    JDBC URL: jdbc:mysql://localhost:3306/test
    Drive Class: MySQL Connector J
    AND (note the emphasis) I set my local and remote folders in
    my DW site local folder, remote folder and testing server folders
    all to C:\CFusionMX\db\, I can connect to my mysql database in CF
    Administrator.
    However, with these DW site folder settings, DW doesn't
    recognize any databases (Access or Mysql) at all.
    When I change my DW site folder settings to 'wwwroot'
    (e.g.local folder C:\CFusionMX\db\' is changed to
    'C:\CFusionMX\wwwroot') DW now lists all my CF Administrator
    databases.
    The problem is CF Administrator can't connect to my Mysql
    data sources. It gives me the error:
    "Connection verification failed for data source: javaserver
    []java.sql.SQLException: SQLException occurred in JDBCPool
    while attempting to connect, please check your username, password,
    URL, and other connectivity info.
    The root cause was that: java.sql.SQLException: SQLException
    occurred in JDBCPool while attempting to connect, please check your
    username, password, URL, and other connectivity info"
    I've tried changing the 3306 port to 8500, but this doesn't
    help.
    My java path and connector file is:
    C:\CFusionMX\wwwroot\WEB-INF\lib\mysql-connector-java-3.0.17-ga-bin.jar,
    Is this a ID/password problem? I've tried both 'root' and
    leaving the ID field in the CF Administrator add data source block,
    both to no avail. I don't have a password set in Mysql for 'root'
    either.
    Any help would be gratefully appreciated. I've been working
    on this for weeks and keep running into one problem after another.
    Thanks a million in advance.
    Sincerely,
    Graham A. Kerby

    If it were me I would use the MySQL JDBC driver and not ODBC. Then DSN versus not-DSN wouldn't be an issue.

  • Can't Connect to the Mysql Database using J2SE jdk1.5

    Can anyone tell me why this error occurs ????????????????????
    Following are the codes ;
    package dbconnect2;
    import java.sql.*;
    public class dbconn2 {
    public static final String URL =
    "jdbc:mysql://localhost:3306/test";
    public static final String USERNAME = "test";
    public static final String PASSWORD = "password";
    * @param args the command line arguments
    public static void main(String[] args) throws Exception {
    // TODO code application logic here
    Connection connection = null;
    try {
    Class.forName("com.mysql.jdbc.Driver");
    connection = DriverManager.getConnection(URL,
    USERNAME, PASSWORD);
    Statement stm = connection.createStatement();
    ResultSet rs = stm.executeQuery("select * from emp");
    while (rs.next())
    String strnaam = rs.getString("emp_name");
    System.out.println(strnaam);
    finally {
    if (connection != null)
    connection.close();
    ================================================================================
    This is the run time error ;
    init:
    deps-jar:
    compile:
    run:
    Exception in thread "main" java.lang.ClassNotFoundException: com.mysql.jdbc.Driver
    at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:164)
    at dbconnect2.dbconn2.main(dbconn2.java:39)
    Java Result: 1
    BUILD SUCCESSFUL (total time: 2 seconds)
    please help me to sort this out
    Thanks
    Sishani

    I've solved the DW problem by changing the site folders from
    'db' to 'wwwroot' e.g. 'C:\CFusionMX\db\' is now
    'C:\CFusionMX\wwwroot\
    However I'm now back to my original problem. I've lost my
    mqysql connection in CF Adminstrator. Before I made these changes I
    could connect to my mysql databases using the following settings:
    JDBC URL: jdbc:mysql://localhost:3306/test
    Driver Name: MySQL Connector J
    using the following Java path and file:
    C:\CFusionMX\wwwroot\WEB-INF\lib\mysql-connector-java-3.0.17-ga-bin.jar
    Now these settings give me the following error:
    "Connection verification failed for data source: javaserver
    []java.sql.SQLException: SQLException occurred in JDBCPool
    while attempting to connect, please check your username, password,
    URL, and other connectivity info.
    The root cause was that: java.sql.SQLException: SQLException
    occurred in JDBCPool while attempting to connect, please check your
    username, password, URL, and other connectivity info"
    Any suggestions on this would also be welcome.
    Thanks again to everyone for their help.
    Sincerely,
    Graham A. Kerby

  • How to connect to a MySQL database in another server

    Dear friends,
    I am using Oracle SQL Developer 1.5.3 and I need to connect to a MySQL database located in another server.
    I am trying to create a new connection, informing connection name, username and password. Supposing that "Hostname" is the IP server address, I click on "Choose database", but I always receive the following error message: "Status : Failure - Cannot connect to MySQL server".
    Please tell me what I should do to solve this situation. Thanks in advance.
    Best regards,
    Franklin

    You need to configure your mysql database to accept connection from your PC for the user you used.
    For example,
    GRANT ALL ON *.* TO 'someuser'@'somehost';
    FLUSH PRIVILEGES;

  • Can APEX/ORACLE connect to a mysql database?

    Hi
    Just wondered whether APEX and ORACLE could connect to mysql database. I may have a requirement to link to a mysql database and retrieve the data and wondered if APEX could do this.
    Thanks

    Hi
    Apex sits within the Oracle database. Oracle can connect to a mysql database via a database link so yes this is certainly possible. We connect extensively to an Informix database here actually. This is really an oracle question though so you just need to look in the documentation for the CREATE DATABASE LINK command and for setting up the actual connection.
    If you need more help let me know.
    Cheers
    Ben

  • Connect to a mysql database with Oracle 9i

    Hello,
    how can I connect to a non_oracle-database in "Oracle 9i".
    I created a ODBC data source. In Oracle8 I needed OCA. But in 9i I believe the OCA is replaced by another thing.
    I wanted to connect in SQL*PLUS with:
    username/password@odbc:mysql
    But I get the error: ora-03121 "no interface driver connected - function not performed".
    How can I connect to another database?

    I've solved the DW problem by changing the site folders from
    'db' to 'wwwroot' e.g. 'C:\CFusionMX\db\' is now
    'C:\CFusionMX\wwwroot\
    However I'm now back to my original problem. I've lost my
    mqysql connection in CF Adminstrator. Before I made these changes I
    could connect to my mysql databases using the following settings:
    JDBC URL: jdbc:mysql://localhost:3306/test
    Driver Name: MySQL Connector J
    using the following Java path and file:
    C:\CFusionMX\wwwroot\WEB-INF\lib\mysql-connector-java-3.0.17-ga-bin.jar
    Now these settings give me the following error:
    "Connection verification failed for data source: javaserver
    []java.sql.SQLException: SQLException occurred in JDBCPool
    while attempting to connect, please check your username, password,
    URL, and other connectivity info.
    The root cause was that: java.sql.SQLException: SQLException
    occurred in JDBCPool while attempting to connect, please check your
    username, password, URL, and other connectivity info"
    Any suggestions on this would also be welcome.
    Thanks again to everyone for their help.
    Sincerely,
    Graham A. Kerby

  • An unidentified error has occured? trying to connect with database for forms

    I am new to website development and have been using dreamweaver for my website.
    I am using WAMP server and have all my files on the host.
    In dreamweaver when i add the database details:
    connection name : connlogin
    mySQLserver: localhost
    username: root
    password:
    select database:
    when i go to choose a database i get the error "an unidentified error has occurred"???
    i try typing the database name and click test and still get the same error messages. all the tutorials i have been following say it should show the databases...
    Just for clarity i have created my database and tables. I need to link my forms to the database.
    I have searched online on various forums and cant seem to find a solution that works.
    if anyone can help it will be much appreciated.
    Thanks

    Log into phpMyAdmin.  Right hand frame, look for Privileges at the top.  Can you verify that either % (wildcard) or "localhost" is listed for the user under the "host" field? And that the user has either all privileges or the necessary privileges on the database.

  • Need to re-download PHP Event Calendar with MySQL Database

    How do I re-download PHP Event Calendar with MySQL Database purchased earlier.  I need link without having to repurchase.

    This has nothing to do with Adobe or Dreamweaver.  Contact the company from whom you purchased your extension or widget.
    Nancy O.

  • MySQL "An unidentified error has occurred"

    I have just purchased Dreamweaver within the bundle of Master Collection CS5.5 Educational.
    I have been using Dreamweaver since UltraDev days. However I have come up against this problem after installing Dreamweaver and trying to connect.
    "An unidentified error has occurred"
    I have used a few programs to identify what messages are being sent out and it appears that nothing is actually being sent from Dreamweaver.
    I setup the site fine, so I can transfer files back and forth to the web server. The database is on a different server, and I can use MySQL Query to connect to the database from the same PC.
    I can't seem to find what the issue is. I tried multiple mysql databases on different servers and the same issue. It seems Dreamweaver is not doing anything when I hit Test.
    Any ideas?
    Andrew

    Well, I may be a little late on this answer... but maybe it will help. After a few hours of messing with this; I FINALLY figured it out.
    First of all, you have to have your site settings as such:
    Step One
    Remote Server Settings
    Server Name: *Insert Name
    Connect using: FTP
    FTP Address: yourdomain.com
    Username: yourusername
    Password: yourpassword
    Root:
    Web URL: http://yourdomain.com
    Step Two
    Testing Server Settings
    Server Name: *Insert Name
    Connect using: FTP
    FTP Address: yourdomain.com
    Username: yourusername
    Password: yourpassword
    Root:
    Web URL: http://yourdomain.com
    Click on the Advanced tab
    Testing server
    Server Model: PHP MySQL
    Step Three (this is the tricky part, lol)
    Click on file, then click New.
    Create a NEW, I repeat... NEW PHP page.
    Let it sit.
    Step Four
    Now enter your remote SQL settings.
    Not sure why... but this worked for me after HOURS of:
    "An unidentified error has occurred"

  • Cannot connect to the phone system. An unidentified error has occurred, Please try again.

    Issue:  Lync 2013 users with remote call control enabled cannot connect to the phone system.  When the user logs into Lync, they see an exclamation in the bottom right corner
    with this error.
    Error:  Cannot connect to the phone system.  An unidentified error has occurred, Please try again.  If the problem continues, please contact your support team.
    Environment: 
    1 site:  Site1
    2 Pools:
    1. Lync 2010
    Trusted application is added here for the site.
    2. Lync 2013
    Avaya phone system:  AES r6-1-2-32-0
    I have not moved the trusted application to the Lync 2013 pool yet, but my understanding is that it should still work since it’s in the site.  Is my understanding on this correct?  (All of my other trusted applications do work for Lync 2013
    users & none of them have been moved yet. Remote Call Control is the only one that does not work.)
    This is from the uccapi log.  This is just from the user logging in, not actually making a call.  Below are the items that I think are important, however, I don’t know how to interpret it to determine if the problem is on the Lync side or
    the Avaya side.  Here’s a summary:
    SIP/2.0 100 Trying
    Authentication-Info: TLS-DSK qop="auth", opaque="5FD217E1", srand="E05700E2", snum="9", rspauth="f308eae87c0bbe64a1ab213574776cbdf9823ab6", targetname="lync03.domain.com",
    realm="SIP Communications Service", version=4
    From: <sip:[email protected]>;tag=bbb282ebbd;epid=a86d5b0a29
    To: <sip:[email protected]>
    Call-ID: 9eb0d23a3b8f4e0eafc6c6da622fbecf
    CSeq: 1 INVITE
    Via: SIP/2.0/TLS 10.155.48.96:61472;ms-received-port=61472;ms-received-cid=1FA400
    Server: http%3A%2F%2Fwww.microsoft.com%2FLCS%2FUdcAgent
    Content-Length: 0
    SIP/2.0 200 OK
    Authentication-Info: TLS-DSK qop="auth", opaque="5FD217E1", srand="15C0F9A2", snum="13", rspauth="4fd891e39a33e902fb1cec5d980e5bf0ccb172a0", targetname="lync03.domain.com",
    realm="SIP Communications Service", version=4
    From: <sip:[email protected]
    >;tag=bbb282ebbd;epid=a86d5b0a29
    To: <sip:[email protected]
    >;tag=A7A45C856ECD79121A1827265ABBD7F6
    Call-ID: 9eb0d23a3b8f4e0eafc6c6da622fbecf
    CSeq: 1 CANCEL
    Via: SIP/2.0/TLS 10.155.48.96:61472;ms-received-port=61472;ms-received-cid=1FA400
    Server: http%3A%2F%2Fwww.microsoft.com%2FLCS%2FUdcAgent
    Content-Length: 0
    SIP/2.0 487 Request terminated
    Authentication-Info: TLS-DSK qop="auth", opaque="5FD217E1", srand="F46EC133", snum="14", rspauth="1d92718caa4f61d967faa46a5c256aafa8b4e740", targetname="lync03.domain.com",
    realm="SIP Communications Service", version=4
    From: <sip:[email protected]
    >;tag=bbb282ebbd;epid=a86d5b0a29
    To: <sip:[email protected]
    >;tag=A7A45C856ECD79121A1827265ABBD7F6
    Call-ID: 9eb0d23a3b8f4e0eafc6c6da622fbecf
    CSeq: 1 INVITE
    Via: SIP/2.0/TLS 10.155.48.96:61472;ms-received-port=61472;ms-received-cid=1FA400
    ms-diagnostics: 5002;reason="Request was cancelled";AppUri="http%3A%2F%2Fwww.microsoft.com%2FLCS%2FUdcAgent";source="lync03.
    domain.com"
    Server: http%3A%2F%2Fwww.microsoft.com%2FLCS%2FUdcAgent
    Content-Length: 0

    Hi Suelizy,
    To better understand the issue, I would like to collect the following information for troubleshooting:
    1. Do you mean the Lync 2010 user can connect to the Phone System?
    2. What’s next hop pool of the application?  
    In a mixed environment, you must set the next hop pool to be the Lync Server 2013 pool.
    Best regards,
    Eric

  • An unidentified error has occurred

    I have been unable to create a database connection in
    dreamweaver to my MySql server. Each time I receive the message "an
    unidentified error has occurred".
    I can use pure php code to create a connection successfully:
    <?php
    $username = "root";
    $password = "password";
    $hostname = "localhost";
    $dbh = mysql_connect($hostname, $username, $password)
    or die("Unable to connect to mysql");
    print "connected to mysql<br>";
    $selected = mysql_select_db("test",$dbh)
    or die("Could not select first_test");
    if (mysql_query("insert into test_table values('5')")) {
    print "successfully inserted record";
    else {
    print "Failed to insert record";
    mysql_close($dbh);
    ?>
    This works, I can successfully insert a record. However, if I
    try and create a connection in Dreamweaver with these same
    variables, I receive the message "an unidentified error has
    occurred". I have tried, deleting the _mm connection scripts folder
    and recreating them. I have used the mx2004 updater, I have tried
    all document types... nothing seems to work...
    any suggestions?

    Kamesh192 wrote:
    > i am trying to do a db connect in Dreamweaver 8 and i am
    getting an error
    > saying "An unidentified error has occurred."
    You don't say which server model or database you're using. If
    it's
    PHP/MySQL, see this detailed answer that I gave a couple of
    days ago:
    http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?catid=263&threadid=1322939#47 99212
    David Powers, Adobe Community Expert
    Author, "The Essential Guide to Dreamweaver CS3" (friends of
    ED)
    Author, "PHP Solutions" (friends of ED)
    http://foundationphp.com/

  • An unidentified error has occurred - solved

    Dreamweaver has always had this particularly unhelpful error message ('An unidentified error has occurred') when failing to connect to a data source. I've been beating my head against a wall for a week now trying to discover why just one of my sites was failing to connect to a MySQL database (and only on the testing server) in design view. It turns out that I had inadvertently caused a problem with a custom .htaccess written for friendly urls.
    If you are using mod_rewrite you must not affect the _mmServerScripts folder, created by DW in your web root. I have now added this before my main rewrite rules:
    #end rewriting process for special folders
    RewriteRule ^(admin|_mmServerScripts)($|/) - [L]
    Hope it helps someone else.
    Ed

    Kamesh192 wrote:
    > i am trying to do a db connect in Dreamweaver 8 and i am
    getting an error
    > saying "An unidentified error has occurred."
    You don't say which server model or database you're using. If
    it's
    PHP/MySQL, see this detailed answer that I gave a couple of
    days ago:
    http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?catid=263&threadid=1322939#47 99212
    David Powers, Adobe Community Expert
    Author, "The Essential Guide to Dreamweaver CS3" (friends of
    ED)
    Author, "PHP Solutions" (friends of ED)
    http://foundationphp.com/

Maybe you are looking for