去下载驱动.按它的说明安装就可以了.http://www.mysql.com/downloads/api-jdbc-stable.html

解决方案 »

  1.   

    有JDBC类的.下载下来然后搜索一下论坛就知道怎么做 了
      

  2.   

    2.1.1 Installing MySQL on LinuxThe recommended way to install MySQL on Linux is by using the RPM packages. The MySQL RPMs are currently being built on a SuSE Linux 7.3 system but should work on most versions of Linux that support rpm and use glibc. If you have problems with an RPM file, for example, if you receive the error ``Sorry, the host 'xxxx' could not be looked up''@-see section 2.6.1.1 Linux Notes for Binary Distributions. The RPM files you may want to use are: MySQL-server-VERSION.i386.rpm The MySQL server. You will need this unless you only want to connect to a MySQL server running on another machine. Please note that this package was called MySQL-VERSION.i386.rpm before MySQL 4.0.10. 
    MySQL-client-VERSION.i386.rpm The standard MySQL client programs. You probably always want to install this package. 
    MySQL-bench-VERSION.i386.rpm Tests and benchs. Requires Perl and msql-mysql-modules RPMs. 
    MySQL-devel-VERSION.i386.rpm Libraries and include files needed if you want to compile other MySQL clients, such as the Perl modules. 
    MySQL-shared-VERSION.i386.rpm This package contains the shared libraries (libmysqlclient.so*) which certain languages and applications need to dynamically load and use MySQL. 
    MySQL-embedded-VERSION.i386.rpm The embedded MySQL server library (from MySQL 4.0). 
    MySQL-VERSION.src.rpm This contains the source code for all of the previous packages. It can also be used to rebuild the RPMs on other architectures (for example, Alpha or SPARC). 
    To see all files in an RPM package, run: shell> rpm -qpl MySQL-VERSION.i386.rpmTo perform a standard minimal installation, run: shell> rpm -i MySQL-server-VERSION.i386.rpm MySQL-client-VERSION.i386.rpmTo install just the client package, run: shell> rpm -i MySQL-client-VERSION.i386.rpmThe RPM places data in `/var/lib/mysql'. The RPM also creates the appropriate entries in `/etc/init.d/' to start the server automatically at boot time. (This means that if you have performed a previous installation, you may want to make a copy of your previously installed MySQL startup file if you made any changes to it, so you don't lose your changes.) If you want to install the MySQL RPM on older Linux distributions that do not support init scripts in `/etc/init.d' (directly or via a symlink), you should create a symbolic link pointing to the old location before installing the RPM: shell> cd /etc ; ln -s rc.d/init.d .However, all current major Linux distributions should already support this new directory layout as it is required for LSB (Linux Standard Base) compliance. After installing the RPM file(s), the mysqld daemon should be up and running and you should now be able to start using MySQL. See section 2.4 Post-installation Setup and Testing. If something goes wrong, you can find more information in the binary installation chapter. See section 2.2.11 Installing a MySQL Binary Distribution.