MYSQL Without JDBC

Is there a way to connect to a MYSQL database without using the JDBC driver?

Like if I wanted to connect to the database using php in the java file like so:
<?
/*--------- DATABASE CONNECTION INFO---------*/
$hostname="localhost";
$mysql_login="myusername";
$mysql_password="mypassword";
$database="mydatabase";
// connect to the database server
if (!($db = mysql_pconnect($hostname, $mysql_login , $mysql_password))){
  die("Can't connect to database server.");    
}else{
  // select a database
    if (!(mysql_select_db("$database",$db))){
      die("Can't connect to database.");
?> and then write the code to a table using java. Is that a possibility?

Similar Messages

  • Connect to MySQL without JDBC

    Hello to everyone,
    Is there any way i can connect to a MySQL database without using JDBC? My web host does not support Java unless i go and buy a dedicated Server package which costs a small fortune so i am trying to find a work-around solution. Is there any way i can access a database by combining Java (locally) and PHP on server-side to get data out of the database and back to the Java piece of software?
    Thanks to everyone who might see or reply to this post

    Hello deeprave, thanks for replying so quick.
    So i guess this is not the best thing to do then. Please allow me to state my problem clearly . Maybe someone might have an answer to my issue. I want to be able to connect Java software on a web server. As deeprave correctly spotted, this can be done using Sockets. Indeed, i have my program connecting to the server.
    On my website, i ask users to register themselves in the user database (using standard PHP). Users are then able to log in their account and do stuff. This works fine through the browser.
    Issue is at the point where i want my Java software sitting locally on the users machine to be able to connect to the server and authenticate the user. If a user is not registered, the software wont be able to operate (or at least enable user do specific actions). If anyone has any ideas that might help i would be grateful if he/she shares them with me. I am approaching my deadline for submitting my 3rd ear project and i am a bit worried...
    Thanks a lot, and excuse me for the long question

  • "jdbc:mysql:///test" - "jdbc:mysql:test" what is the difference

    "jdbc:mysql:///test" -> "jdbc:mysql:test" what is the difference:
    I used both of them in my url but only "jdbc:mysql:///test" worked only
    what is the difference what /// means?

    JDBC URLs have the format
    jdbc:<subprotocol>://<data source identifier>
    jdbc indicates a JDBC data source. subprotocol identifies which JDBC Driver to use.
    For com.mysql.jdbc.Driver and localhost server, database name as 'test':
    it's jdbc:mysql://localhost/test
    or jdbc:mysql://127.0.0.1:3306/test
    you would select another server and database name.
    For sun.jdbc.odbc.JdbcOdbcDriver with MS Access or SQLServer database, it's jdbc:odbc:DSNname
    HTH

  • UserTransactions without JDBC?

    Hi!
    Is it possible to use UserTransactions without JDBC and EJBs.
    I tried this (with WebSphere 3.5):
    int i=1;
    utx.begin();
    i++;
    utx.rollback();
    System.out.println(i);
    But the rollback does not work.
    The output is 2 and not 1.
    Is there a possibility to do something like that?
    cu...
    Torsten

    Hi,
    A transaction in JTA only spans work done through javax.transaction.xa.XAResource instances.
    The rollback will only work for resources that are enlisted with the transaction.
    In fact, an instance of XAResource in a handle to a transactional context on some object. To make it work for your case, you would have to implement an object that encapsulates the i counter, and is able to return an XAResource that can be enlisted with the transaction.
    The rollback method would then restore the previous value of i.
    Making this work in a valid way would require logging the state of the object as well, since XAResources can be prepared (meaning that the work can still be rolled back, but needs to be recoverable after a crash).
    Best,
    Guy

  • Can i access my database without jdbc

    Can i access my database without jdbc
    i don't want use a driver are there other methods for accessing database or is jdbc the only way for connecting a database

    I would sure like to know any one of the ways that you mention below
    Where would be a good place to start
    This is not a good place for that kind of research.
    If you have a problem that needs solving, come here.
    I could probably think up a couple of ways to access
    s a database from Java without using JDBC, but no
    sensible programmer would ever dream of trying to use
    them. So they would just make your research look
    stupid.

  • Can't connect a servlet to a mysql database (jdbc)

    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.io.*;
    import java.sql.*;
    public class LoginServletJDBC extends HttpServlet{
         public void doGet(HttpServletRequest request,HttpServletResponse response)
         throws ServletException,IOException{
              sendLoginForm(response,false);     }
         public void sendLoginForm(HttpServletResponse response,boolean error)
         throws ServletException,IOException{
              response.setContentType("text/html");
              PrintWriter out = response.getWriter();
              out.println("<html><head>");
              out.println("<title>Login</title>");
              out.println("</head>");
              out.println("<body>");
              out.println("<center>");
              if(error)
                   out.println("<b>Failed login. Please try again</b>");
              out.println("<br><br>");
              out.println("<h2>Login page</h2>");
              out.println("<br>Please enter your username and password");
              out.println("<br><br>");
              out.println("<form method=post>");
              out.println("<table>");
              out.println("<tr>");
              out.println("<td>Username : </td>");
              out.println("<td><input type=text name=userName></td>");
              out.println("</tr>");
              out.println("<tr>");
              out.println("<td>Password : </td>");
              out.println("<td><input type=password name=password></td>");
              out.println("</tr>");
              out.println("<tr>");
              out.println("<td align=right colspan=3>");
              out.println("<input type=submit value=Login></td>");
              out.println("</tr>");
              out.println("</table>");
              out.println("</form>");
              out.println("</center>");
              out.println("</body></html>");
    public void doPost(HttpServletRequest request,HttpServletResponse response)
         throws ServletException,IOException{
              String userName = request.getParameter("userName");
              String password = request.getParameter("password");
              if(login(userName,password)){
                   RequestDispatcher rd = request.getRequestDispatcher("AnotherServlet");
                   rd.forward(request,response);
              else{
                   sendLoginForm(response,true);
         boolean login(String userName,String password){
              try{
                   String url = "jdbc:mysql://localhost:3306/Users";
                   Class.forName("com.mysql.jdbc.Driver");
                   Connection con = DriverManager.getConnection(url,"root","");
                   //System.out.println("got connection");
                   Statement s = con.createStatement();
                   String sql = "select userName from Users where userName='"+userName+"and password='"+password+"';";
                   ResultSet rs = s.executeQuery(sql);
                   if(rs.next()){
                        rs.close();
                        s.close();
                        con.close();
                        return true;
                   rs.close();
                   s.close();
                   con.close();
              catch(ClassNotFoundException e){
                   System.out.println(e.toString());
              catch(SQLException e){
                   System.out.println(e.toString());
              catch(Exception e){
                   System.out.println(e.toString());
              return false;
    }so ...
    here i'm trying to connect to Users mysql database (i use Tomcat 4.1 and mysql servers and clients 4.0.1-alpha)
    where is the problem ? when i run this servlet (http://localhost:8080/example/servlet/LoginServletJDBC ) it works ;
    BUT when i type an username and a password (any user&pass) my servlet doesn't connect to the database (become a infinite loop without output ; i mean no any errors and exceptions)
    i try other think : i changed the database with unexisting database and the result was that i was expected (Unknow database 'unexistingdatabase' )
    what i miss ?
    please... can anyone help me...
    thank`s in advance

    The wireless security setting that the Actiontec modem/router is using may be different...and not compatible....than the setting that the Comcast product was using.
    If you think that might the case, and you have the time to troubleshoot......
    Temporarily, turn off the wireless security on the Actiontec modem/router
    Reset an AirPort Express back to default settings, then see if it will connect using no security and allow an Internet connection when you do the Ethernet port test in the post above again.
    If the AirPort Express cannot connect correctly using no security on the wireless network.....then it is a no brainer to know that it will never connect when security is enabled.  So, if the AirPort will not connect using no security, you may have an incompatibility issue between the Actiontec and Apple products.
    However, if the AirPort Express connects OK with no security, then this tells you that you will need to use a different setting for security on the Actiontec...the same that the Comcast router was using before.....so the Express will have a better chance of connecting.
    That setting would be something like WPA/WPA2 Personal, or the same setting stated another way would be WPA-PSK-TKIP.

  • Connection to mySQL via jdbc

    I'm currently programming a GUI to access a database. Therefore I executed a query, which worked fine. But when I tried to exit my program with
    System.exit(0)my DOS-Prompt crashes without exiting.
    Now I tried it with a kind of minimalistic Connection like that:
    Class.forName("org.gjt.mm.mysql.Driver");
    Connection conn = DriverManager.getConnection("jdbc:mysql://localhost/stock");     
    conn.close();Here the same problem occurs, so it must be the Connection that causes the error.
    If I would exit the program right away after the Connection, that is
    Class.forName("org.gjt.mm.mysql.Driver");
    Connection conn = DriverManager.getConnection("jdbc:mysql://localhost/stock");     
    conn.close();
    System.exit(0);then the program exits properly. Unfortunately it doesn't make any sense to quit the program right after reading the data.
    So, as you can guess, I'm quite confused. I used the same driver and the same database in another program on the same computer, and it works fine. So I'm left totally clueless.
    I'm not using a special programming environment, I just write my code using UltraEdit. I've got installed Java 1.4.0 on my machine.
    Any help is very appreciated
    Martin

    I don't get any.
    It just crashes. There's neither an exception thrown nor any other error msg.

  • Connect to mysql without datasource

    Good day every body.
    Im sure this is possible but i dont know how.
    I need to connect to a mysql database without creating a
    datasourse.
    I need the query code please.. if i need to install a driver
    on the server or create a dynamic datasourse. i can..
    Regards

    > Well i want do create sites that can connect to a mysql
    server dynamically
    > from settings changed in the application.cfm file.
    > So that different people can just change there ip
    without having to create the
    > datasource.
    Well <cfquery> tags and <cfstoredproc> tags
    require a datasource, don't
    they.
    So how are you expecting to use them without one?
    You COULD - quite easily - just use Java to communicate with
    the JDBC
    drivers, which would not require a DSN being defined, but it
    would mean not
    using CF's in-built database interactivity tags.
    I don't really understand why you think it's bad to have a
    datasource? Can
    you expand on your idea so I understand what you're trying to
    achieve?
    Adam

  • MySQL and JDBC Classpath errors

    I am new to Java and installed MySql and also installed mysql-connectorJ driver. I can compile the code below, but when I go to run it, I get "Exception in thread "main" java.lang.NoClassDefFoundError: JDBCDemo/class" error. I can't figure out what I am doing wrong.
    import java.sql.Connection;
    import java.sql.DriverManager;
    import java.sql.SQLException;
    public class JDBCDemo {
         public static void main(String[] args) {
              try{  
    Class.forName("com.mysql.jdbc.Driver");
              catch (Exception e)
                   e.printStackTrace();
    I have a the following environment variable called MySQL_Driver located at "C:\Program Files\Java\jdk1.5.0_06\lib".
    Path = "%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\Program Files\Common Files\Roxio Shared\DLLShared;%JAVA_HOME%;%JAVA_HOME%\lib;%JAVA_VM%\bin;%JAVA_VM%\lib;C:\Program Files\Microsoft SQL Server\80\Tools\BINN;C:\Program Files\QuickTime\QTSystem\;%MySQL_Driver%"

    What is your CLASSPATH set to as you need to make sure that the driver is in the path as well as the directory/jar where the JDBCDemo app lives.
    Try explictly specifying everything via the -classpath option on your java command line

  • Data transfer from SQLDB to SAP R/3 without JDBC adapter

    Hi Experts,
    Please suggest the possible methods of transferring data from SQLDB to SAP R/3 without using a JDBC adapter at sender side.
    Regards,
    Kalyan

    Hi KKC242 ,
    Please suggest the possible methods of transferring data from SQLDB to SAP R/3 without using a JDBC adapter at sender side.
    > Data links can work..but not recommended..and that too will be with out using PI.
    any way we hav eto connect to the database...even without adapter..by using a OLEDB/JDBC connector...in VB.. an dsend it across to PI
    Regards ,

  • JDNI name without jdbc/

    I copy ant code from http://middlewaremagic.com/weblogic/?p=2504 and change it as follow. I use weblogic 10.3.4
    New datasources can be created. However, the JNDI name is not complete. It doesn't contain jdbc/
    <?xml version="1.0" ?>
    <project name="deploy" default="makeDataSource" basedir=".">
    <property name="wls.username" value="weblogic" />
    <property name="wls.password" value="welcome1" />
    <property name="wls.url" value="t3://localhost:7001" />
    <property name="wls.targetServer" value="AdminServer" />
    <property name="wls.domainName" value="SOAdomain5" />
    <!--<property name="database.url" value="jdbc:pointbase:server://localhost:9092/demo" />-->
    <property name="database.url" value="jdbc:oracle:thin:@localhost:1521:orcl"/>
    <!--<property name="database.driver" value="com.pointbase.jdbc.jdbcUniversalDriver" />-->
    <property name="database.driver" value="oracle.jdbc.xa.client.OracleXADataSource"/>
    <property name="database.user" value="dstest" />
    <property name="database.password" value="dstest" />
    <property name="weblogic.jar" value="E:\Jdeveloper_11115\wlserver_10.3\server\lib" />
    <echo message="${weblogic.jar}\weblogic.jar"/>
    <taskdef name="wldeploy" classname="weblogic.ant.taskdefs.management.WLDeploy">
    <classpath>
    <pathelement location="${weblogic.jar}\weblogic.jar"/>
    </classpath>
    </taskdef>
    <taskdef name="wlconfig" classname="weblogic.ant.taskdefs.management.WLConfig">
    <classpath>
    <pathelement location="${weblogic.jar}\weblogic.jar"/>
    </classpath>
    </taskdef>
    <target name="makeDataSource">
    <wlconfig username="${wls.username}" password="${wls.password}" url="${wls.url}">
    <query domain="${wls.domainName}" type="Server" name="${wls.targetServer}" property="x" />
    <create type="JDBCConnectionPool" name="TestDS">
    <set attribute="CapacityIncrement" value="1"/>
    <set attribute="DriverName" value="${database.driver}"/>
    <set attribute="InitialCapacity" value="1"/>
    <set attribute="MaxCapacity" value="10"/>
    <set attribute="Password" value="${database.password}"/>
    <set attribute="Properties" value="user=${database.user}"/>
    <set attribute="RefreshMinutes" value="0"/>
    <set attribute="ShrinkPeriodMinutes" value="15"/>
    <set attribute="ShrinkingEnabled" value="true"/>
    <set attribute="TestConnectionsOnRelease" value="false"/>
    <set attribute="TestConnectionsOnReserve" value="true"/>
    <set attribute="TestTableName" value="SYSTABLES"/>
    <set attribute="URL" value="${database.url}"/>
    <set attribute="Targets" value="${x}" />
    </create>
    <create type="JDBCDataSource" name="TestDS" >
    <set attribute="JNDIName" value="jdbc/TestDS"/>
    <set attribute="PoolName" value="TestDS"/>
    <set attribute="Targets" value="${x}" />
    </create>
    </wlconfig>
    </target>
    </project>

    Thank you. But I get errors. Could you help me to change the code?
    Java_home in my computer is C:\Program Files\Java\jdk1.6.0_24
    The password and username as well as url are correct. And I can login to wlst using connect('weblogic', 'welcome1', 't3://localhost:7001') in command line
    How to start CompatabilityMBeanServer?
    ------------------------------------------error-----------------------------------
    Buildfile: C:\JdevWorkspace\ANTdatasource\Project3\build.xml
    [echo] ---13---
    [echo] ---16---
    makeDataSource:
    [echo] ---18---
    [wlst] ---1---
    [wlst] Connecting to t3://localhost:7001 with userid weblogic ...
    [wlst]
    [wlst] The CompatabilityMBeanServer is not initialized properly.
    [wlst] This might happen if the CompatabilityMBeanServer is
    [wlst] disabled via the JMXMBean.
    [wlst]
    [wlst] To view the root cause exception use dumpStack()
    [wlst]
    [wlst] WLST detected that the RuntimeMBeanServer is not enabled. This
    [wlst] might happen if the RuntimeMBeanServer is disabled via the JMXMBean.
    [wlst] Please ensure that this MBeanServer is enabled. Online WLST cannot
    [wlst] function without this MBeanServer.
    [wlst] Exception in thread "main" java.lang.IllegalStateException: Traceback (innermost last):
    [wlst] File "makeDS.py", line 2, in ?
    [wlst] File "<iostream>", line 22, in connect
    [wlst] File "<iostream>", line 646, in raiseWLSTException
    [wlst] WLSTException: Error occured while performing connect : "Cannot connect to WLST."
    [wlst] Use dumpStack() to view the full stacktrace
    [wlst]
    [wlst]      at weblogic.management.scripting.WLSTInterpreterInvoker.printError(WLSTInterpreterInvoker.java:110)
    [wlst] Traceback (innermost last):
    [wlst] File "makeDS.py", line 2, in ?
    [wlst] File "<iostream>", line 22, in connect
    [wlst] File "<iostream>", line 646, in raiseWLSTException
    [wlst] WLSTException: Error occured while performing connect : "Cannot connect to WLST."
    [wlst] Use dumpStack() to view the full stacktrace
    [wlst]
    [wlst]      at weblogic.management.scripting.WLSTInterpreterInvoker.executePyScript(WLSTInterpreterInvoker.java:103)
    [wlst]      at weblogic.management.scripting.WLSTInterpreterInvoker.main(WLSTInterpreterInvoker.java:27)
    BUILD FAILED
    C:\JdevWorkspace\ANTdatasource\Project3\build.xml:21: Java returned: 1
    Total time: 19 seconds
    <?xml version="1.0" encoding="UTF-8" ?>
    <project name="makeDataSource" default="makeDataSource" basedir=".">
    <path id="wl.classpath">
    <fileset dir="E:\Jdeveloper_11115\wlserver_10.3\server\lib">
    <include name="*.jar"/>
    </fileset>
    <!--
    <fileset dir="E:\Jdeveloper_11115\modules">
    <include name="*.jar"/>
    </fileset> -->
    </path>
    <echo message="---13---"/>
    <taskdef classpathref="wl.classpath" name="wlst" classname="weblogic.ant.taskdefs.management.WLSTTask" >
    </taskdef>
    <echo message="---16---"/>
    <target name="makeDataSource">
    <echo message="---18---"/>
    <!--<wlst debug="false" failOnError="true" executeScriptBeforeFile="true" fileName="makeDS.py" classpathref="wl.classpath">-->
    <wlst fileName="makeDS.py" debug="false" failOnError="true" executeScriptBeforeFile="true" classpathref="wl.classpath">
    <!--<script>
    print 'In the target loop'
    connect('weblogic','welcome1','t3://localhost:7001')
    </script>-->
    </wlst>
    <echo message="---21---"/>
    </target>
    </project>
    print '---1---'
    connect("weblogic","welcome1", "t3://localhost:7001")
    edit()
    print '---4---'
    # Change these names as necessary
    dsname="TestDS"
    server="AdminServer"
    cd("Servers/"+server)
    target=cmo
    cd("../..")
    startEdit()
    # start creation
    print 'Creating JDBCSystemResource with name '+dsname
    jdbcSR = create(dsname,"JDBCSystemResource")
    theJDBCResource = jdbcSR.getJDBCResource()
    theJDBCResource.setName( dsname )
    connectionPoolParams = theJDBCResource.getJDBCConnectionPoolParams()
    connectionPoolParams.setConnectionReserveTimeoutSeconds(25)
    connectionPoolParams.setMaxCapacity(100)
    connectionPoolParams.setTestTableName("dual")
    dsParams = theJDBCResource.getJDBCDataSourceParams()
    dsParams.addJNDIName("jdbc/TestDs")
    driverParams = theJDBCResource.getJDBCDriverParams()
    driverParams.setUrl("jdbc:oracle:thin:@localhost:1521:ORCL")
    driverParams.setDriverName("oracle.jdbc.driver.OracleDriver")
    driverParams.setPassword("welcome1")
    driverProperties = driverParams.getProperties()
    proper = driverProperties.createProperty("user")
    proper.setValue("hr")
    jdbcSR.addTarget(target)
    save()
    activate(block="true")
    print 'Done configuring the data source'

  • MySQL/JDeveloper JDBC - Losing Connection

    I am working on a Java Web Application project using JDeveloper (9.0.5.1 Build 1605) while connecting to a mySQL database (4.0.18-max-nt). My application works fine up a certain number of connection. After that, I receive the following error message:
    -<snip>-
    java.sql.SQLException: Unable to connect to any hosts due to exception: java.lang.NullPointerException
    at com.mysql.jdbc.Connection.createNewIO(Connection.java:1719)
    at com.mysql.jdbc.Connection.<init>(Connection.java:432)
    at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:400)
    at java.sql.DriverManager.getConnection(DriverManager.java:512)
    at java.sql.DriverManager.getConnection(DriverManager.java:193)
    at model.NodeSummary.makeConnection(NodeSummary.java:229)
    at model.NodeSummary.getIDs(NodeSummary.java:391)
    -<snip>-
    Based on some testing I've done, I can make up to a certain number of connections, than the next one fails. I've searched the web and it appears others have had this same problem. One person fixed the problem by switching to Tomcat.
    Is there a solution to this? Do I also have to switch to Tomcat?
    Thanks,
    Mark

    I'd check the bug reports for the mysql jdbc driver to see if this is a known issue, if not send them a bug report, it sounds like one.
    Rob
    Team JDev

  • Problem connecting to Mysql using JDBC

    Hi Everyone,
    I am trying to connect Mysql ad java applet and I am using the Mysql jdbc connector.
    I Took the mysql-connector-java-5.0.8-bin.jar file and put that in the library of jdk.
    Now i used the following code to connect to the database using Netbeans.
    package testmysql;
    import java.sql.*;
    public class Main
    public static void main (String[] args)
    Connection conn = null;
    try
    String userName = "root";
    String password = "";
    String url = "jdbc:mysql://localhost/rpms";
    Class.forName ("com.mysql.jdbc.Driver").newInstance ();
    conn = DriverManager.getConnection (url, userName, password);
    System.out.println ("Database connection established");
    catch (Exception e)
    System.err.println ("Cannot connect to database server");
    finally
    if (conn != null)
    try
    conn.close ();
    System.out.println ("Database connection terminated");
    catch (Exception e) { /* ignore close errors */ }
    But it displays Cannot connect to database server
    thoughMysql server is running.
    Can anyone tell me wats the prob in this.
    thanks

    String url = "jdbc:mysql://localhost/rpms";
    Class.forName ("com.mysql.jdbc.Driver").newInstance ();
    Is rpms the MySQL database?
    Is the database on the default port 3306?
    Is the MySQL JDBC JAR file in the classpath of the applet?
    newInstance() is not required to be invoked unless using <= JDK 2.0
    Replace:
    catch (Exception e)
    System.err.println ("Cannot connect to database server");
    with:
    catch (Exception e)
    System.err.println (e.getMessage());
    Edited by: dvohra09 on Apr 10, 2009 10:54 PM
    Edited by: dvohra09 on Apr 10, 2009 10:55 PM
    Edited by: dvohra09 on Apr 10, 2009 10:58 PM

  • HELP about How to connect with Database without JDBC ?

    Hello all,
    i have oracel8i database and my programe work fine with JDBC
    but now
    i want to connect my programe with database without using JDBC connection please any body tell me syntex for that,
    Class.forName("oracle.jdbc.driver.OracleDriver");
    databaseConnection = DriverManager.getConnection("??","arif","arif");
    i have user arif in my database and my computer name is "ABCD"
    Please help me,
    i m thanksfull,
    onlyforjava.

    Thanks i try it,
    url = "jdbc:oracle:thin:@ABCD:1521:" + sid;
    connection = DriverManager.getConnection(url,"arif","arif");
    but after that i got exception,
    java.sql.SQLException: Protocol violation
    Please help me,
    i m thanksfull.
    onlyforjava.

  • MySQL and JDBC

    Hey all. I looked around and saw many similar messages like mine will be, but I could not fix it.
    I have an account over on some webhost and I want to connect to my Database over there. However, I keep getting:
    Exception: Unable to connect to any hosts due to exception: java.net.ConnectException: Connection timed out: connectHere is the code:
        Class.forName("com.mysql.jdbc.Driver").newInstance();
        String connectionURL = "jdbc:mysql://www.mydomain.com/mydatabase";
        java.sql.Connection connection = DriverManager.getConnection(connectionURL, "myuser", "mypass");
        java.sql.Statement statement = connection.createStatement();
        java.sql.ResultSet rs = statement.executeQuery("Select * from mytable");Thanks for the help, all!

    Hi,
    Can you provide the port number where mySQL is runnuing in your "connctionURL" like "jdbc:mysql://www.mydomain.com:3306/mydatabase";
    default port is 3306, check your luck.
    Class.forName("com.mysql.jdbc.Driver").newInstance(); String >connectionURL = "jdbc:mysql://www.mydomain.com/mydatabase"; >java.sql.Connection connection = DriverManager.getConnection(connectionURL, "myuser", "mypass"); java.sql.Statement statement = >connection.createStatement(); java.sql.ResultSet rs = >statement.executeQuery("Select * from mytable");Raju

Maybe you are looking for

  • How can I mark an email as SPAM without "opening" it?

    When I go to "the cloud" to read my email, I might see spam there. But when I click on the email message to mark it as spam or even delete it, I've "opened" the email.  I don't want to do that, right!!! So how can I mark it as spam *or* delete it wit

  • Solution Manager 4.0 Configuration: SLDAPIUSER role

    In SPRO, SAP Reference IMG -> SAP Solution Manager -> Basic Settings -> SAP Solution Manager System -> System Landscape -> Automatic System Landscape Data Capture -> Connection of System Landscape Directory to Solution Manager -> Generate authorizati

  • Is AE the right program for a sports show?

    I am trying to do the sports scores of a baseball game (pre-recorded).  I would like to use AE. I am creating a "score bar" at the top of the screen in photoshop.  My plan is to import that graphic into AE and populate the fields with text and number

  • Any one who is doing FICO Certification??

    Hello Everyone, If any one is preparing for below Certification, let me know. SAP Certified Application Associate - Financial Accounting with SAP ERP 6.0 EHP4 We can discuss queries related to that. Thanks, Pinky Moderator: Please, read and respect S

  • User folder resets

    I accidentally changed the name on my home folder. Of course, now all my files are under an alias. But the strange thing is that can get anything back into my home folder. Every time I shut down or restart , the system resets everything on the OS, li