Using MySQl DB with NetBeans

Help me dispalying the Table form MySQL Data Base in a web page using Netbeans Visual web Pack.

firsty, you must download mysql server 5.0 from mysql.com
then, mysql-jconnector latest version from mysql.com
then, configure netbeans options to connect to mysql database.
http://www.netbeans.org/kb/articles/mysql-client.html
if it is not enough, i will help you.

Similar Messages

  • Try to use Mysql database with forte

    Dear All:
    As title said, I try to use Mysql database with forte.
    I read the manual , it said I have to put the database jdbc driver in
    the Forte for Java lib/ext directory.
    I did it and then add a new Driver in the Runtime tab in the Explorer
    window .
    But when I try to test this new driver(by Right-clicking on the driver
    or connection in the Explorer and select Test Driver from the context
    menu),it said "cannot find driver class: check your CLASSPATH or
    \lib\ext direectory".
    I am sure I'hve put the driver class(with the whole directory structure)
    in that folder.
    Does anyone what I may go wrong ?
    Could you please give me some advices that I can fix this problem ?
    Thanks in advance.
         Ken @ Taipei , Taiwan , Asia

    You should have put the jar file that contains the driver into that directory. If you unpacked the jar file and put the individual classes into that directory, it will not work.

  • Can we use MYSQL database with the UI5 application?

    Hey,
    I want to make an SAPUI5 application and there i have to use database to save the data.
    Then, i will retrieve the data from there. Can we use MYSQL as a database to save the data.
    If yes, then how we will retrieve the data from there?
    Regards
    VAIBHAV JAIN

    Hi Yury,
    There's a lot of new technologies in order to acchieve that. You could create this app components:
    1. Persistence layer. Hibernate/JPA connected to Relational ER Model in MySQL.
    2. Service layer. Restful Services. With Spring (Getting Started · Building a RESTful Web Service), Jersey (Jersey), etc.
    3. View Layer. SAPUI5. Consume your services.
    Hope this helps,
    Kind regards!

  • How to use Mysql platform with oracle 9i

    Currently it is only supported in toplink 10x and above, for business reasons we need to use toplink 9i workbench, any help?
    thanks

    I did the following, copied the mysql4.xml onto config/platforms, back ported oracle.toplink.platform.database.MySQL4Platform class
    from toplink 10g, when I open my project I get the following exception, any ideas? thanks a lot,
    Exception Stack:
    ==========
    Exception [TOPLINK-6044] (OracleAS TopLink - 10g (9.0.4.5) (Build 040930)): oracle.toplink.exceptions.QueryException
    Exception Description: The primary key read from the row [DatabaseRow(
         database-platform.name => MySQL4
         database-platform.runtime-platform-class => oracle.toplink.platform.database.MySQL4Platform
         database-platform.supports-native-sequencing => true
         database-platform.database-types => SDKFieldValue(database-type - 32 element(s))
         database-platform.jdbc-mappings => SDKFieldValue(jdbc-mapping - 29 element(s)))] during the execution of the query was detected to be null. Primary keys must not contain null.
    Query: ReadAllQuery(oracle.toplink.workbench.model.db.MWDatabasePlatform)
         at oracle.toplink.exceptions.QueryException.nullPrimaryKeyInBuildingObject(QueryException.java:542)
         at oracle.toplink.internal.descriptors.ObjectBuilder.buildObject(ObjectBuilder.java:262)
         at oracle.toplink.internal.descriptors.ObjectBuilder.buildObjectsInto(ObjectBuilder.java:382)
         at oracle.toplink.internal.queryframework.DatabaseQueryMechanism.buildObjectsFromRows(DatabaseQueryMechanism.java:146)
         at oracle.toplink.queryframework.ReadAllQuery.execute(ReadAllQuery.java:448)
         at oracle.toplink.queryframework.DatabaseQuery.execute(DatabaseQuery.java:493)
         at oracle.toplink.queryframework.ReadQuery.execute(ReadQuery.java:125)
         at oracle.toplink.publicinterface.Session.internalExecuteQuery(Session.java:1958)
         at oracle.toplink.publicinterface.Session.executeQuery(Session.java:1086)
         at oracle.toplink.publicinterface.Session.executeQuery(Session.java:1038)
         at oracle.toplink.publicinterface.Session.readAllObjects(Session.java:2372)
         at oracle.toplink.workbench.persistence.MWDatabasePlatformManager.readPlatforms(MWDatabasePlatformManager.java:80)
         at oracle.toplink.workbench.persistence.MWDatabasePlatformManager.platforms(MWDatabasePlatformManager.java:87)
         at oracle.toplink.workbench.ui.ProjectCreationDialog.getSupportedPlatformNames(ProjectCreationDialog.java:50)

  • Use MySQL recordset with JCheckbox

    hi.. i am working on a simple java application that run on the user pc locally... the application is some sort of bill management.. when the user click customer the program will get the list from the database and display on the JTextField with checkboxes beside every record in Frame A.. the user could select those check boxes and click on example status.. the program will go to Frame B with all the data being selected at Frame A??
    i am trying to find out how do i link the recordset with the check box so that the i got do the transfer from frame A to frame B?

    The records will probably have a unique ID value bound to them. A simple hack is to set that ID as the name property of the checkbox (setName()). Then in frame B you can investigate which checkboxes were selected in frame A, get the ID values from the names and fetch the (more complete?) data from the database again.
    A slightly cleaner solution would be to maintain the checkboxes and ID values in a simple datastructure you create yourself. It can be as simple as a storage bean with two properties which you store in a List collection.

  • ADF Faces with NetBeans Visual Pack

    Hello all,
    I have NetBeans 5.5.1 installed with the Visual Pack and I am looking to try out other libraries with it, in particular ADF Faces from Oracle.
    Does anyone know how to import the components into the NetBeans Visual Pack? They download from oracle as[b] adf-faces-impl-10_1_3_0_4.jar and not as a complib extension, which NetBeans prefers.
    Please if anyones has any experience with getting this to work let me know. Or if you think it can't work let me know as well?
    Hoping to hear from someone soon. Thanks in advance.

    Hello again,
    Anyone out there using ADF faces with NetBeans Visual Pack who can give some feedback?
    I want to be able to use the drag and drop capabilities of the Visual Pack with the ADF faces components, but I don't see how to configure this as they do not come pre-configured as a complib extension.
    Any feedback would be appreciated.
    Thanks and Regards.

  • J2me polish with netbeans    5.5?

    Hi i am trying to use J2ME polish with an existing midlet program i am working on but cant seem to get it to work.
    i have got one of the build.xml file from one of the samples and have placed it on my projects root folder. i then copied one of the resorces folder from the sample project and placed in in my projects root as well. When i try running the program i get a compile error below:
    Warning: unable to find following requested device-identifiers:
    S60Emulator
    Please check your <deviceRequirements> section in your build.xml script.
    C:\Documents and Settings\jonathan\My Documents\videoPoker\videoPoker\build.xml:70: Your device-requirements are too strict - no device fulfills them. Check the <deviceRequirements> section(s) in your build.xml script.
    im trying to run it on the s60 emulator and the default colourphone device emulator. hope you guys can help has i have not been able to get this j2me polish working for a while.
    How come when i try to use import de.enough.polish it tells me that it doesnt exist when i installed j2me polish succesfuly? how come i cant use it on my current default j2me project?
    i have got the latest jdk and wireless toolkit sdk and i have downloaded the mobile pack for netbeans 5.5

    Have you had any luck wih this problem? I'm having exactly the same problem now, starting to use J2ME Polish with NetBeans 5.5.1.
    Thanks!

  • How can I use mySQL with OC4J

    Hello,
    I have standalone OC4J and I want to use mySQL database (Oracle is no problem). My data-sources.xml for application (not global data-sources) is:
    <data-sources>
    <data-source class="com.evermind.sql.DriverManagerDataSource"
         connection-driver="org.gjt.mm.mysql.Driver"
         ejb-location="jdbc/MG_DBDS"
         inactivity-timeout="30"
         location="jdbc/MG_DBCoreDS"
         name="MG_DBDS"
         password=""
         pooled-location="jdbc/MG_DBPooledDS"
         url="jdbc:mysql://127.0.0.1:3306/test"
         username="root"
         xa-location="jdbc/xa/MG_DBXADS"/>
    </data-sources>
    Deploy return me:
    Error initializing data-source 'jdbc/MG_DBCoreDS': DriverManagerDataSource driver 'org.gjt.mm.mysql.Driver' not found
    Then I run this command:
    java -jar %OC4J_HOME%\admin.jar ormi://192.168.1.14:23791/ admin heslo -application Register -updateDataSource -oldLocation jdbc/MG_DBCoreDS -jar mysql-2.0.11-bin.jar
    this action is success and create in OC4J folder lib with jar file mysql-2.0.11-bin.
    When I use this configuration in application, I get connection but creating Statement cause SQL Exception - No suitable driver.
    When I try to restart OC4J, I get the same message as throught deploy - Error initializing data-source ...
    What is go wrong???? Could me help anyone?
    Thanks
    Libor

    pooling solution:
    1) put driver mysql.jar into any directory wich described in OC4J application.xml file like
    " <library path="D:\j2ee\home\lib">jdev-generated</library>"
    2) put a new datasource in data-sources.xml:
    <data-sources>
    <data-source name="MySqlDS"
    location="jdbc/MySqlDS"
    class="com.mysql.jdbc.jdbc2.optional.MysqlConnectionPoolDataSource"
    max-connections="100"
    min-connections="5"
    inactivity-timeout="200"
    wait-timeout="10"
    username="scott"
    password="tiger"
    url="jdbc:mysql://localhost:3306/oln?useUnicode=true"/>
    </data-sources>
    OC4J needs a special pooling class in comparision with other containers. For example, JBoss has own implementation of pooling broker, so pooling is enabled by default.

  • Read/Write problems with multiple connections using MySQL & Tomcat

    hello all,
    I am developing a web-based java application that runs on a 4.1 tomcat server and uses MySQL 3.23.52 as db server.
    this program uses hundreds of tables with hundreds of rows each.
    when two or more users are connected, we are experiencing several problems:
    1. when a query is started, they get cross-results that come from both connections.
    2. when inserting/updating (most queries are long and take a few seconds), sometimes data are crossed too, sometimes they are saved incorrectly but get no error message, sometimes they are not saved and get 'null pointer' sqlexception (but tables and queries are correct).
    3. using SHOW PROCESSLIST and SHOW STATUS, we saw that MySQL server hosted no more than 3 max_used_connections, even when my.cnf parameters where set with more. when 3 or more users try to access the database, they get a bad handshake error until other connections are freed.
    any suggestions?
    thanks
    alessandro bonanni
    university of udine

    I am not using a connection pool. I read that when two different connections try to access the same data simultaneously, mysql is not secure. maybe a connection pool could solve that? or maybe is it a mysql limit?
    alessandro

  • How to use non-MySQL database with DW and PHP...???

    I need to connect to a data-source that is not MySQL from
    with my PHP scripts. The only option I get under the Databases tab
    in the Application panel is MySQL Connection. What about just
    standard ODBC connections? Will DW not handle those for me? Do I
    have to do all of that by hand??
    Any information would be greatly appreciated. Thanks!

    "Angell EYE" <[email protected]> wrote in
    message
    news:fc4eaj$fmn$[email protected]..
    >I need to connect to a data-source that is not MySQL from
    with my PHP
    >scripts.
    > The only option I get under the Databases tab in the
    Application panel is
    > MySQL
    > Connection. What about just standard ODBC connections?
    Will DW not
    > handle
    > those for me? Do I have to do all of that by hand??
    >
    > Any information would be greatly appreciated. Thanks!
    There once existed an opensource servermodel called phakt
    that used the
    ADODB database abstraction library,
    the company that created and supported it was bought by Adobe
    and
    subsequently the project was cancelled.
    A group of people (including me) started a community
    initiative@
    http://openphakt.sourceforge.net
    to continue distribution and development of
    phakt, but unfortunately I don't have access to Dreamweaver
    CS3 due to lack
    of funding.
    Phakt will almost certainly NOT run on CS3 in it's current
    state, but is
    should support previous versions.
    Joris

  • What is best method for learning how to use mySQL with Coldfusion?

    I have been using access databases for years with Coldfusion. I have a client that wants me to build an online classroom. I figure it's time to finally start using mySQL, but there is so much info out there, I don't know which way to turn.
    Where do you experts recommend I get started?
    Also, I am using coldfusion entrprise on my system at home. My machine is a 64-bit, 3.30Ghz AMD FX - 6100 six-core processor with 8gig of ram. Can I install mySQL on the machine and run CF8 without any problems?

    How much RAM left on your system? If the computer is strictly for development, then you have more than enough to run ColdFusion, MySQL, browsers, and other development tools.
    For MySQL download the MySQL Community Server and MySQL Workbench. There is also all-in-one package for Windows, http://dev.mysql.com/downloads/windows/installer/ that you don't need to download the server and workbench separately. The installation should be straight forward.
    By the way, other CF users may suggest you to use MariaDB (https://mariadb.org/), which is a branch of MySQL.

  • Using MySQL with Java

    Hi, I am writing a database program, and I decided I should try and use MySQL since many people have told me it is the best way to make a database. Does the java version that Sun provide come with the api to create mysql databases?
    Also, I would like to know of a good tutorial that teaches MySQL with java.

    Hi, I am writing a database program, and I decided I
    should try and use MySQL since many people have told
    me it is the best way to make a database. Does the
    java version that Sun provide come with the api to
    create mysql databases?
    You are more than a bit confused so please stop here until you understand the following.
    JDBC is the API for communicating with relational databases in Java. It is not a database in and of itself but it can communicate with any database that provides JDBC API access in the form of a JDBC driver.
    Also, I would like to know of a good tutorial that
    teaches MySQL with java.The Sun tutorial on JDBC may be found here http://java.sun.com/docs/books/tutorial/jdbc/index.html
    Your using (or not) MySQL is not relevent on this forum and any questions you have regarding MySQL (with the exception of one) are beyond the scope of this forum.
    The exception is "Is there a JDBC driver for MySQL and how do I use it". The answer to that question is yes and see this http://www.mysql.com/products/connector/j/

  • Using MySQL with OEP

    Hi Team,
    I have an OEP running with Oracle DB but I need to move to MySQL.
    Has anyone done this?
    What is required?
    Thanks

    Here are the steps which should be used:
    1. Created a bundle jar for mysql driver(followed steps as per the OEP documentation )
        Goto $ORACLE_HOME/oep/bin in server installation directory
        Run the following script
    sh bundler.sh -source /scratch/sbishnoi/view_storage/sbishnoi_india/cep/wlevs_cql/release/target/server/oep/bin/mysql-connector-java-commercial-5.1.34-bin.jar -name mysql5 -version 5.1.34 -factory com.mysql.jdbc.jdbc2.optional.MysqlXADataSource com.mysql.jdbc.Driver -service javax.sql.XADataSource java.sql.Driver -targetdir .
    The generated jar will be in the current directory and its name will be mysql5_5.1.34.jar.
    Please note that the connector jar mysql-connector-java-commercial-5.1.34-bin.jar was part of MySQL Server installation and wasn't download it separately.
    2. Manually edit the MANIFEST.MF of newly generated jar mysql5_5.1.34.jar to remove unwanted imports which may cause you to download dependencies.
    The import section for my jar looks like as follows:
    Import-Package: javax.crypto,javax.xml.stream,javax.sql,javax.naming,javax.xml.transform.dom,javax.naming.spi,org.xml.sax,org.xml.sax.help
    ers,org.w3c.dom,javax.xml.transform.sax,javax.transaction.xa,javax.management,javax.xml.transform.stax,javax.xml.parsers,javax.xml.transfo
    rm,org.osgi.framework,javax.xml.transform.stream,javax.xml.datatype,javax.net.ssl,javax.net
    3.  Copy the driver bundle jar into following server directory inside domain directory:
    $ cp mysql5_5.1.34.jar …….user_projects/test_domain/defaultserver/modules/ext/
    Create modules/ext directories if it doesn’t exist and then copy the jar.
    4. Prior to starting server, Edit the server’s configuration to define the datasource.
    Here is  config.xml file which we tried:
    <data-source>
    <name>mysql</name>
        <data-source-params>
    <global-transactions-protocol>None</global-transactions-protocol>
    </data-source-params>
    <connection-pool-params>
    <test-table-name>SELECT 1 FROM DUAL</test-table-name>
    <initial-capacity>5</initial-capacity>
    <max-capacity>10</max-capacity>
    </connection-pool-params>
    <driver-params>
    <url>jdbc:mysql://10.159.165.60/mysql</url>
    <driver-name>com.mysql.jdbc.Driver</driver-name>
    <properties>
    <element><name>user</name><value>mysql</value></element>
    <element><name>password</name><value>mysql</value></element>
    <element><name>com.bea.core.datasource.serviceName</name><value>mysql5</value></element>
    <element><name>com.bea.core.datasource.serviceVersion</name><value>5.1.34</value></element>
    <element><name>com.bea.core.datasource.serviceObjectClass</name><value>javax.sql.XADataSource</value></element>
    </properties>
    <use-xa-data-source-interface>false</use-xa-data-source-interface>
    </driver-params>
    </data-source>
    5. Now Start the server. Make sure MySQL Database is running on the URL mentioned in config file.
    Although on server startup, you will see the following exception(not to worry about):
    [sbishnoi@adc2101019 defaultserver]$ sh startwlevs.sh
    Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=128m; support was removed in 8.0
    <Dec 19, 2014 6:39:52 AM PST> <Notice> <LibExt> <BEA-000000> <The extension library bundle "mysql5" was started successfully>
    <Dec 19, 2014 6:39:54 AM PST> <Notice> <LoggingService> <BEA-320400> <The log file /net/adc2101019/scratch/sbishnoi/view_storage/sbishnoi_india/cep/wlevs_cql/release/target/server/user_projects/test_domain/defaultserver/server.log will be rotated. Reopen the log file if tailing has stopped. This can happen on some platforms, such as Windows.>
    <Dec 19, 2014 6:39:54 AM PST> <Notice> <LoggingService> <BEA-320401> <The log file has been rotated to /net/adc2101019/scratch/sbishnoi/view_storage/sbishnoi_india/cep/wlevs_cql/release/target/server/user_projects/test_domain/defaultserver/server.log00014. Log messages will continue to be logged in /net/adc2101019/scratch/sbishnoi/view_storage/sbishnoi_india/cep/wlevs_cql/release/target/server/user_projects/test_domain/defaultserver/server.log.>
    <Dec 19, 2014 6:39:58 AM PST> <Error> <JDBC> <BEA-001112> <Test "select count(*) from SELECT 1 FROM DUAL" set up for pool "mysql" failed with exception: "com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'SELECT 1 FROM DUAL' at line 1".>
    <Dec 19, 2014 6:40:00 AM PST> <Error> <JDBC> <BEA-001112> <Test "select count(*) from SELECT 1 FROM DUAL" set up for pool "mysql" failed with exception: "com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'SELECT 1 FROM DUAL' at line 1".>
    <Dec 19, 2014 6:40:00 AM PST> <Error> <JDBC> <BEA-001111> <Unable to verify the test "select count(*) from SELECT 1 FROM DUAL" set up for pool "mysql". Connections will not be tested. The test will not be used by isValid either.>
    These are related to some configuration test query execution on database to ensure connectivity. The exception here is SQL syntax which is not a connectivity issue so we can safely assume that connection is obtained.

  • Connect mysql from with dreamweaver using ruby on rails

    hi,
    i just finish form my database using mysql front, but i begin
    to do the interface uisng dreamweaver i find difficulties to
    connect it with the database can someone tell how or tell about a
    tutorial that talks about this.
    notice: i am using ruby on rails
    thanks a lot

    hi,
    i just finish form my database using mysql front, but i begin
    to do the interface uisng dreamweaver i find difficulties to
    connect it with the database can someone tell how or tell about a
    tutorial that talks about this.
    notice: i am using ruby on rails
    thanks a lot

  • I am developing a Web App which will have millions of users. I am expecting to use MySQL & Microsoft SQL. Is there any issue with doing that?

    I am developing an app that will server millions of users. Most of the information coming out of the database won't be of any security concern, but there will be some accounts with financial information that I want more secure. For money reasons, I am
    looking at using MySQL for the majority of the Web app and then when I am using a secure connection for money things, using Microsoft SQL Server. Is there anything wrong with that idea?
    DCSSR

    I understand the confusion. I don't want the expense of Microsoft SQL server and was thinking that if I left everything that didn't need to be secure in MySQL, then I could use Microsoft SQL Server free (less than 10 GB) for just billing where security
    is more of an issue for me.  It might just be me, but I feel more vulnerable using MySQL.
    Should I not feel that way?
    DCSSR
    This is wrong and it is not not professional to throw recommendations regarding a specific system design , while we do not know your system characterization (which is something you can not post in a forum). What we do here is mostly helping in specific question
    or just throw comments and general points based on golden rules (rules of thumb). as i wrote before I see no reason of using both MySQL and SQL Server and the new information did not change this.:-)
    I can not tell how you should feel, as I dont know you or your system and most important I do not know your developers knowledge/ability. I can tell you that there is no problem in using MySQL regarding security if you do it in the right way. I can tell
    you that I would feel great with working with MySQL regarding security (By personally i prefer SQL Server).
    * You can think on using NoSQL (as well as MySQL) if u need free database server if the size limitation of 10 GB is the problem. You can use flat database as well for some data.
    * If the problem is using 20 GB then I will prefer in most cases to use 2 databases from the same type on using 2 different database server. In this case where I have to choose between using SQLEXPReSS+MySQL or 2 SQLEXPRESS i will probably prefer 2 SQL
    EXPRESS databases (in 2001 I had a system with more then 20k users using several MS-ACCESS as databases... It worked great).
    I hope this is useful :-)
    [Personal Site] [Blog] [Facebook]

Maybe you are looking for

  • Flex 4.5.1 - iOs - iPad 1 - Loading images bug

    Hi successfully adapt a standard flex project for the web to a mobile application with some adjustements. Congratulations for Adobe team for this fantastic work ! My issue i am faced is a bit strange. When i run in debug mode my application on my iPa

  • Incompatibility when built in 1.4 and run in 1.3...any ideas???

    We used to use the class FocusManager earlier in the code given below. It works fine when compiled and run in JDK 1.3. When this code is compiled in 1.4 and the client runs it in 1.3 -> it throws a NoClassDefFoundError i.e. java/awt/DefaultKeyboardFo

  • MIRO MIGO Relation

    Hi, I want to find out Expense Account/Stock account debited through MIGO. I have only MIRO document No. with me.

  • WD Scorpio Blue still spinning

    Hi everyone, I've been reading this forum through for almost two days, tried everything but nothing helps. Here is my problem: I've bought WD Scorpio Blue 640GB a replaced with it my previous Hitachi factory HDD. The Hitachi HDD was perfectly calm, I

  • As a student in the UK, would I be able to legally use a CS5.5 student license for commercial use?

    And if so, will I be able to continue using it commercially when I am no longer a student? If you are able to answer, please cite a source. Thanks!