Access a remote mysql server

Hi,
Is it possible to access a mysql server which is in a remote computer other than the computer where the java programming is running. Plz tell me how to do that.
Thanks a lot,
Chamal.

Yes - use the MySQL type IV JDBC driver to make a connection to any database, including remote ones. It's free to download. Do a Google search on MySQL JDBC.
MOD

Similar Messages

  • How to contact remot mysql server

    hello everyone
    I am programming a java application,needing to contact remote mysql server, how should i do?
    for example:
    the mysql server ip is:192.168.0.1
    user:chengshwu
    password:123456
    what driver should i select?how should i writing the classForName() and DriverManager.getConnection
    thanks for you help

    what driver should i select?mysql driver offcourse from here
    http://servlet.java.sun.com/products/jdbc/drivers
    how should i writing the
    classForName() and DriverManager.getConnectionhere is a good tutorial which explains.
    http://java.sun.com/docs/books/tutorial/jdbc/basics/connecting.html
    thanks for you helpyou welcome

  • Php connection to remote mysql server

    Hi,
    I've stragne problem using php 4.3.10 with Sun One 6.1 on Solaris 9. The connection to a remote mysql server fail. I've correct grants in both servers and the php.ini is setting to permit no limit connection to databases. the code:
    $host='my-remote-server.com';
    $link1=mysql_connect($host,"bla","blabla");
    if$db1 = mysql_select_db("LOGIN",$link1);
    $link = mysql_connect("localhost","bla","blabla");
    $db = mysql_select_db("LOGIN",$link);
    The remote connection fail but the local one works. When i work with another server Sun One 6 in Solaris 8 , everthing work wonderfull with the same deffinitions, it can connect the remote databases but the others machines can't connect the solaris 8 machine. i think there is something wrong in the solaris 9 or/and sun one 6.1 deffinition it avoid remote connection. The problem i don't know what may be wrong, which setting may affect tcp connections from web application in solaris 9/sun one 6.1 plataform.

    we found the problem finally and may be useful for someone. Using the solaris 9 network snifer (snoop) we found that the default php timeout connection for mysql doesn't work ,this value is 60 in the php.ini . After 4 or 5 miliseconds php application closes the connection when it runs from the webserver , running from the shell it doesn't happen.The answer from the other server arrived after 20 or 30 milisecods then the connection to the databases fails. The solution is to put unlimited tiemout , mysql_connection_timeout=-1 then it success to connect the remote mysql server correctly. May be problem without timeout connection in case the other server doesn't answer, then application may wait forever or untill the system or webserver take out the application. I didn't check this posibilty, mainly i'm interesting the applications can work and write in the remote databases. If this definition cause problem as application waiting connection we always can try with another value greater than 60.

  • Connecting to remote mysql server

    Hi all,
    Been having problems connecting to a remote mysql database. Everytime i run the servlet I get the following :
    Communication link failure: java.io.EOFException, underlying cause: null
    I've been google'ing for a while and it seems the usual respone is that the connection has timed out, but this happens everytime I try to connect so I don't really see how that applies to this particular problem. Here's part of he code I'm using.
    Class.forName( "org.gjt.mm.mysql.Driver").newInstance();
    Connection db = DriverManager.getConnection("jdbc:mysql://hostname/databasename", "username", "password");I'm using Tomcat 4.1.30 and mysql-connector-java-3.0.15-ga-bin.jar ( and I've also tried with mysql-connector-java-2.0.14-bin.jar). Any advice would be greatly appreciated.

    Here's the complete error message including the stack trace. Just to specify a little more:
    - SQL server is alive and running
    - Specifying IP address instead of name results in same error (Same when adding port 3306)
    - Running the servlet using tomcat 4.1.30 (http://localhost:8080/servlet/dbtest) with mysql-connector-java-3.0.15-ga-bin.jar
    - Not sure if there are any firewalls in between (There probably is one, but not on this end.) I'll try to get in touch with the server admin this week.
    java.sql.SQLException: Communication link failure: java.io.EOFException, underly
    ing cause: null
    ** BEGIN NESTED EXCEPTION **
    java.io.EOFException
    STACKTRACE:
    java.io.EOFException
            at com.mysql.jdbc.MysqlIO.readFully(MysqlIO.java:1394)
            at com.mysql.jdbc.MysqlIO.readPacket(MysqlIO.java:1413)
            at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:625)
            at com.mysql.jdbc.Connection.createNewIO(Connection.java:1782)
            at com.mysql.jdbc.Connection.<init>(Connection.java:450)
            at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java
    :411)
            at java.sql.DriverManager.getConnection(DriverManager.java:512)
            at java.sql.DriverManager.getConnection(DriverManager.java:171)
            at dbtest.service(dbtest.java:37)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
    icationFilterChain.java:247)
            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
    ilterChain.java:193)
            at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
    alve.java:256)
            at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex
    t.invokeNext(StandardPipeline.java:643)
            at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
    a:480)
            at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
            at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
    alve.java:191)
            at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex
    t.invokeNext(StandardPipeline.java:643)
            at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
    a:480)
            at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
            at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:
    2422)
            at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
    ava:180)
            at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex
    t.invokeNext(StandardPipeline.java:643)
            at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatche
    rValve.java:171)
            at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex
    t.invokeNext(StandardPipeline.java:641)
            at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
    ava:163)
            at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex
    t.invokeNext(StandardPipeline.java:641)
            at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
    a:480)
            at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
            at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
    ve.java:174)
            at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex
    t.invokeNext(StandardPipeline.java:643)
            at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
    a:480)
            at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
            at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:19
    9)
            at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
    :828)
            at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proce
    ssConnection(Http11Protocol.java:700)
            at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java
    :584)
            at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP
    ool.java:683)
            at java.lang.Thread.run(Thread.java:534)
    ** END NESTED EXCEPTION **
            at com.mysql.jdbc.MysqlIO.readPacket(MysqlIO.java:1446)
            at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:625)
            at com.mysql.jdbc.Connection.createNewIO(Connection.java:1782)
            at com.mysql.jdbc.Connection.<init>(Connection.java:450)
            at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java
    :411)
            at java.sql.DriverManager.getConnection(DriverManager.java:512)
            at java.sql.DriverManager.getConnection(DriverManager.java:171)
            at dbtest.service(dbtest.java:37)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
    icationFilterChain.java:247)
            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
    ilterChain.java:193)
            at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
    alve.java:256)
            at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex
    t.invokeNext(StandardPipeline.java:643)
            at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
    a:480)
            at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
            at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
    alve.java:191)
            at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex
    t.invokeNext(StandardPipeline.java:643)
            at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
    a:480)
            at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
            at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:
    2422)
            at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
    ava:180)
            at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex
    t.invokeNext(StandardPipeline.java:643)
            at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatche
    rValve.java:171)
            at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex
    t.invokeNext(StandardPipeline.java:641)
            at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
    ava:163)
            at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex
    t.invokeNext(StandardPipeline.java:641)
            at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
    a:480)
            at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
            at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
    ve.java:174)
            at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex
    t.invokeNext(StandardPipeline.java:643)
            at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
    a:480)
            at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
            at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:19
    9)
            at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
    :828)
            at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proce
    ssConnection(Http11Protocol.java:700)
            at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java
    :584)
            at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP
    ool.java:683)
            at java.lang.Thread.run(Thread.java:534)

  • VDI 3.1 Big Endian vs Little Endian: VDI Cluster to Remote mysql server

    Hello,
    We are implementing a Dual Data center VDI environment and with that, will be using VCS to Cluster a remote Mysql instance. My question, if the VDI Cluster is on x86 (Little Endian), can the remote Mysql DB be on Sparc (Big Endian)?
    Thanks,

    The endian matching is only a requirement for the management and data nodes of a MySQL cluster. If you are going to be using a remote MySQL DB, the VDI servers will be connecting to that remote MySQL DB as a client connection, and there is no requirement for clients to match the endian type.
    http://dev.mysql.com/doc/refman/5.1/en/mysql-cluster-limitations-exclusive-to-cluster.html

  • Need to access/connect Remote Unix server from Java

    Please any one give me a direct solution for connecting a remote Unix server through telnet connection from java application. Thanks in advance..

    If I run the below program codes, in the console it is asking to enter username and password in manual but I need to give it automatically.
    The highlighted "root" is entered by the user manually using keyboard.
    Expected:
    I mean the username, password and some action is set to be automatic, so that it should not ask the user to enter the input from keyboard.
    import java.awt.Robot;
    import java.awt.event.KeyEvent;
    import java.io.InputStream;
    import java.io.OutputStream;
    import java.io.FileOutputStream;
    import java.io.IOException;
    import org.apache.commons.net.telnet.TelnetClient;
    import org.apache.commons.net.telnet.TelnetNotificationHandler;
    import org.apache.commons.net.telnet.SimpleOptionHandler;
    import org.apache.commons.net.telnet.EchoOptionHandler;
    import org.apache.commons.net.telnet.TerminalTypeOptionHandler;
    import org.apache.commons.net.telnet.SuppressGAOptionHandler;
    import org.apache.commons.net.telnet.InvalidTelnetOptionException;
    import java.util.StringTokenizer;
    * This is a simple example of use of TelnetClient.
    * An external option handler (SimpleTelnetOptionHandler) is used.
    * Initial configuration requested by TelnetClient will be:
    * WILL ECHO, WILL SUPPR
    * ESS-GA, DO SUPPRESS-GA.
    * VT100 terminal type will be subnegotiated.
    * <p>
    * Also, use of the sendAYT(), getLocalOptionState(), getRemoteOptionState()
    * is demonstrated.
    * When connected, type AYT to send an AYT command to the server and see
    * the result.
    * Type OPT to see a report of the state of the first 25 options.
    * <p>
    * @author Bruno D'Avanzo
    public class UnixConnect implements Runnable, TelnetNotificationHandler
        static TelnetClient tc = null;
         * Main for the TelnetClientExample.
        public static void main(String[] args) throws IOException
            FileOutputStream fout = null;
            /*if(args.length < 1)
                System.err.println("Usage: TelnetClientExample1 <remote-ip> [<remote-port>]");
                System.exit(1);
            String remoteip = "192.168.20.11";
            int remoteport;
            if (args.length > 1)
                remoteport = (new Integer(args[1])).intValue();
            else
                remoteport = 23;
            try
                fout = new FileOutputStream ("spy.log", true);
            catch (Exception e)
                System.err.println(
                    "Exception while opening the spy file: "
                    + e.getMessage());
            tc = new TelnetClient();
            TerminalTypeOptionHandler ttopt = new TerminalTypeOptionHandler("VT200", false, false, true, false);
            EchoOptionHandler echoopt = new EchoOptionHandler(true, false, true, false);
            SuppressGAOptionHandler gaopt = new SuppressGAOptionHandler(true, true, true, true);
            try
                tc.addOptionHandler(ttopt);
                tc.addOptionHandler(echoopt);
                tc.addOptionHandler(gaopt);
            catch (InvalidTelnetOptionException e)
                System.err.println("Error registering option handlers: " + e.getMessage());
            while (true)
                boolean end_loop = false;
                try
                    tc.connect(remoteip, remoteport);
                    Thread reader = new Thread (new UnixConnect());
                    tc.registerNotifHandler(new UnixConnect());
                    reader.start();
                    OutputStream outstr = tc.getOutputStream();
                    byte[] buff = new byte[1024];
                    int ret_read = 0;
                    do
                        try
                            ret_read = System.in.read(buff);
                            if(ret_read > 0)
                            outstr.write(buff, 0 , ret_read);
                            outstr.flush();
                        catch (Exception e)
                            System.err.println("Exception while reading keyboard:" + e.getMessage());
                            end_loop = true;
                    while((ret_read > 0) && (end_loop == false));
                    try
                        tc.disconnect();
                    catch (Exception e)
                              System.err.println("Exception while connecting:" + e.getMessage());
                catch (Exception e)
                        System.err.println("Exception while connecting:" + e.getMessage());
                        System.exit(1);
         * Callback method called when TelnetClient receives an option
         * negotiation command.
         * <p>
         * @param negotiation_code - type of negotiation command received
         * (RECEIVED_DO, RECEIVED_DONT, RECEIVED_WILL, RECEIVED_WONT)
         * <p>
         * @param option_code - code of the option negotiated
         * <p>
        public void receivedNegotiation(int negotiation_code, int option_code)
            String command = null;
            if(negotiation_code == TelnetNotificationHandler.RECEIVED_DO)
                command = "DO";
            else if(negotiation_code == TelnetNotificationHandler.RECEIVED_DONT)
                command = "DONT";
            else if(negotiation_code == TelnetNotificationHandler.RECEIVED_WILL)
                command = "WILL";
            else if(negotiation_code == TelnetNotificationHandler.RECEIVED_WONT)
                command = "WONT";
            System.out.println("Received " + command + " for option code " + option_code);
         * Reader thread.
         * Reads lines from the TelnetClient and echoes them
         * on the screen.
        public void run()
            InputStream instr = tc.getInputStream();
            try
                byte[] buff = new byte[1024];
                int ret_read = 0;
                do
                    ret_read = instr.read(buff);
                    if(ret_read > 0)
                       System.out.print(new String(buff, 0, ret_read));
                while (ret_read >= 0);
            catch (Exception e)
                System.err.println("Exception while reading socket:" + e.getMessage());
            try
                tc.disconnect();
            catch (Exception e)
                System.err.println("Exception while closing telnet:" + e.getMessage());

  • Error trying to access photos on mySql server.

    I have a hosting account on godaddy with a with a domain named charliegooddog.org.  I have a simple photo gallery that uses PHP to access photos using a MySQL database.  The app works fine on my machine.  I created a MySQL database with the same table as on my machine.  I uploaded my photo gallery to the  domain on godaddy and updated the file that's used to pass on the hostname, database, username, and password info.
    When I bring up the photo gallery  I get this error:
    [RPC Fault faultString="Security error accessing url" faultCode="Channel.Security.Error" faultDetail="Destination: DefaultHTTP"]
        at mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::faultHandler()[C:\autobuild\3.2.0\frameworks\p rojects\rpc\src\mx\rpc\AbstractInvoker.as:220]
        at mx.rpc::Responder/fault()[C:\autobuild\3.2.0\frameworks\projects\rpc\src\mx\rpc\Responder .as:53]
        at mx.rpc::AsyncRequest/fault()[C:\autobuild\3.2.0\frameworks\projects\rpc\src\mx\rpc\AsyncR equest.as:103]
        at DirectHTTPMessageResponder/securityErrorHandler()[C:\autobuild\3.2.0\frameworks\projects\ rpc\src\mx\messaging\channels\DirectHTTPChannel.as:389]
        at flash.events::EventDispatcher/dispatchEventFunction()
        at flash.events::EventDispatcher/dispatchEvent()
        at flash.net::URLLoader/redirectEvent() 
    Any ideas?

    Hi,
    Flash player is surrounded with sand box security and will not allow untrusted/unknown domains in to tyour application.
    This is not an error or bad side of flex applications, its for your app security..
    Solution: You can either use a crossdomain.xml file in your application.
    In crossdomain.xml specify the following
    <allowdomain>your domain</allowdomain>
    OR
    you can also use the following syntax in your mxml code..
    security.allowdomain(http://photosdomain");
    thats it..

  • How do I allow access of my mysql server to !localhost?

    I just did an nmap of an arch box running mysql, but port 3306 isn't open. mysql is certainly running and local processes have no problem accessing it.
    There are no entries in rc.allow or rc.deny, and I'm not running iptables.

    /etc/my.conf
    # Don't listen on a TCP/IP port at all. This can be a security enhancement,
    # if all processes that need to connect to mysqld run on the same host.
    # All interaction with mysqld must be made via Unix sockets or named pipes.
    # Note that using this option without enabling named pipes on Windows
    # (via the "enable-named-pipe" option) will render mysqld useless!
    skip-networking

  • Is there one tell  me the correct way to access remote SQL server

    Hi
    I have tried to access a remote SQL server by many ways but all failed
    here is my trying :
    String driver = "com.microsoft.jdbc.sqlserver.SQLServerDriver";
    String url= "jdbc:microsoft:sqlserver://217.52.98.102:1433";
    Class.forName(driver);
    Connection conn = DriverManager.getConnection(url,"sa"," " );
    String selectStr = "select * from FleetWatch..table_name";
    Statement st = conn.createStatement();
    ResultSet rs = st.executeQuery(selectStr);
    DriverManager.registerDriver(new com.microsoft.jdbc.sqlserver.SQLServerDriver());
    // connect to the DB by using the driver.
    String connString = "217.52.98.102:1433;databasename=FleetWatch";
    String strDBConnect = "jdbc:microsoft:sqlserver://" + connString;
    conn = DriverManager.getConnection(strDBConnect, "sa", "");
    String driver = "com.microsoft.jdbc.sqlserver.SQLServerDriver";
    Class driverClass = Class.forName(driver, true, jdbcLoader);
    Driver currDriver = (Driver)driverClass.newInstance();
    Properties prop = new Properties();
    prop.setProperty("sa", (String)paras.get("sa");
    prop.setProperty("password", (String)paras.get(" ");
    String url= "jdbc:microsoft:sqlserver://217.52.98.102:1433";
    conn = currDriver.connect((String)paras.get(url, prop);
    pls tell if you know the correct way to access a remote sql server and
    access it befor tell me its step to ensure it's connect

    String driver = "com.microsoft.jdbc.sqlserver.SQLServerDriver";
    String url= "jdbc:microsoft:sqlserver://your servername:1433";
    Class.forName(driver);
    Connection conn = DriverManager.getConnection(url,"username ","password " );
    this user name and password may be diff becoz if u have only sql authentication then u have to know that user name or it can have windows nt authentication so if it is so then no probs can use ur windows nt login..
    know the server name where ur sqlserver is connected to.
    set the classpath for the sqlserverdrivers jar files which u have downloaded where ur working on.
    then it works
    i did the same and worked for me.
    try it.

  • How to determine is it SMB - Remote SAM server access , false positive?

    How to determine is it SMB - Remote SAM server access , false positive?

    5583-0 right?
    I would say that there are different types of false positives. Do you mean, how do I determine if what what was seen actually represents an attempt to access the SAM database? I would start by looking at MySDN (or whatever Cisco is calling it these days...intellishield?). It's often not very up to date and missing information, but it's an easy thing to check. Here's the link for this sig:
    https://intellishield.cisco.com/security/alertmanager/ipsSignature?signatureId=5583&signatureSubId=0
    If you look at the benign triggers, you'll see that it suggests that this only matters if the source is external. It's up to you whether to research any further. If you really want to inspect the signature further, you'll have to add one of the "log packets" actions. This will save a network trace when it fires again and then you can open it up in Wireshark, which understands SMB and will probably decode it enough for you to verify whether it actually was an attempt to access the "Remote SAM server".

  • Accessing remote SQL server

    Hello, all.
    This is the first time I've ever needed to access a remote SQL server, and I'm getting an attribute validation error for the cfquery tag.
    The CFQUERY tag currently opens as:
    <cfquery name="[queryName]" debug="1" username="#User#" password="#Pass#" dbserver="[SQL Server IP]" dbname="[databaseName]">
    What are the attributes that I need in order to remotely access the database?
    Thanks,
    ^_^

    You need to setup a datasource in the CF admin pointing to the remote
    server, using dbServer will not work.
    Mack

  • Monitor mysql server in jsp

    i am writing an application that transfers data toa remote mysql server.
    I want to implement a checking routine which willl check if the the remote server is working or not. If working, then only will the data be sent, else the user will be alerted.
    How to write this code.
    Neone got any ideas
    Any help will be deeply appreciated

    How are you accessing the MySQL Server and what language?
    Are you using JDBC???
    If so, simply have a method to perform a JDBC Connection to the Server with valid authentication information. This will return the Connection object or throw exception. If the exception is SQL Exception, then it means that the Server is not available for JDBC calls. With this logic you can alert the Users.
    Hope this helps.
    Thanks and regards,
    Pazhanikanthan. P

  • Help needed please, Local - Remote mySQL transition

    Hi all,
    Ok here is my problem.
    I have wamp installed on my local system and have created a database in mySQL. I use this connection in my Dreamweaver cs3 site.
    I have just requested a mysql database from my hosting company and they have given me a sql address e.g sql34.hostdomain.net, a username and password.
    My problem is I know how to connect to this through dreamweaver, but how do I transfer my local database to my remote mysql server?

    learner2site wrote:
    My problem is I know how to connect to this through dreamweaver, but how do I transfer my local database to my remote mysql server?
    You export it and then import it on the server. It's all in the phpMyAdmin start page... If you have no direct access to the admin UI, check for a respective PHP script that contains the necessary SQL queries.
    Mylenium

  • Applet connection to remote MySql - HELP

    Hi:
    I've got an applet that connects to a MySql database (4.1).
    As long as I try to connect to the MySql server on the machine the applet is running on (my development computer), everything works great.
    I'm using this jar as the MySql connector:
    mysql-connector-java-5.0.3-bin.jar
    I can connect to the remote MySql server (also 4.1) with MySql Administrator and also with .NET, no problem.
    BUT - when I try to connect to the remote MySql server from the Applet I get an 'access denied' error.
    I also tried it from the applet set up as a Java application with a main function. If I try to connect to the local MySql server, no problem. If I try to connect to the remote machine I get a 'connection timeout' error.
    I should add that when I connect to the remote machine from MySql Administrator, the connection is almost instantaneous and with no problem.
    Any help would be greatly appreciated.

    Well, I've been over it and over it. I've read and tried everything I could find.
    No matter what I do it won't connect.
    The applet is signed, I don't need to learn how to do that.
    The popup comes up and asks if I want to run it: I click YES
    The connection works fine for the local database but not the remote one.
    Again, I can connect to the remote one with MySql Admin just fine using the same parameters.
    import java.*;
    import java.sql.*;
    import java.util.*;
    import java.security.*;
    public class DBaseConn extends java.applet.Applet {
        private java.sql.Connection  oCn = null;   
        private final String MySqlUrl = "jdbc:mysql://555.555.555.555:3306/mysql";
        private final String MySqlserverName= "555.555.555.555";
        private final String MySqlportNumber = "3306";
        private final String MySqldatabaseName= "mysql";
        private final String MySqluserName = "SomeUser";
        private final String MySqlpassword = "SomePassword";
        private final String selectMethod = "cursor";
        public String sErr = "";
        public void init() {
            // TODO start asynchronous download of heavy resources
        public java.sql.Connection OpenMySqlDBase() throws Exception
           try
                Class.forName("com.mysql.jdbc.Driver");
                //oCn =  DriverManager.getConnection(MySqlUrl, MySqluserName, MySqlpassword);
                oCn = (Connection)AccessController.doPrivileged(new PrivilegedAction() {
                    public Object run()
                        try
                            return DriverManager.getConnection(MySqlUrl, MySqluserName, MySqlpassword);                       
                        catch(Exception exp)
                            sErr = exp.getMessage();
                            return null;
                if(oCn!=null)
                    sErr = "MySQL Connection SUCCEEDED!!";
                    return oCn;
                else
                    if(!sErr.equals(""))
                        sErr = "MySQL Connection FAILED with ERROR: " + sErr;
                    else
                    sErr = "MySQL Connection FAILED!";
                    return null;
           catch(Exception exp)
               sErr = "MySQL Connection FAILED With ERROR!:\r\n" + exp.getMessage();
               return null;
    }The error is:
    Communications link failure due to underlying exception:
    ** BEGIN NESTED EXCEPTION **
    java.net.SocketException
    MESSAGE: java.security.AccessControlException: access denied (java.net.SocketPermission 555.555.555.555:3306 connect,resolve)
    STACKTRACE:
    , , ,

  • Classic ASP web app trying to acces remote SQL Server.

    Hi
    I have a classic asp web application which accessing a remote SQL Server 200. I am trying to connect using the following connection string in Global.asa file. For some reason not connecting to the remote SQL Server 200. The string is as follows.
    Session("dsn") = "provider=SQLOLEDB;app=AppName;server=SERVERNAME;uid=;password=;database=DBName;Trusted_Connection=No"
    Session("datadsn") = "data provider=SQLOLEDB;app=AppName;server=SERVERNAME;uid=;password=;database=DBName;Trusted_Connection=No"
    Session("server") = "SERVERNAME"
    Let me know if I am missing something or doing something wrong?
    Varun

    SQL Server Error Log has no error
    But I found couple of errors in Application EventViewer
    The VB Application identified by the event source logged this Application Globalization: Thread ID: 5312 ,Logged: -2147168246 New transaction cannot enlist in the specified transaction coordinator.  Error Source: Microsoft OLE DB Provider for SQL Server->ValidateUser
    A caller has attempted to propagate a transaction to a remote system, but MSDTC network DTC access is currently disabled on machine 'MyMachineName'. Please review the MS DTC configuration settings.
    Varun

Maybe you are looking for

  • How can I use the headphone jack as an audio input?

    I have a new macbook pro 13".  I want to use the headphone jack as an audio in device, but I do not have the option in sound preferences to choose it as an option for audio in. HELP!! Thanks.

  • Actual and relative file paths - CS4(mac)

    Is there a way to save your file so that it ALWAYS looks for the relative paths of all its content? My issue is that when i xfer the prproj file to another computer it asks me to reconnect everything. The other computer has exactly the same folder st

  • Color to FCP with a 3d rendered movie wacky output

    I have a movie I rendered in Cinema 4d that I was color correcting in Color. I had it imported into FCP, then sent to Color, did my corrections/stylization, rendered and sent back to FCP. Problem is, once it's back in FCP, the movie shows the correct

  • Webi Prompt Order

    I am trying to use the Rebean SDK to set the order of prompts in a XI3.1 SP3 Webi document.  This document does contain universe prompts, i.e. a table has a self join with @Prompt().  Looking through the Javadocs, I see a PromptOrder class, but it on

  • Crashes on FTP connect

    I'm running DW 6.1 on a Mac (recently upgraded to a MacMini with OS X 10.4.10). When I click the icon to connect for ftp upload it says that I am connected to the host and then when "retrieving remote folder information" DW suddenly shuts down with n