Databases| SQL| MySQL| Questions?
Search Tutorials:
 

Software Solutions and Services
 

 
  JDO Tutorials
  EAI Articles
  Struts Tutorials
  Java Tutorials
  Java Certification
  Java Applet
Questions
Comments
 
MySQL Download 
 

MySQL software is published under an open source license and is available in two ways: *MySQL

MySQL Download

                         

  1. The MySQL Download
    MySQL software is published under an open source license and is available in two ways: *MySQL Community Edition is the freely downloadable version of the world's most popular open source database. It is supported by a huge and active community of open source developers and enthusiasts. MySQL Community Edition uses the GPL License, is released early and often, and includes all features, including the latest features under development.  *MySQL Network is available for users who want access to our world-class support services, Knowledge Base and certified software. This subscription service is designed to save developers and DBAs time and effort. 
                                            
  2. MySQL Database Server
    MySQL is the most popular Open Source SQL database on the internet. MySQL is a relational database management system. A relational database stores data in separate tables rather than putting all the data in one big storeroom. This adds speed and flexibility. The tables are linked by defined relations making it possible to combine data from several tables on request. The SQL part of MySQL stands for "Structured Query Language"- the most common standardized language used to access databases. MySQL is very fast, reliable, and easy to use. If that is what you are looking for, you should give it a try. 
                             
  3. Access to the MySQL 1.5
    Access to MySQL - is a program to move MS Access databases to MySQL server. Depending on your privileges on the target MySQL server you can export MS Access data into new database or overwrite the contents of an existing MySQL database. There are some feature include :-
    *All MS Access data types and attributes are supported 
    *Works with all versions of Unix and Windows MySQL servers 
    *Converts indexes with all necessary attributes 
    *VServer user's option 
    *Converts password protected MS Access databases 
    *Converts MS Access databases protected with user-level security 
    *Exports MS Access databases into a dump file 
                                                                                                            
  4. Excel to MySQL Download
    Excel to MySQL - is a program to convert MS Excel spreadsheets into MySQL databases. Depending on your privileges on the target MySQL server you can export MS Excel data into new database or overwrite the contents of an existing MySQL database. There are some feature of Excel mysql :-* All versions of MS Excel are supported 
    *Works with all versions of Unix and Windows MySQL servers 
    *Converts individual worksheets 
    *Converts Comma Separated Values (CSV) files into MySQL tables 
    *Exports data source into a dump file 
    *Easy-to-use wizard-style interface 
    *Full install/uninstall support 
                                               

  5. MySQL 5.0.22 Database management system
    MySQL is an open source relational database management system (RDBMS) that uses Structured Query Language (SQL), the most popular language for adding, accessing, and processing data in a database. It is downloadable from mySQL website (http://www.mysql.com) and tailor it to your needs in accordance with the general public license. MySQL is noted mainly for its speed, reliability, and flexibility.  There are some feature include here:-
    * Works on many different platforms
    * Support for many data types
    * Function names do not clash with table or column names
                                
  6. MySQL Server 5.1
    MySQL 5.1 is the latest version of the world's most popular open source database. It gives corporate developers, DBAs and ISVs an array of new enterprise features to make them more productive developing, deploying, and managing industrial strength applications. MySQL 5.1 delivers new enterprise features, including: * ACID Transactions to build reliable and secure business critical applications . * Stored Procedures to improve developer productivity. * Triggers to enforce complex business rules at the database leve.l * Views to ensure sensitive information is not compromised * Information Schema to provide easy access to metadata. * Distributed Transactions (XA)to support complex transactions across multiple databases in heterogeneous environments. 
                                     
  7. Toad For MySQL 2.0.1
    Quest Software's Toad for MySQL leverages Quest Software's database expertise to empower MySQL developers and administrators, of varying skill levels, to rapidly create and execute queries, automate database object management and develop SQL code more efficiently. Toad for MySQL also provides utilities to compare, extract and search for objects, manage projects, import/export data and administer the database. This database development and administration solution increases your productivity and offers access to a solid community for interactive support. With Toad, you can use a familiar, proven tool to manage MySQL databases that run on Windows. Quest Software has an established track record for providing management solutions that deliver, manage and control the quality of application and database development. You can rely on Quest to provide you with an intuitive, graphical tool with all the features necessary to enable you to take MySQL to the next level.


                         

» View all related tutorials
Related Tags: sql mysql c database beginner ant data development time application installation management io help free user find get version install

Leave your comment:

Name:

Email:

URL:

Title:

Comments:


Enter Code:

Audio Version
Reload Image
 

Note: Emails will not be visible or used in any way, and are not required. Please keep comments relevant. Any content deemed inappropriate or offensive may be edited and/or deleted.

No HTML code is allowed. Line breaks will be converted automatically. URLs will be auto-linked. Please use BBCode to format your text.

Add This Tutorial To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 

Current Comments

2 comments so far (
post your own) View All Comments Latest 10 Comments:

sir can u pls tell me where the mysqlcmd prompt exists after installation of mysql

Posted by chidambarshastry on Monday, 02.12.07 @ 12:29pm | #7501

Hi,
I am investigating the configuration for the DB Connection Pooling described in
http://tomcat.apache.org/tomcat-4.1-doc/printer/jndi-datasource-examples-howto.html for MySQL database.

But I am not sure some parameters:

1. server.xml configuration
Configure the JNDI DataSource in Tomcat by adding a declaration for your resource to $CATALINA_HOME/conf/server.xml.

Add this in between the </Context> tag of the examples context and the </Host> tag closing the localhost definition.

<Context path="/DBTest" docBase="DBTest" debug="5" reloadable="true"
crossContext="true"><!-- Here, I don't know the exact path for me and don't
understand the other parameters -->

<Logger className="org.apache.catalina.logger.FileLogger"
prefix="localhost_DBTest_log." suffix=".txt" timestamp="true"/><!-- This is probably not that important -->

<Resource name="jdbc/TestDB" auth="Container"
type="javax.sql.DataSource"/><!-- So it means that for every database I am using, I need to config it here. Is that right? -->

<ResourceParams name="jdbc/TestDB">
<parameter>
<name>factory</name>
<value>org.apache.commons.dbcp.BasicDataSourc#*$!</value>
</parameter>

<!-- Maximum number of dB connections in pool. Make sure you configure your mysqld max_connections large enough to handle all of your db connections. Set to 0 for no limit. -->
<parameter>
<name>maxActive</name>
<value>100</value>
</parameter>

<!-- Maximum number of idle dB connections to retain in pool. Set to 0 for no limit. -->
<parameter>
<name>maxIdle</name>
<value>30</value>
</parameter>

<!-- Maximum time to wait for a dB connection to become available in ms, in this example 10 seconds. An Exception is thrown if this timeout is exceeded. Set to -1 to wait indefinitely. -->
<parameter>
<name>maxWait</name>
<value>10000</value>
</parameter>

<!-- MySQL dB username and password for dB connections --> <!-- This part, I can replace them with real username and password of MySQL -->
<parameter>
<name>username</name>
<value>javauser</value>
</parameter>
<parameter>
<name>password</name>
<value>javadude</value>
</parameter>

<!-- Class name for mm.mysql JDBC driver -->
<parameter>
<name>driverClassName</name>
<value>org.gjt.mm.mysql.Driver</value>
</parameter>

<!-- The JDBC connection url for connecting to your MySQL dB. The
autoReconnect=true argument to the url makes sure that the
mm.mysql JDBC Driver will automatically reconnect if mysqld closed the connection. mysqld by default closes idle connections after 8 hours. -->
<!-- For this, I don't know what is the value for my purpose? -->
<parameter>
<name>url</name>
<value>jdbc:mysql://localhost:3306/javatest?autoReconnect=true</value>
</parameter>
</ResourceParams>
</Context>

web.xml configuration
Now create a WEB-INF/web.xml for this test application.

<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE web-app PUBLIC
"-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app>
<description>MySQL Test App</description>
<resource-ref>
<description>DB Connection</description>
<res-ref-name>jdbc/TestDB</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>
</web-app>I don't understand this. I have some many application programs.
How should I deal with this web.xml configuration?
To configure a DBCP DataSource so that abandoned dB connections are removed and recycled add the following paramater to the ResourceParams configuration for your DBCP DataSource Resource:
<parameter>
<name>removeAbandoned</name>
<value>true</value>
</parameter>
When available db connections run low DBCP will recover and recyle any
abandoned dB connections it finds. The default is false. Use the
removeAbandonedTimeout parameter to set the number of seconds a dB
connection has been idle before it is considered abandoned.
<parameter>
<name>removeAbandonedTimeout</name>
<value>60</value>
</parameter>
The default timeout for removing abandoned connections is 300 seconds.
The logAbandoned parameter can be set to true if you want DBCP to log a stack trace of the code which abandoned the dB connection resources.
<parameter>
<name>logAbandoned</name>
<value>true</value>
</parameter>
The default is false. I probably need to configure this abandoned DB connection recycling mechanism as well.Finally, in order to use the following code:

import java.sql.Connection;
import java.sql.SQLException;
import java.sql.Statement;

import javax.naming.InitialContext;
import javax.sql.DataSource;

public class MyServletJspOrEjb {

public void doSomething() throws Exception {
/*
* Create a JNDI Initial context to be able to
* lookup the DataSource
*
* In production-level code, this should be cached as
* an instance or static variable, as it can
* be quite expensive to create a JNDI context.
*
* Note: This code only works when you are using servlets
* or EJBs in a J2EE application server. If you are
* using connection pooling in standalone Java code, you
* will have to create/configure datasources using whatever
* mechanisms your particular connection pooling library
* provides.
*/

InitialContext ctx = new InitialContext();

/*
* Lookup the DataSource, which will be backed by a pool
* that the application server provides. DataSource instances
* are also a good candidate for caching as an instance
* variable, as JNDI lookups can be expensive as well.
*/

DataSource ds =
(DataSource)ctx.lookup("java:comp/env/jdbc/MySQLDB");

/*
* The following code is what would actually be in your
* Servlet, JSP or EJB 'service' method...where you need
* to work with a JDBC connection.
*/

Connection conn = null;
Statement stmt = null;

try {
conn = ds.getConnection();

/*
* Now, use normal JDBC programming to work with
* MySQL, making sure to close each resource when you're
* finished with it, which allows the connection pool
* resources to be recovered as quickly as possible
*/

stmt = conn.createStatement();
stmt.execute("SOME SQL QUERY");

stmt.close();
stmt = null;

conn.close();
conn = null;
} finally {
/*
* close any jdbc instances here that weren't
* explicitly closed during normal code path, so
* that we don't 'leak' resources...
*/

if (stmt!= null) {
try {
stmt.close();
} catch (sqlexception sqlex) {
// ignore -- as we can't do anything about it here
}

stmt = null;
}

if (conn!= null) {
try {
conn.close();
} catch (sqlexception sqlex) {
// ignore -- as we can't do anything about it here
}

conn = null;
}
}
}
}

Also, I notice that I need to download some jar files for this? what are them exactly?

I am using several databases for my website, do I need to configuration each database for this? like specify the max connection for each database?

Can anybody give me some ideas on this? Is ther any other method for connection pooling?can we edit server.xml stored in a remote server? Thanks very very much!

Regards
Abey

Posted by Abey on Wednesday, 01.17.07 @ 11:28am | #3656

Training Courses
Tell A Friend
Your Friend Name
Website Designing Services
 
Web Designing Packages From $150!
 
Website Designing Company Web Hosting
 
Website Designing Quotation
 
Search Tutorials:

 

 
 

Home | JSP | EJB | JDBC | Java Servlets | WAP  | Free JSP Hosting  | Search Engine | News Archive | Jboss 3.0 tutorial | Free Linux CD's | Forum | Blogs

About Us | Advertising On RoseIndia.net  | Site Map

India News

Indian Software Development Company | iPhone Development Company in India | Flex Development Company in India | Java Training Delhi | Java Training at Noida |

Send your comments, Suggestions or Queries regarding this site at roseindia_net@yahoo.com.

Copyright © 2008. All rights reserved.