Connecting to mysql on another cfserver

I have two cf servers. 1 a 7 and 1 a 8.
I want to connect the CF8 server to a mysql datasource on the
CF7 server
I have listed the Database, Server by ip (numbers and . only)
port user and pw
Connection verification failed for data source: ldiline137
java.sql.SQLException: Timed out trying to establish
connection
The root cause was that: java.sql.SQLException: Timed out
trying to establish connection

You have an applet too, and it's also trying to access a database on the local system? Well, both of you, the applet security rules don't allow that. You have to sign the applet to make it work.

Similar Messages

  • Connect to mysql in another machine

    Hi, there,
    I have two database. One is oracle in my local machine, another is mysql in another machine. Now, I made a jsp program to control the two database concurrently. When I connect to mysql, I got errors:
    Internal Servlet Error:
    javax.servlet.ServletException: Server configuration denies access to data source
    at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:459)
    at jspForOracle._0002fjspForOracle_0002fmodiProcess_0002ejspmodiProcess_jsp_1._jspService(_0002fjspForOracle_0002fmodiProcess
    at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:177)
    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318)
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
    at org.apache.tomcat.core.Handler.service(Handler.java:286)
    at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
    at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797)
    at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
    at org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection(Ajp12ConnectionHandler.java:166)
    at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
    at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
    at java.lang.Thread.run(Thread.java)
    My local machine is : Redhat7.1, tomcat and oracle
    Mysql machine is : Slackware, tomcat and mysql
    I can ping and ssh the mysql machine. And I grant the mysql table for the permission to access the table. But still the same thing. What the problem?
    Thank you in advance
    peter

    in your error message:
    javax.servlet.ServletException: Server configuration denies access to data source
    The server being referred to is the mysql server. Mysql has uid and password like all db's, but in addition, it has security that is sensitive to the source of the connection. Just because you have a valid uid and password doesn't mean that you will be able to connect from anywhere.
    This data is in the user table of the mysql database, which is included by default in every mysql installation. What you need to do is edit the privileges of the user account that you're using to connect to mysql from the jsp. There is some good documetation on user administration here:
    http://www.mysql.com/documentation/mysql/bychapter/

  • Connecting to MySQL from another machine.

    I use following code to connect to my database.it works
    String databaseUrl = "jdbc:mysql://localhost:3306/test";
    but when i use
    String databaseUrl = "jdbc:mysql://192.168.0.205:3306/test";{
    it gives error (192.168.0.205 being my ip address)
    error
    message from server : "Host TRAIN5" is not allowed to connect to this MySQL server.
    Is that because of my connection string?

    It is because of your configuration. It has to do with user permission.
    Read the MySQL manual, again (you have read it, haven't you?), and pay close attention to user administration and the "GRANT" statement.

  • MySQL - Another 'Can't connect through mysql.sock' question...

    Hey, folks.
    So I'm trying to install MySQL to run with PHP on my PowerBook G4 (running 10.4.7, non-server edition) to use it to test out a shopping cart program for a website I'm building.
    I had it working as of Monday, when I installed it, got all the permissions set, built the necessary tables, and changed the root password (and logged in just to make sure it worked before retiring for the night)...but today I realized that I had somehow installed the wrong version of MySQL (I connected to it earlier today and discovered it was 4.026 - and I needed to be running MySQL 4.1.20, in order to be running the same version as my webhost).
    So I decided to upgrade. I downloaded and installed the 4.1.20 file, followed the directions about creating the system tables, changed permissions via sudo chown -R mysql:mysql data...and now, when I go to change the root user password (just to make sure it's still the same as it was), I get the following error:
    error: 'Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)'
    Check that mysqld is running and that the socket: '/tmp/mysql.sock' exists!
    This error also occurs when I try to simply startup MySQL. I also now find I can't connect via MySQL Admin, either - it gives me the same error. Pinging the host works, however.
    Sooo...anyone have any ideas? I've read up on the forums re: Apple changing the socket to /var/mysql/mysql.sock as of 10.4.4, but it seems that would have affected me earlier this week when I was running the previous version of MySQL, too (I certainly haven't upgraded the OS since then).
    Regardless, I can't connect through MySQL Admin using the /var/mysql/mysql.sock socket, anyway...nor the standard /tmp/mysql.sock.
    Any thoughts on what might be causing this? I should confess, I'm well-versed in DOS (ugh), but UNIX is not really my strong suit, so I'm still figuring out how to get around in the Terminal...
    Thanks so much for any input you can give me!
    (Oh, one more thing, since it'll probably come up - I'm not currently connecting via PHP, but I will be eventually. Right now, I just want to be able to change my root password, and login from the Terminal)!
    Thanks again!\
    PowerBook G4 1GHz 15   Mac OS X (10.4.7)  

    Alright, folks.
    Somehow my computer has fixed itself. After wiping the mysql directories entirely, then reinstalling, I was still getting the same error.
    After going back to the original "MySQL-On-Mac" site at Marc Liyanage's entropy.ch site & following some of the instructions there, somehow my problem seems to have fixed itself.
    I wish I could tell you what the solution was (to benefit anyone else having this problem), but since I was simply following the unix commands listed there (without much explanation, at times, as to what they were doing), I just know that somehow it worked.
    (But if I had to make a guess, I think it had to do with starting the server via sudo ./bin/mysqld_safe &)...

  • Can't connect PHP/MySQL 404 error

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

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

  • Problems with connecting my Mysql db to visual studio 2013

    Hey all,
    I tried connecting my MYSQL db to my visual studio 2013
    after installing all db connectors from MYSQL and tried following multiple guides its still not working.
    I first had VS Express but it seems the express versions don't support that so then i went to get a VS Professional 2013 (trial i think) and this didn't work either. 
    Does anyone know any solution other than installing connectors (reinstalled them like 2 times already) or getting another VS ?
    Thanks in advance 

    Hi Weffke,
    The forum supports VS setup and installation. And I think your issue isn't related to the forum.
    >>after installing all db connectors from MYSQL and tried following multiple guides its still not working.
    I think your issue is more about MYSQL. So I suggest you post your issue to the related forum below.
    http://forums.mysql.com/list.php?174
    I will move the thread to off-topic forum. Thanks for your understanding.
    Regards.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Heterogeneous Connectivity to Mysql

    Hi Fellows.
    I need to connect to a Mysql Database online from Oracle 10G (Create a link) I read some article regarding Heterogeneous Connectivity to other non Oracle Databases without ODBC or DNS. Does anybody has deploy this Oracle feature???? Does Oracle 10G has another choice to connect to other relational databases............If somebody has information to connect to Mysql Database wil be great!!!!
    Thanks a lot.!!!!
    Emmanuel.

    I'm still really confused by why you're talking about DNS. DNS is just a mechanism for resolving host names into IP addresses and that happens only at connection time and only if you have specified a host name.
    Yes, normally ODBC is not the most efficient API in the world-- it was designed as a least common denominator API and designed with SQL Server in mind. That said, if you want to use Heterogeneous Services, you would either need ODBC, OLE DB, or a Transparent Gateway. If you are under time constraints, I'm going to wager that you don't have the time and budget to go out an purchase a Transparent Gateway. So you'd either have to use ODBC or OLE DB. I do not know if there is a MySQL OLE DB provider that runs on SUSE-- I would tend to doubt it. Which leaves just ODBC, assuming you've got a MySQL ODBC driver that runs on SUSE.
    Personally, I've used Generic Connectivity to connect to DB2 and SQL Server databases from an AIX box (using commercial ODBC drivers) and to Excel files from a Windows box. I've never personally connected to a MySQL database, though if you're talking about ODBC connections, it doesn't really matter what database you are connecting to.
    Justin

  • PHP can't connect to MySQL socket

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

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

  • SSL connections to MySQL

    I'm setting up Filr 1.0.1 and using external MySQL server instead of the MySQL Appliance. I have set up the MySQL server to allow SSL connections as described in http://dev.mysql.com/doc/refman/5.5/...nnections.html.
    Can Filr be configured to use SSL connection for MySQL?

    Joseph Marton wrote:
    > This has not been tested and isn't supported, though that's not to say
    > you might not be able to get it to work. If the Filr, MySQL, and
    > Search appliances are all on the internal network another way to
    > secure the connections would be to put the appliances into their own
    > VLAN. This would keep the traffic separated from all other network
    > traffic and help secure it.
    A followup to this... another option is to add a second NIC to the Filr
    appliance. This way you could have one NIC connected to your internal
    or DMZ network, and the other could be connected to an isolated VLAN
    which only has the MySQL & Search appliances connected. Today we don't
    support multiple NICs in the Filr appliance, but that's coming in Filr
    1.1.
    Your world is on the move. http://www.novell.com/mobility/
    BrainShare 2014 is coming. http://www.novell.com/brainshare/

  • Connections to MYSQL

    hi
    This is probably a stupid java question but it is my first real live java project so I am worrying about issues I didn't bother about in class.
    I am writing JSP for a website. I have beans which connect to MYSQL.
    In the java class which makes up the bean I have a method (updateMember)which instantiates another class which also connects to MYSQL to write an audit record(audit.addAudit(..)).
    Now all this works nicely. surprise surprise.
    My question is when I exit the bean method "updateMember" does the connection in the audit class get destroyed automatically or should I be calling a method to close the connections? I don't want to leave lots of loose connections laying around to cause problems. Neither do I want to add lots of code I don't need.
    the code in the bean is:
    if (flag=="P")// paid membership - one month
               auditData auditIt = new auditData();
               boolean aOk=auditIt.addAudit(member.getMemberID(),price,"M");
            }A simple yes or no will do.
    Thank you
    Lena

    This depends, of course, on your database connection pool provider. It is similar in some way to how the HTTP sessions are invalidated after some period of inactivity.
    Please see here for more info:
    http://jakarta.apache.org/commons/dbcp/configuration.html
    http://homepages.nildram.co.uk/~slink/java/DBPool/

  • Connecting to MySQL in Dreamweaver8

    Hey guys i've got Dreamweaver8 and wamp5 installed, my
    problem is coming when i try to connect to MySQL through
    Dreamweaver. I've followed through all Adobe tutorials including
    the Blog tutorial but nothing seem to be working. My web server is
    working fine so is my database , i know this because i've tried to
    connect to the database using PHP command and it's working fine.
    This is how i've defined my web site:
    Local Info:
    Website Name: MyWebSite
    URL:
    http://localhost/MyWebSite
    Server Technology: PHP MySQL
    How do you want to work with your files during development:
    Edit and test locally(my testing server is on this computer.
    Where on your computer do you want to store your files?
    C:\wamp\www\MyWebSite
    What URL would you use to browse to the root of your site?
    http://localhost/MyWebSite
    Copy to another machine: No
    For Remote info Access i've put None.
    NB Basic Site Definition
    Please tell me where i'm getting it wrong because when i try
    to make the connection, i believe my snag is at the testing server
    but i've tried various paths.
    Connection Name: Myconn
    MySQL Server: localhost
    User: Username
    Password: mypassword
    When i try to select the database i'm getting the
    unidentified error message 404 which suggests possible causes of
    connection failure to paths etc.
    Please help me i've worked the whole week hoping for a
    breakthrough and have tried all sorts of different techniques
    suggested by others on forums and websites to no avail.
    Does dreamweaver have limitations with PHP/MySQL or is there
    something that i'm missing.
    Ramson

    RamsTheDon wrote:
    > Thanks David for the suggestions, I think i can almost
    rule the firewall out as i've disabled it, that leaves the wamp
    port.
    > How do i tell wamp5 to use port 3306? I'm kinda novice.
    I don't know. I have never used wamp5. I install Apache, PHP,
    and MySQL
    independently. A lot of the so-called "simple all-in-one
    solutions" have
    non-standard settings, so you need to ask in a wamp5 support
    area.
    David Powers, Adobe Community Expert
    Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
    Author, "PHP Solutions" (friends of ED)
    http://foundationphp.com/

  • Need help on remote connection to mysql

    Hi all,
    I am trying to make a remote JDBC connection from a servlet running on one linux server to mySql running on another Linux Server.
    I get the following error :
    java.sql.SQLException: Cannot connect to MySQL server on <Linux_server2_IP>:3306. Is there a MySQL server running on the machine/port you are trying to connect to? (java.net.ConnectException)
    I did the following on mySql on Linux-2 :-
    GRANT ALL PRIVILEGES TO myuser@<myLinux-1-IP> IDENTIFIED BY 'pwd' WITH GRANT OPTION;
    I checked the user table and it had an entry for 'myuser' with my myLinux1-IP. The entry had 'N' for all the priv fields.
    I manually updated the priv fields to 'Y' and did :
    FLUSH PRIVILEGES;
    I also added an entry to host table to see if that helped.
    I restarted my mySqld.
    None of these worked !
    I'd really appretiate your help...
    Thanks,
    Spotty8A.

    It doesn't sound like a user privilege problem... that will generally give you a USER_AUTHENTICATION_FAILED error or something along those lines. It seems more like the driver can't detect a MySQL server on the IP/port you're specifying.
    Assuming you didn't change the default port to anything different, the most likely source of the problem is your connection URL... you might double check that the IP you specified is correct.

  • Connection with MYSQL ODBC

    Post Author: wrkwinter
    CA Forum: Data Connectivity and SQL
    Hi,   I am having problem with conecting Crystal Report XI to the MYSQL Server. I am using Mysql Connector/ODBC 3.51. I configured ODBC connection . Once i connect to MYSQL server thru Crystal Rpeort Everything works fine but after 5-10 minutes if i refresh the report I get following error.
    "Failed to retrieve data from the database"DetailsHY000:&#91;MySQL&#93;&#91;ODBC 3.51 driver&#93;&#91;mysqld-4.1.22-standard-log&#93;&#91;MySQl server has gone away&#91;Database vendor code :2006&#93; and if i log off and relog on to database everything works fine like for another 5-10 minutes and after that same ERROR  But if i use MYSQL Query Browser to connect to the database. I don't have any problem like that.  Can please explain any reason for that.....Thanks

    Post Author: synapsevampire
    CA Forum: Data Connectivity and SQL
    Check out:
    http://www.mysqltalk.org/server-has-gone-away-vt158777.html
    I'd guess that you're timing out or exceeding the number of connections.
    -k

  • Connection to MySQL via ODBC not working

    Hello all together,
    I've got a problem with the ODBC connection to MySQL. The connection via ODBC is established and things like tnsping are working.
    When I select some data within the SQL*Plus environment, I get no real result. For example "select table_name from all_tables@mysql;" returns nothing.
    My entry in listener.ora:
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME=odbc_mysql)
    (ORACLE_HOME=D:\oracle\product\11.0.1\db_1)
    (PROGRAM=dg4odbc)
    My entry in tnsnames.ora:
    MYSQL =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
    (CONNECT_DATA = (SID=odbc_mysql))
    (HS=OK)
    The initodbc_mysql.ora in ORACLE_HOME/hs/admin/:
    HS_FDS_CONNECT_INFO = odbc_mysql
    HS_AUTOREGISTER = TRUE
    HS_DB_NAME = hsodbc
    I tried some modifications but I still get no data from mysql database. When I try "select * from customer@mysql;" I get the correct number of records, the correct column names, but the content is always "¬¬¬¬". The odbc driver works, because with MS Access I can fetch the data. I'm using Oracle 11g Release 1 EE and MySQL ODBC 5.1.5.
    What could be the reason for this?
    Greetings,
    Joerg

    created in my UTF-8 Mysql DB your table and inserted a record; the select shows:
    SQL> select * from "movieclass"@mysql;
    idClass
    ClassName
    123
    H e l l o
    As you can see the content is there, the "space" between the letters is related to unicode. Each character is interpreted by 2 bytes and SQL*Plus wrongly displays both. Using iSQLPLus or SQLDeveloper does not show the "space" between the letters.
    Here the data type mapping:
    SQL> desc "movieclass"@mysql;
    Name Null? Type
    idClass NUMBER(3)
    ClassName NOT NULL NVARCHAR2(50)
    What's the exact version of DG4ODBC you're using? 11.1.0.7?
    According to the listener file you're using DG4ODBC on Windows. There was a high/low byte issue in DG4ODBC for Windows. This issue is fixed in 11.1.0.7 and a certain patch. So I recommend you to get first the 11.1.0.7 patchset (if you don't already have it installed):
    6890831 Oracle Database Family: Patchset
    11.1.0.7.0 PATCH SET FOR ORACLE DATABASE SERVER 11.1.0.7.0
    and then please apply also the latest patch:
    8689191 Oracle Database Family: Patch
    ORACLE 11G 11.1.0.7 PATCH 16 BUG FOR WINDOWS 32 BIT 11.1.0.7.0
    There was a high/low byte issue
    Edited by: kgronau on Aug 11, 2009 10:28 AM

  • I would like to know how i can share my music using an UPnp protocole. I have an Imac but when i'm chosing the option share my file i can connect my mac to another network reader . it seems that the protocole used is not UPnp. I need this to be in UPnp.

    I would like to know how i can share my music using an UPnp protocole. I have an Imac but when i'm chosing the option share my file i can connect my mac to another network reader . it seems that the protocole used is not UPnp. I need this to be in UPnp. does somebody can help ?

    Google "upnp mac"

Maybe you are looking for

  • Password protected Excel sheet on the application server (dataset)

    How can I create password protected excelsheet on the application server? Is it possible through DATASET? How can I modify below statement to create xls password protected? OPEN DATASET dest FOR OUTPUT IN BINARY MODE. Regards K

  • HT201363 l have forgotten the answers to the securit questione

    Hi my name is pouria my apple id ******* l have forgotten the answers to the securit questione and there is no rescue email  security questions Please connect me to the security department Security is a security section to connect me please help me r

  • How to see an IDOC type & FM, "WHERE USED LIST"?

    Hi Experts, I nned to create an IDOC of WMTCID01 and message type is WMTOCO. I wanna to see that, Where Where this IDOC was used(especially, in "Z" objects) so that, I can get some idea abt. it and do my coding. So, let me know that, How to see this

  • +44 Global Sim Card

    I have followed the instructions in setting up a global sim card. It was fairly easy after a few support phone calls. http://http://www.telestial.com/userguides/ipad_data_userguide_en.pdf However, I cannot seem to get the IPad to accept the internati

  • Sending reports output to email

    Hi , I would like to send output of a report to email insted of printer. Are there any setting to be done. We are running on 11i. Thanks Kiran