How to connect to mysql which is install in server

I already download the "driver" for mysql ( NetDirect). But face problem when want to run the driver.
I use :
String SQL_DRIVER = "my.sql.Driver";
try
Class.forName(SQL_DRIVER);
con = DriverManager.getConnection("jdbc:odbc:maga","", "");
catch ( ClassNotFoundException cnfex )
     System.err.println(
"Failed to load JDBC/ODBC driver." );
     cnfex.printStackTrace();
     System.exit( 1 ); // terminate program
     catch ( SQLException sqlex )
     System.err.println( "Unable to connect" );
     sqlex.printStackTrace();
     System.exit( 1 ); // terminate program
But the program pop up the error :
Failed to load JDBC/ODBC driver.
java.lang.ClassNotFoundException: my.sql.Driver
I don't know how to correct it, anyone has any idea?
ps : anyone know how to set the path and view the path when using CodeWorrior?
Thankz

I also found this link that might have a couple of suggestions.
http://forums.java.sun.com/thread.jsp?forum=48&thread=148201
you should search the JDBC forum for similar problems depending on your OS, driver, etc.
Jamie

Similar Messages

  • How to connect to MySQL back end in Syclo Agentry?

    Hello All,
           I have worked on Syclo agentry with Non-SAP back end (MsSQL) and with SAP back end(Work Manager App).
           But now I wanted to connect with MySQL Back end, I know that it is possible, because Syclo can deal with Oracle,IBM Maximo, MsSql and SAP(ERP,CRM...etc)
           But how to connect with MySQL Back end. What is the procedure and the Configuration changes.
           Could anyone help me out to find the way.
    Thanks,
    Swaroopa.

    Swaroopa,
    You may also need to create/define your database globals if you are using SDML database tags in your queries.  For example  <<database.getSystemTime>> will evaluate differently for MySQL compared to SqlServer or Oracle
    You will want to create a mysql_sd.ini file containing the various database SDML tags and their corresponding MySql values.  I would suggest copying the sqlserver_sd.ini and then update based on mysql syntax.
    You will then want to update your Agentry.ini queryConstantFiles entry for the mySql backend settings to point to your new filename.
    --Bill

  • How to connect labviewv database toolkit to SQL CE server

    Dear sir,
                      i am using labview 8.2.1 and Database Connectivity 8.2.i need same simple  concept of how to connect  LV database toolkit to SQL CE Server.

    When opening the database connection, you will need to provide either a connection string, or a path to a UDL (which will contain a conenction string). The easiest way to get a connection string is to go to (no I am not kidding) www.ConnectionStrings.com. Once there you enter the type of DBMS you are trying to connect to, and the system will list connection strings that you can use based on the drivers that you're using.
    How much experience do you have with LV and/or databases?
    Mike...
    PS: you might also want to check out a series I did a bit ago on database connectivity in my blog. See the link in my signature...
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

  • How to Connect to Mysql databse from Java Studio Enterprise 8

    Hello everybody,
    I have a database in mysql in linux.I have downloaded Java Studio Enterprise 8.
    How is it possible to connect to mysql.
    Could you tell the procedure .., I would be really thankfull
    From
    Ranjitha Rao

    hi
    u can connect to Mysql with the following code
    Class.forName("com.mysql.jdbc.Driver");
                   String url1 = "jdbc:mysql://localhost/<database name>";
                   String user1 = "root";
                   String pass1 = "";
                   Connection con1=DriverManager.getConnection(url1, user1, pass1);

  • How to connect to mysql from java app

    hi
    please say the procedure for connecting to mysql database from java app.
    .) what should i give in environmental variables
    .)where can i find the driver class for the mysql
    .) syntax of the url
    eg:- DM.getConnection("jdbc:mysql:..............what comes here..............");

    You can also get connections from a DataSource. Simple example:
                MysqlDataSource msds = new MysqlDataSource();
                msds.setUrl("jdbc:mysql://127.0.0.1:3306/dbdame");
                msds.setUser("user");
                msds.setPassword("pass");
                Connection c = msds.getConnection();Explore your options and be sure to consider connection pooling.

  • Network Connection error when Trying to Install Windows Server 2012 R2 Essentials

    Thank you to anyone who can help me out here. I have a brand new machine with known working wifi and wired ethernet adapters (works under Windows 8.1) I am attempting to install Windows Server 2012 Essentials R2. During the install process, the system connects
    to the internet to download updates to help along the install. No problem here. Further down the road after restarting several times and now during the "Configuring Windows Server Essentials" step of the install, I am told "There is no network
    connection. Please fix the connection issue and try again."
    When troubleshooting the connection, I am told that the wifi adapter drivers may not be installed. I have a wireless card in the machine and have also tried disabling the wifi adapter and have been connected successfully via the ethernet port this whole
    time.
    Help, I'm stuck and have been to this point in the install 4-5 times already.
    Thank you.

    Is this a laptop?  Can you remove the wifi? Disable it in BIOS?
    Does the wifi have an IP and internet when it throws the error?
    BTW, when the wizard ask about updates say no.  Takes way too long and does not help anything
    Change the binding order and put the wired on top.
    The Steps?
    Just open your Network and Sharing Center. (Change adapter settings)
    Press an ALTkey on your keyboard to show the menu bar.
    Click on the Advancedmenu
    choose Advanced Settings option
    Adjust your binding order for your NICs to ensure your wired ones are at the TOP
    http://regularitguy.com/2012/12/06/how-to-change-nic-binding-order-in-windows-8-and-windows-server-2012/
    Grey

  • How to connect to External Database, if say SQL server, from Adobe LC

    Hi everyone,
    I have one application, which needs to save and load data from/to an external database,SQL server.I have no idea on how to implement this.But with my knowledge I managed to create DSs and using new data connection wizard, some how I managed to list the fields in the Data View.BUT i still worrying about the way i did is rigt or wrong?.. how can i save and load data to sql server from Adobe LC..Please help me
    Thanks,
    Vinod

    You created the data source on the app server which is the first step. Now you can use the JDBC service to query the database:
    http://livedocs.adobe.com/livecycle/8.2/wb_help/000632.html
    scott

  • How to connect to a specific database in SQL server

    Hi,
    How can I connect to a specific database in SQL server? I used the following statement. But my table is inserted to the 'master' database in the SQL server. How can I insert my tables to the specific database tahta I have created before?
    Connection con;
    String sURL = "jdbc:microsoft:sqlserver://SERVER_NAME:1433";
    con = DriverManager.getConnection ( sURL, sUsername, sPassword);

    Hi,
    When I use the syntax:
    String sURL = "jdbc:microsoft:sqlserver://SERVER_NAME:1433/DATABASE_NAME;selectMethod=cursor";
    it gives an error as follows:
    problems connecting to jdbc:microsoft:sqlserver://SERVER_NAME:1433/DATABASE_NAME;selectMethod=cursor:
    [Microsoft][SQLServer 2000 Driver for JDBC]Unable to connect. Invalid URL.
    What is the way to connect to a specific database?

  • How to play the videos ,which are stored in server ..?

    Hi,
    my requirements is : I want to play an video on web page(jsp) Which are stored on server ...how we can impliment that ....
    The video should not ask download and save option .......in webpage it should start playing once i click on play ..as similar to Youtube.com ...

    Hello
    Here you can find an applet example example
    it is made with javafx
    Edited by: Virux on Feb 12, 2009 10:59 PM

  • How to get CAL license type from installed window server 2008 r2

    Hi,
    we have domain controllers which is installed with windows server 2008 r2 datacenter. now we need get the cal information of that servers like whether its per device or per user. can I get the information from an installed server. any scripts?
    Thanks, Venkatesh. &quot;Hardwork Never Fails&quot;

    Hi Venkatesh,
    As Diramoh suggested, we do not need to install CAL in Windows Servers unless it is RDS CALs. You can put the document into your administration papers.
    However, if you need further assistance about license, it is recommended to visit the Volume Licensing Microsoft Licensing Center.
    http://www.microsoft.com/licensing/about-licensing/client-access-license.aspx#tab=2
    Best Regards.
    Jeremy Wu
    TechNet Community Support

  • How to hide product key page while installing SQL server 2012 ?

    I need to hide the product key page while installing SQL server 2012 enterprise edition
    I was trying to use the following command
    Setup.exe /ACTION=Install /FEATURES=SQL /INSTANCENAME=Intuition /PID=<My product Key.
    /IACCEPTSQLSERVERLICENSETERMS
    The product key was applied , but the install screen is being shown with the Product key i have provided and it is in editable mode.
    Is there any way i can hide this SQL server product key page ?
    The reason is we are including SQL setup in our application and as per Microsoft policy we should not reveal the product key to user. If we are able to hide this from installing page , we can hide the installation command in some exe.
    Note : Customers need fulfledged versions so we can't install SQLExpress.

    Hello,
    Could you try using /Q or /QS parameter?
    http://msdn.microsoft.com/en-us/library/ms144259(v=sql.110).aspx
    Hope this helps.
    Regards,
    Alberto Morillo
    SQLCoffee.com

  • How to connect the Mysql database?

    Hi,
    I am trying to create the DATABASE source. I'll need to connect mysql db.
    This is correct?
    jdbc:mysql:<db>:<port>
    And what i do the other changes?
    Please advice me.
    Thanks!
    Regards,
    Deva

    You would also need to install the JDBC driver for MySQL - see the admin guide for details.
    HOWEVER ... there are a couple of bugs which will prevent SES from crawling MySQL databases: 6845168 and 6972574. These will be fixed in the next (10.1.8.4) release, or you can ask Oracle Support for patches.

  • Doubts: how to check this patch which were installed in EPM HFM...

    Dear Expert
    I'm new to Configuration Management Service for EPM HFM.
    And my doubt is how to find out which patch is installed on EPM HFM?
    How can I find it?
    thank you

    In EPM System Release 11.x, you can use the lsinventory command to OPatch to find the release and patches that are installed in an Oracle Home. For example, enter the following command on one line:
    Windows:
    opatch.bat lsinventory -oh <EPM_ORACLE_HOME> -jdk <MIDDLEWARE_HOME>/jdk160_29
    You can also check the Patch levels by;
    Workspace -> Help -> About Oracle Enterprise Performance Management System Workspace, Fusion Edition -> Show Details

  • How to connect to mysql database using a proxy

    Folks,
    I wrote a program to connect to both webpage and mysql databases. Because my internet has a firewall (proxy) I set up the internet connection like this:
          System.getProperties().put( "proxySet", "true" );
          System.getProperties().put( "proxyHost", proxyHost);
          System.getProperties().put( "proxyPort", proxyPort);
          Authenticator.setDefault(new MyAuthenticator());The http connection works fine. However the mysql database connection gives me an error:
    com.mysql.jdbc.CommunicationsException: Communications link failure due to underlying exception:
    ** BEGIN NESTED EXCEPTION **
    java.net.SocketException
    MESSAGE: java.net.ConnectException: Connection timed out: connect
    STACKTRACE:
    java.net.SocketException: java.net.ConnectException: Connection timed out: connect
            at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:156)
            at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:276)
            at com.mysql.jdbc.Connection.createNewIO(Connection.java:2666)
            at com.mysql.jdbc.Connection.<init>(Connection.java:1531)
            at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:266)
            at java.sql.DriverManager.getConnection(Unknown Source)
            at java.sql.DriverManager.getConnection(Unknown Source)
            at myapplication$LongTask$ActualTask.<init>(app.java:182)
            at myapplication$LongTask$1.construct(app.java:121)
            at myapplication.SwingWorker$2.run(SwingWorker.java:107)
            at java.lang.Thread.run(Unknown Source)
    ** END NESTED EXCEPTION ** What can I do? Do i need to setup a SOCKS Proxies or something?
    Thanks a lot!!

    SOCKS it is.

  • HT1782 how to delete an app which i installed in i mac

    i need to delete an app which i have installed in my i mac.........

    6 Ways to Correctly Delete Applications
    http://mac.appstorm.net/roundups/utilities-roundups/6-ways-to-correctly-delete-a pplications/
     Cheers, Tom

Maybe you are looking for

  • Want to downgrade laptop from Windows 8.1 to Windows 7 - Not seeing Windows 7 drivers on HP website

    Hello, I purchased a HP Envy TouchSmart 17 Model: j153cl Notebook that came pre-installed with  Windows 8.  I can't stand Windows 8, it just doesn't work for me.  I want to install Windows 7, which I have purched a legal version of.  Before I install

  • A volume named storage has suddenly appeared

    Hi I used to have a large disk name 'Storage'. I suspect that the 10.10.1 updated also created a volume with the same name so now parts of my system are quite confused. Updating is the only change made to the system... The sidebar in the Finder still

  • Customize Local Layout in SAP R/3 Web GUI?

    We are using IC WebClient with a link to R/3 4.6c for order entry.  The users want to be able to have the same control in the R/3 Web GUI that they do in the native R/3 GUI (eg. automatic tabbing at end of field).  In native R/3, this is controlled v

  • Start/stop the OMS Services on Same Host

    Hi, I have OMS, Repository database and Agent on the same host..... I want to stop and start the services... ========================== FOR Shutdown ===================================== Stop the Agent $cd $ORACLE_HOME/agent10g/bin/emctl stop agent s

  • Cannot edit phone number from dialer

    How can you edit a phone number in the dialer if it originally came from a text message?