Problem: connect Dreamweaver CC to a local MySQL database

Nice day

I use Dreamweaver CC to create a dynamic site, on a Mac (but I had the same problem when I tried on Windows), with MAMP as a local server Apache with MySQL.

the main folder of my site is .../htdocs/mysite/ so in the server settings, I set myself as follows:

Schermata 2016-03-05 alle 10.44.21.pngSchermata 2016-03-05 alle 10.44.27.png

And this is a job for the live preview.

BUT

When I try to connect Dreamweaver to MySQL, it seems that the error:

Schermata 2016-03-05 alle 10.54.19.png

If you ask, MAMP use 8888 for Apache http and 8889 for mysql. I can change these for 80 and 3306 by default (and write only 'localhost'), but I have the same problem. Infact if dreamweaver did not find a connection message speaks of a 404 error, so I don't think that the problem is on the configuration of the port.

In another post, I found on the internet about this, someone said that it is a problem between different versions of php or mysql in dreamweaver and MAMP. But I have the same problem on windows with XAMPP.

Can you help me?

Thank you!

This PHP: mysql_pconnect - manual should answer your question.

In case you do not understand, the said function is not valid for PHP version 7. If you install PHP version 5.4, you won't a problem except on the track when PHP7 becomes public.

Tags: Dreamweaver

Similar Questions

  • Connect to a Local MySQL database

    I am creating a java application and need to use a database. I decided to use a local MySQL database. I'm having difficulties to establish a connection to the database. I have analyzed various codes for this problem on the internet and wrote my own code similar to those that I analyzed. I don't see why the code below does not work because I also put the path to the connector inside the variable classpath to the environment. I did everything that was suggested on various jdbc tutorial sites and yet my code does not work. Any suggestion would be appreciated. I already posted a thread on this issue before, but the suggestions really helped and I'm hoping to get different results this time.

    These are the errors I get:

    January 2, 2011 18:10:22 homeworkorganizer. Database addCourse
    GRAVE: null
    java.lang.ClassNotFoundException: com.mysql.jdbc.Driver
    in java.net.URLClassLoader$ 1.run(URLClassLoader.java:202)
    at java.security.AccessController.doPrivileged (Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
    to Sun.misc.Launcher$appclassloader$ AppClassLoader.loadClass (Launcher.java:301)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
    at java.lang.Class.forName0 (Native Method)
    at java.lang.Class.forName(Class.java:169)
    to homeworkorganizer. Database.addCourse (Database.java:28)
    at homeworkorganizer.test.main(test.java:17)
    January 2, 2011 18:10:22 homeworkorganizer. Database addCourse
    GRAVE: null
    java.sql.SQLException: no suitable driver found for jdbc:mysql://localhost/homework
    at java.sql.DriverManager.getConnection(DriverManager.java:602)
    at java.sql.DriverManager.getConnection(DriverManager.java:185)
    to homeworkorganizer. Database.addCourse (Database.java:51)
    at homeworkorganizer.test.main(test.java:17)
    BUILD successful (total time: 0 seconds)


    Code I have:


    /*
    * To change this template, choose Tools | Templates
    * and open the template in the editor.
    */

    package homeworkorganizer;
    import java.sql. *;
    import java.util.ArrayList;
    import java.util.Properties;
    import java.util.StringTokenizer;
    import java.util.logging.Level;
    to import java.util.logging.Logger;
    java.net import. *;


    /**
    *
    Nisha * @author
    */
    public class {Database



    private String ipAdress = "localhost";

    ' public void addCourse (String courseNumber, String courseCredit, String courseName) {}
    try {}
    Class.forName ("com.mysql.jdbc.Driver");

    } catch (ClassNotFoundException ex) {}
    Logger.getLogger (Database.class.getName ()) .log (Level.SEVERE, null, ex);

    }

    Server String = "jdbc: / /" + ipAdress + "/"; "."
    String dbName = "homework."

    String url = Server + dbName;

    Properties props = new Properties ();
    props.setProperty ("user", "Christian");
    props.setProperty ("password", "pass");

    Connection Conn;
    Statement st;
    String columns = "course_number, no_credits, course_name;
    String sqlInsrt = "insert current ()" + columns + ") values";

    try {}

    Conn = DriverManager.getConnection ("jdbc:mysql://localhost/homework", "root", "kish");
    System.out.println ("connected to the database\n");
    St = conn.createStatement ();


    Add the user to the database
    String userInfo = "(""+ courseNumber +" ', '"+ courseCredit +" ', '"+ courseName +" ")"; "

    Use executeUpdate when our statement will change the database.
    st.executeUpdate (sqlInsrt + userInfo);


    }
    catch (SQLException ex) {}
    Logger.getLogger (Database.class.getName ()) .log (Level.SEVERE, null, ex);
    }

    }
    }

    According to the error, your class cannot find driver class... This means that you have not added the mysql connector jar file in your build or lib path... Please check the same...

  • How to connect to the local mysql database

    Hello, I can't find the mysql database. I have set up the server in Dreamweaver CM³, but cannot view the database.

    Help, please. Don't know what info you need.

    Yes, I guess DMX is. I do not pay much attention to these things.

    If you use PHP 5.6, so be sure that your external server also uses 5.5 or 5.6. As a beginner, it is unlikely that you will use and features that differ between 5.5 and 5.6.

  • MySQL database does not work on the remote server help!

    Hello

    I'm kinda a noob in PHP/MySQL and I can't get my MySQL database to work on my remote server (it works on my local server).

    On the spot, I have:

    Connection name: local

    MySQL server: localhost

    User name: root

    Password: root

    Database: wbgt

    From a distance, I have:

    Created a database to help:

    username: wbgt (although it displays it as "web100-wbgt")

    password: root

    I also imported the MySQL database on the remote server.

    When I try to access any page that uses the MySQL database, it comes in white!

    Any ideas?

    Thanks in advance for your help

    Eddie

    Thank you! I got confused that it was not connect to the remote server.

    If someone else is in a similar situation as I was.

    I use heartinternet.co.uk

    1. export your local MySQL database
    2. create a MySQL database on your remote web hosting provider
    3. go to manage (or something similar) and import the MySQL database on your web hosting provider remotely
    4. in dreamweaver go to database data, +, MySQL connection Panel (or change your original database)
    5. Connection name - what you want
    6. MySQL - Localhost Server
    7. User name - whatever your remote site named the database in my case, I entered admin, but the user name is admin-web100-8
    8. Password - password for your remote database
    9. Database - go in manage your databases click on database and on the left side you should see the name of your database. in my case it was web100-admin-8 new (I couldn't connect on the ddatabase distance so I had to enter manually)
    10. Click fact put and it should work!
  • How is PDF link to MySQL database - it done?

    How can I link the data entered in a PDF form dynamic to reside in a MySQL database. I do not seem able to make a connection.

    Here are the steps that follow:

    Mandatory / new login / name: testdata; Description: database OLEDB / Connection String: build: SQL Native Client / Source of data: location of the database SQL (.mwb); Connect to the server: localhost

    But when I test the connection I get an initialization error and the connection times out.

    So my question is: How do you connect the PDF fields in a MySQL database? and what I am doing wrong? Is this a feasible process to bind also the boxes to check and other areas to a database? How you would bind the data dynamically - say if I choose a certain area in a menu drop down, certain other fields will fill through the database?

    Thanks again for all the help and insight.

    Shai

    PS I have attached a sample form (not yet completely integrated to accept some data) and a database of MySQL example (no data on the inside).

    A number of things before you go this route.

    1. you will need to load the driver ODBC for MySQL on your machine and each machine that will want to use this form.

    2. next, you need a DSN that creates the link between the MySQL DB table and your form.

    3. If you use Acrobat to run the form, then you can proceed. If you are using the drive it does not support DB connections free player expand the document using LiveCycle Reader Extensions Server.

    Have you met all these criteria?

    Paul

  • connect to local mySQL using MySQL Administrator

    Hello
    I had a problem using a mySQL database remote dreamweaver php development (some tables wouldn't show in the database view). So I decided to install mySQL locally on my development computer.

    I use mySQL administrator to manage my databases and do not know how to connect to the new local mysql, I installed?

    Since the installation of mysql 5.0, I created not databases etc, so I guess I need to do first to get something to you connect to...?

    Secondly, should what details I use to connect:

    Host name: localhost?
    Port: 3306?

    All the tips, much appreciated.

    Hi Nick, thanks for your response.

    I am familiar with the connection to the DW databases, connection strings etc. But when I create a connection that is "successfully tested", the database tables do not show in the window DW database?

    That's why I installed mysql locally, hopefully resolve this issue. However, I could not connect to mysql using mysql administrator to manage. It was my request in the post.

    I now setup users mysql server scripts and a database. Now I can conenct help mysql administrator using the host name 'root', etc..

    Thanks for your comments. Can I after return and get some feedback so I still don't see tables via my local mysql also server DW.

    Thanks again.

  • Can't connect to local mysql

    What could be the cause of the mysql socket to refuse connections - I get the following error:

    MySQL Error 2002
    Unable to connect to the local MYSQL server through socket ' / var/mysql/mysql.sock' (2)

    I use the login name: con1
    Sever localhost
    Mysql username - and several other attempts
    Mysql password - and several other attempts
    Database (go for it)

    I'm on Mac OS x 10.4.10, using Dreamweaver 8.
    I changed my configuration file to run the PHP and it works very well; I was able to set up the tables MySQL using Terminal Server. So what else should I look for? My local info, remote info, and the test server info all point to my local site directory. Prefix of the URL is http://127.0.0.1/~myname/

    Thanks for any help.

    David, your answer was most useful. Find how to make the symbolic link was my next challenge, but I got it and it works! In the Terminal, I found that there was a /tmp/mysql.sock but nothing to/var/mysql/same not a directory for mysql. So I had to create one and then make the link - s. I also had to use the superuser permissions to do.

    On a Mac 10.4.10, here's what you do - in the Terminal
    CD /var/
    sudo mkdir mysql
    CD (to return to the root)
    sudo ln-s /tmp/mysql.sock /var/mysql/mysql.sock

    At any time, you can run the ls command to see all the files and directories in the current directory, so you can keep track of you. Always press cd (enter) to return to the home (root).

    Now when I return to Deamweaver, I can set up a connection to my databases and see them in the list!

    Thanks again for your help, David. I'll check your PHP books too!
    TEDRA

  • Unable to connect to the local MySQL server through socket ' / var/lib/mysql/mysql.sock' #2 #.

    I received an email indicating that HP does not show me as having all printers which explains why I have not received information of driver update I guess.  But when I typed in HP4500 G510, I received the following error message:

    Unable to connect to the local MySQL server through socket ' / var/lib/mysql/mysql.sock' #2 #.

    And since I don't know beans about computers, I don't have any idea what it means.

    Because I had to pick a topic, I chose the one above, but no other choices were nowhere near cover.

    Hi mac64.
    I understand you are trying to register for updates for your Officejet 4500. I can certainly help you with this.

    I'll give you a link to try to register for driver updates. Please let me know if it's the same link you used and if this works differently for you, simply click on the following link: the HP driver updates.

    Hope to hear from you soon

  • PhpMyAdmin can not connect to local MySql server on Windows 7

    PhpMyAdmin can not connect to local MySql server on Windows 7

    This issue is beyond the scope of this site (for consumers) and to be sure, you get the best (and fastest) reply, we have to ask either on Technet (for IT Pro) or MSDN (for developers)
    *
  • How to connect a mysql database host by OVH on Dreamweaver CC

    How to connect a mysql database host by OVH on Dreamweaver CC 2015?

    I can't.

    This good another document to make reference to:

    https://www.SiteGround.co.UK/tutorials/Dreamweaver/dreamweaver_mysql.htm>

    Good luck.

  • How can I connect Dreamweaver to MySQL?

    I am trying to connect Dreamweaver to MySQL. I have my downloaded datatbase. The instructions I'm following say click on the + button at the top left of the databases, control panel and choose MySQL connection. I see not all + all over my screen. The instructions may be for MAM Pro that I did not. How can I connect when I could not find the connection menu? I'm on a Mac. Thanks for any help.

    Hello

    Try following this tutorial - http://www.webassist.com/support/documentation/how-tos/creating_db_connection.php.

    The + button is displayed in the image of 'connect to your database' article tutorial, (top left).

    PZ

  • Problem, try to connect to oracle to mysql database

    Hello

    I need assistance with the configuration, I'm trying to connect to an oracle 11 g r2 windows to a linux mysql 5.5, but I'm having a lot of questions, here, I'll put the configuration.
    How thanks for everyone's trying to help me!

    Here is my tnsname.ora:
    tnsnames.ora # Network Configuration file: C:\app\Administrador\product\11.2.0\dbhome_1\network\admin\tnsnames.ora
    # Generated by Oracle configuration tools.

    ORACLR_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = CIP)(KEY = EXTPROC1521))
    )
    (CONNECT_DATA =
    (SID = CLRExtProc)
    (PRESENTATION = RO)
    )
    )

    ORCL =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP) (HOST = gabriel-103eff2)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = orcl)
    )
    )
    ms_connection =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = tcp) (HOST = gabriel-103eff2)(PORT=1521))
    (CONNECT_DATA = (SID = ms))
    (HS = OK)
    )



    Here's my listener.ora:

    listener.ora # Network Configuration file: C:\app\Administrador\product\11.2.0\dbhome_1\network\admin\listener.ora
    # Generated by Oracle configuration tools.

    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = CLRExtProc)
    (ORACLE_HOME = C:\app\Administrador\product\11.2.0\dbhome_1)
    (= Extproc PROGRAM)
    (ENVS = "EXTPROC_DLLS=ONLY:C:\app\Administrador\product\11.2.0\dbhome_1\bin\oraclr11.dll")
    )
    (SID_DESC =
    (SID_NAME = ms)
    (ORACLE_HOME=C:\app\Administrador\product\11.2.0\dbhome_1)
    (PROGRAM = dg4odbc)
    )
    )

    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = CIP)(KEY = EXTPROC1521))
    (ADDRESS = (PROTOCOL = TCP) (HOST = gabriel-103eff2)(PORT = 1521))
    )
    )

    ADR_BASE_LISTENER = C:\app\Administrador



    Here's the init*.ora:

    # This is an example of initialization file of the agent that contains the HS settings
    # necessary for the database to ODBC gateway

    #
    # HS init parameters
    #
    HS_FDS_CONNECT_INFO = ms
    HS_FDS_TRACE_LEVEL = debug


    #
    # Required for the non-Oracle system environment variables
    #
    #set < varenv > = < value >



    Here is the fix:



    Oracle Corporation - SEXTA-FEIRA 17:18:13.390 January 4, 2013


    Heterogeneous Agent release
    11.2.0.1.0




    Oracle Corporation - SEXTA-FEIRA 17:18:13.390 January 4, 2013

    Version 11.2.0.1.0

    Hgogprd entries
    HOSGIP to 'HS_FDS_TRACE_LEVEL' returned 'debug '.
    Hgosdip entries
    default assignment of 50 HS_OPEN_CURSORS
    setting HS_FDS_RECOVERY_ACCOUNT or 'RECOVER '.
    HS_FDS_RECOVERY_PWD layout to the default
    default HS_FDS_TRANSACTION_LOG of HS_TRANSACTION_LOG layout
    HS_IDLE_TIMEOUT layout to the default 0 value
    layout by default HS_FDS_TRANSACTION_ISOLATION of "READ_COMMITTED".
    layout default HS_NLS_NCHAR to "UCS2".
    layout HS_FDS_TIMESTAMP_MAPPING default 'DATE '.
    layout HS_FDS_DATE_MAPPING default 'DATE '.
    layout HS_RPC_FETCH_REBLOCKING failure to 'ON '.
    HS_FDS_FETCH_ROWS layout without '100 '.
    parameter HS_FDS_RESULTSET_SUPPORT default 'FALSE '.
    parameter HS_FDS_RSET_RETURN_ROWCOUNT default 'FALSE '.
    parameter HS_FDS_PROC_IS_FUNC default 'FALSE '.
    parameter HS_FDS_CHARACTER_SEMANTICS default 'FALSE '.
    parameter HS_FDS_MAP_NCHAR if there is no 'TRUE '.
    setting HS_NLS_DATE_FORMAT or 'YYYY-MM-DD HH24:MI:SS ".
    parameter HS_FDS_REPORT_REAL_AS_DOUBLE default 'FALSE '.
    HS_LONG_PIECE_TRANSFER_SIZE layout without "65536".
    parameter HS_SQL_HANDLE_STMT_REUSE default 'FALSE '.
    parameter HS_FDS_QUERY_DRIVER if there is no 'TRUE '.
    parameter HS_FDS_SUPPORT_STATISTICS default 'FALSE '.
    The HS_FDS_QUOTE_IDENTIFIER parameter is not defined
    setting in HS_KEEP_REMOTE_COLUMN_SIZE if 'OFF '.
    parameter HS_FDS_GRAPHIC_TO_MBCS default 'FALSE '.
    parameter HS_FDS_MBCS_TO_GRAPHIC default 'FALSE '.
    Default value of 32 assumed for HS_FDS_SQLLEN_INTERPRETATION
    HS_CALL_NAME_ISP layout "gtw$: SQLTables; GTW$: SQLColumns. GTW$: SQLPrimaryKeys. GTW$: SQLForeignKeys. GTW$: SQLProcedures. GTW$: SQLStatistics; "gtw$: SQLGetInfo.
    parameter HS_FDS_DELAYED_OPEN if there is no 'TRUE '.
    HS_FDS_WORKAROUNDS layout by default "0".
    Release of hgosdip, rc = 0
    ORACLE_SID is "ms."
    Product information:
    Port RLS / Upd:1 / 0 PrdStat:0
    Agent: Oracle Database Gateway for ODBC
    : Installation
    Class: ODBC, ClassVsn:11.2.0.1.0_0008, Instance: ms
    Release of hgogprd, rc = 0
    Hgoinit entries
    HOCXU_COMP_CSET = 1
    HOCXU_DRV_CSET = 178
    HOCXU_DRV_NCHAR = 1000
    HOCXU_DB_CSET = 873
    HOCXU_SEM_VER = 112000
    Entry hgolofn to 2013/01/04-17: 18:14
    Release of hgolofn, rc = 0 to 2013/01/04-17: 18:14
    HOSGIP to 'HS_OPEN_CURSORS' returned '50 '.
    HOSGIP to 'HS_FDS_FETCH_ROWS' returned '100 '.
    HOSGIP for "HS_LONG_PIECE_TRANSFER_SIZE" returned "65536".
    HOSGIP to 'HS_NLS_NUMERIC_CHARACTER' returned '. "
    HOSGIP to 'HS_KEEP_REMOTE_COLUMN_SIZE' returned 'OFF '.
    HOSGIP for "HS_FDS_DELAYED_OPEN" returns 'TRUE '.
    HOSGIP to 'HS_FDS_WORKAROUNDS' returned '0 '.
    HOSGIP to 'HS_FDS_MBCS_TO_GRAPHIC' returned 'FALSE '.
    HOSGIP to 'HS_FDS_GRAPHIC_TO_MBCS' returned 'FALSE '.
    Invalid value of 32 for HS_FDS_SQLLEN_INTERPRETATION
    treat_SQLLEN_as_compiled = 1
    Release of hgoinit, rc = 0 to 2013/01/04-17: 18:14
    Entry hgolgon to 2013/01/04-17: 18:14
    Reco:0, tflag:0, name: SYSTEM
    Entry hgosuec to 2013/01/04-17: 18:14
    Release of hgosuec, rc = 0 to 2013/01/04-17: 18:14
    HOSGIP to 'HS_FDS_RECOVERY_ACCOUNT' returned 'RECOVER '.
    HOSGIP for "HS_FDS_TRANSACTION_LOG" returns "HS_TRANSACTION_LOG".
    HOSGIP to 'HS_FDS_TIMESTAMP_MAPPING' returned 'DATE '.
    HOSGIP to 'HS_FDS_DATE_MAPPING' returned 'DATE '.
    HOSGIP to 'HS_FDS_CHARACTER_SEMANTICS' returned 'FALSE '.
    HOSGIP for "HS_FDS_MAP_NCHAR" returns 'TRUE '.
    HOSGIP to 'HS_FDS_RESULTSET_SUPPORT' returned 'FALSE '.
    HOSGIP to 'HS_FDS_RSET_RETURN_ROWCOUNT' returned 'FALSE '.
    HOSGIP to 'HS_FDS_PROC_IS_FUNC' returned 'FALSE '.
    HOSGIP to 'HS_FDS_REPORT_REAL_AS_DOUBLE' returned 'FALSE '.
    using the SYSTEM as default value to "HS_FDS_DEFAULT_OWNER".
    HOSGIP to 'HS_SQL_HANDLE_STMT_REUSE' returned 'FALSE '.
    Entry hgocont to 2013/01/04-17: 18:14
    HS_FDS_CONNECT_INFO = "msodbc".
    RC =-1 of HOSGIP for 'HS_FDS_CONNECT_STRING '.
    Entry hgogenconstr to 2013/01/04-17: 18:14
    DSN:msodbc, name: SYSTEM
    OPTN:
    Entry hgocip to 2013/01/04-17: 18:14
    DSN:msodbc
    Release of hgocip, rc = 0 to 2013/01/04-17: 18:14
    Release of hgogenconstr, rc = 0 to 2013/01/04-17: 18:14
    Entry hgopoer to 2013/01/04-17: 18:14
    hgopoer, line 233: had native error 0 and sqlstate IM002; message follows...
    [Microsoft] [ODBC driver manager] Nome da dados nao e found melting nenhum driver padrão especificado {IM002}
    Release of hgopoer, rc = 0 to 2013/01/04-17: 18:14
    hgocont, line 2753: call SqlDriverConnect obtained sqlstate IM002
    Out of hgocont, rc = 28500 to 2013/01/04-17: 18:15 with the ptr error FILE: hgocont.c LINE: 2773 ID: something else that permission is not valid
    Out of hgolgon, rc = 28500 to 2013/01/04-17: 18:15 with the ptr error FILE: hgolgon.c LINE: 781 ID:Calling hgocont
    Entry hgoexit to 2013/01/04-17: 18:15
    Release of hgoexit, rc = 0

    ______________________________________________________

    When I use tnsping ms_connection


    C:\Documents and Settings\Administrador > tnsping ms_connection

    AMT Ping Utility for 32-bit Windows: Version 11.2.0.1.0 - Production on 07-JAN-2
    013 09:04:29

    Copyright (c) 1997, 2010, Oracle. All rights reserved.

    Archives of Parometros books:


    Used o useful TNSNAMES para resolver o apelido
    Contatar trying (DESCRIPTION = (ADDRESS = (PROTOCOL = tcp) (HOST = gabriel-103eff2
    () (PORT = 1521)) (CONNECT_DATA = (SID = ms)) (HS = OK))
    OK (0 ms)





    Thank you very much!!!

    Hello
    The error in your gateway trace file-

    [Microsoft] [ODBC driver manager] Nome da dados nao e found melting nenhum driver padrão especificado {IM002}

    translates-

    Data Source name not found and no driver by default specified

    This means that you don't have a system DSN defined on the Windows machine called "ms", which uses a MySQL ODBC driver to connect to the MySQL database on your Linux machine.
    The system DSN to be used is defined by the parameter-

    HS_FDS_CONNECT_INFO = ms

    Therefore, you must perform the following operations

    -install a driver Windows ODBC de MySQL
    -define a DSN system whichuses this driver to connect to your MYSQL Linux
    -Use this DSN as parameter HS_FDS_CONNECT_INFO

    You must ensure that the DSN can connect to MYSQL without Oracle involved before DG4ODBC can also establish a connection.

    Kind regards
    Mike

  • Problem connecting MySQL

    Operating system: Linux Red Hat v5 (2.6.18 - 8.e15 output kernal.os)
    Cold Fusion: developer Trial Version 8
    MySQL version: 5.0.51a
    MySQL connector (installed in/opt/jrun4/lib): mysql-connector-java - 5.1.6 - bin.jar
    (Verified by sysctl and phpMyAdmin) host name: //juniperweb/jsihome.com
    Port of MySQL to listen (checked through phpMyAdmin): 3306

    Apache web server: works
    PHP: works
    MySQL: works with php
    Cold Fusion: works (works of CFIDE/administrator/index.cfm)

    Data Source settings tried:
    Type: MySQL (4/5)
    CF Data Source Name: junipersys
    Database: junipersys
    Server: //juniperweb/jsihome.com
    Port: 3306
    Username: Web site
    Password: *.

    and:

    Type: other
    CF Data Source Name: junipersys - other
    JDBC URL: jdbc:mysql://juniperweb/jsihome.com:3306 / junipersys
    Class driver: com.mysql.jdbc.Driver
    Username: Web site
    Password: *.

    The two parameters raise the following error:

    Connection verification failed for data source: junipersys-other
    com.mysql.jdbc.CommunicationsException: Communications link failure due to underlying exception:
    * NESTED EXCEPTION OF START *.
    MESSAGE from java.net.ConnectException: connection refused
    STACKTRACE:
    java.net.ConnectException: connection refused
    at java.net.PlainSocketImpl.socketConnect (Native Method)
    at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
    at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
    at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
    at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
    at java.net.Socket.connect(Socket.java:519)
    at java.net.Socket.connect(Socket.java:469)
    at java.net.Socket. (Socket.java:366)
    at java.net.Socket. (Socket.java:209)
    at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:173)
    to com.mysql.jdbc.MysqlIO. (MysqlIO.java:267)
    at com.mysql.jdbc.Connection.createNewIO(Connection.java:2739)
    to com.mysql.jdbc.Connection. (Connection.java:1553)
    at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:266)
    at coldfusion.server.j2ee.sql.pool.JDBCPool.createPhysicalConnection(JDBCPool.java:589)
    to coldfusion.server.j2ee.sql.pool.ConnectionRunner$ RunnableConnection.run (ConnectionRunner. java: 67)
    at java.lang.Thread.run(Thread.java:619)
    * END NESTED EXCEPTION *.
    Last packet sent to the server was there is 0 ms.
    The root cause was that: com.mysql.jdbc.CommunicationsException: Communications link failure due to underlying exception:
    * NESTED EXCEPTION OF START *.
    MESSAGE from java.net.ConnectException: connection refused
    STACKTRACE:
    java.net.ConnectException: connection refused
    at java.net.PlainSocketImpl.socketConnect (Native Method)
    at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
    at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
    at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
    at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
    at java.net.Socket.connect(Socket.java:519)
    at java.net.Socket.connect(Socket.java:469)
    at java.net.Socket. (Socket.java:366)
    at java.net.Socket. (Socket.java:209)
    at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:173)
    to com.mysql.jdbc.MysqlIO. (MysqlIO.java:267)
    at com.mysql.jdbc.Connection.createNewIO(Connection.java:2739)
    to com.mysql.jdbc.Connection. (Connection.java:1553)
    to com.mysql.jdbc.NonReg...

    Any help much appreciated.

    Dan Parchman
    IT technician
    E-mail: [email protected]
    Phone: 435.774.8992
    Web: www.junipersys.com

    Juniper Systems, Inc..
    North West 1700 1132
    Logan, UT 84321
    Phone: 435-753-1881
    FAX: 435-774-8990 or 435-753-1896


    Solution found:

    jump network has been established in the my.conf file, then MySQL rejected all requests for connection to the CF.

  • JDBC connectivity with a mysql database

    I created a MySQL database, but I have problems with communication with the DB in java

    Here is the error

    java.sql.SQLException: no suitable driver found for jdbc:mysql://localhost:3306 / books

    at java.sql.DriverManager.getConnection(DriverManager.java:604)

    at java.sql.DriverManager.getConnection(DriverManager.java:221)

    to displayauthors. DisplayAuthors.main (DisplayAuthors.java:30)

    java.lang.NullPointerException

    to displayauthors. DisplayAuthors.main (DisplayAuthors.java:66)

    BUILD successful (total time: 1 second)

    ---

    I edited windowds system variables

    CLASSPATH

    .; C:\Program Files (x86)\Java\jre7\lib\ext\QTJava.zip

    CLASSPATH1 (note the 1 at the end, I don't want to replace the previous

    ., C:\Program Files (x 86) \MySQL\Connector J 5.1.30\mysql-connector-java-5.1.30-bin.jar

    ---

    Host name: localhost Port: 3306

    User name: root

    password: Tpswsd77? (changed to thios post)

    Stored connection: Instance local MySQL56

    Connection method: Standard (TCP/IP)

    HERE IS THE CODE

    public class DisplayAuthors {}

    Database URL

    public static final String DATABASE_URL = "jdbc:mysql://localhost:3306 / books."

    Launch the application

    Public Shared Sub main (String args [])

    {

    Fitting out = null; corresponds to a connection

    Statement statement = null; query statement

    ResultSet resultSet = null; manages the results

    connect to the database books and database query

    Try

    {

    establish a connection to the database

    connection = DriverManager.getConnection)

    DATABASE_URL, "deitel', 'deitel'sc');

    < defaultstate editor-fold = "collapsed" desc = "comment" >

    DATABASE_URL, 'root', 'Tpswsd77?');

    < / Publisher-trick >

    CREATE statement to query the database

    Statement = connection.createStatement ();

    query database

    resultSet = statement.executeQuery)

    "SELECT authorID, firstName, lastName FROM authors");

    process query results

    ResultSetMetaData metaData = resultSet.getMetaData ();

    int numberOfColumns = metaData.getColumnCount ();

    System.out.println ("Table Authors of books database: \n");

    for (int i = 1; i < = numberOfColumns; i ++)

    System.out.printf ("%-8s\t", metaData.getColumnName (i));

    System.out.println ();

    While (resultSet.next ())

    {

    for (int i = 1; i < = numberOfColumns; i ++)

    System.out.printf ("%-8s\t", resultSet.getObject (i));

    System.out.println ();

    } / / end while

    } / / end try

    catch (SQLException sqlException)

    {

    sqlException.printStackTrace ();

    } / / end of capture

    Finally / / resultSet, statement and connection are closed to this

    {

    Try

    {

    resultSet.close ();

    Statement.Close ();

    Connection.Close;

    } / / end try

    catch (System.Exception Exception)

    {

    exception.printStackTrace ();

    } / / end of capture

    } / / end finally

    } / / main end

    } / / end of class DisplayAuthors

    Given that you seem to be running from netbeans, you would better add the jar to the project libraries...

    And NO, you should NEVER put anything in your system classpath. It's a very bad habit, led to the equivalent of Java of the DLL hell and of course from the moment that you distribute the application to any other machine that's going to fail again.

    Add it instead of the specific CLASSPATH of the application.

    And do not put anything on the class path that has spaces in the name, it is no longer can cause problems, but don't count on that it works.

  • How can I fix an 'Access denied' error when connecting to mySQL database to a site (I'm sure I can get...)

    Hello

    I had a search on the forums and I don't see anyone with the same problem so I apologize if this has been asked before.

    I need to connect a database to a Web site so that members can register and save it to some pages (not all pages - only a 'members only' section).

    I created the database, tested and it works very well (I used XAMMP/PHPmyAdmin).

    In DreamWeaver CS6, I chose the type of document from the page (PHP) and set up the testing server. If I go to site Configuration > server for the site and click on test, it connects successfully. Note that the test server is hosted at the University, that I work - there is a password required, but I entered it on the test set up server and it seems connects very well, as I get the message successfully at this stage.

    When I go to connect the mySQL connection and select the database I get the error "access is denied. The file exists may not, or there could be a permission problem. Make sure you have permission on the server and the server is properly configured. »

    Any ideas? It's driving me crazy!

    I understand that after several unsuccessful searches on Google, so I post the solution here for someone else with the same question that could end up here.

    If you configure your test server in the inetpub/wwwroot/folder then Dreamweaver cannot make changes (such as adding files) unless you are running as an administrator, so it occurred to me that maybe the database connections are also affected.  Of course, as soon as I leave Dreamweaver and restarted as an administrator, I was able to connect to the MySQL database using the databases Panel.  If you don't know how to run a program as an administrator, it is pretty easy: just right click on Dreamweaver icon and select "Run As Administrator" when you start the program.  There are a lot of tutorials out there that can give you the necessary steps for always loads a program as an administrator if you don't do right click every time.

    Version: Dreamweaver CC 2015.

Maybe you are looking for