mysql安装 centos

[root@centos ~]# rpm -qa | grep mysql 
[root@centos ~]# rpm -qa | grep mysql 
[root@centos ~]# yum list | grep mysql
mysql.i686                               5.1.73-3.el6_5                @updates
mysql-libs.i686                          5.1.73-3.el6_5                @updates
mysql-server.i686                        5.1.73-3.el6_5                @updates
apr-util-mysql.i686                      1.3.9-3.el6_0.1               base     
bacula-director-mysql.i686               5.0.0-12.el6                  base     
bacula-storage-mysql.i686                5.0.0-12.el6                  base     
dovecot-mysql.i686                       1:2.0.9-7.el6                 base     
freeradius-mysql.i686                    2.1.12-4.el6_3                base     
libdbi-dbd-mysql.i686                    0.8.3-5.1.el6                 base     
mod_auth_mysql.i686                      1:3.0.0-11.el6_0.1            base     
mysql-bench.i686                         5.1.73-3.el6_5                updates  
mysql-connector-java.noarch              1:5.1.17-6.el6                base     
mysql-connector-odbc.i686                5.1.5r1144-7.el6              base     
mysql-devel.i686                         5.1.73-3.el6_5                updates  
mysql-embedded.i686                      5.1.73-3.el6_5                updates  
mysql-embedded-devel.i686                5.1.73-3.el6_5                updates  
mysql-test.i686                          5.1.73-3.el6_5                updates  
php-mysql.i686                           5.3.3-27.el6_5                updates  
qt-mysql.i686                            1:4.6.2-28.el6_5              updates  
rsyslog-mysql.i686                       5.8.10-8.el6                  base     
[root@centos ~]#  yum install mysql.i686 mysql-libs.i686 mysql-server.i686 mysql-devel.i686  mysql-connector-java.noarch  
Loaded plugins: fastestmirror, priorities, refresh-packagekit, security
Loading mirror speeds from cached hostfile
 * base: mirrors.btte.net
 * extras: mirrors.btte.net
 * updates: mirrors.btte.net
Setting up Install Process
Package mysql-5.1.73-3.el6_5.i686 already installed and latest version
Package mysql-libs-5.1.73-3.el6_5.i686 already installed and latest version
Package mysql-server-5.1.73-3.el6_5.i686 already installed and latest version
Resolving Dependencies
There are unfinished transactions remaining. You might consider running yum-complete-transaction first to finish them.
--> Running transaction check
---> Package mysql-connector-java.noarch 1:5.1.17-6.el6 will be installed
--> Processing Dependency: jta >= 1.0 for package: 1:mysql-connector-java-5.1.17-6.el6.noarch
--> Processing Dependency: slf4j for package: 1:mysql-connector-java-5.1.17-6.el6.noarch
--> Processing Dependency: java for package: 1:mysql-connector-java-5.1.17-6.el6.noarch
base/filelists_db                                        | 4.9 MB     00:39     
extras/filelists_db                                      |  10 kB     00:02     
updates/filelists_db                                     | 1.6 MB     00:17     
---> Package mysql-devel.i686 0:5.1.73-3.el6_5 will be installed
--> Processing Dependency: openssl-devel for package: mysql-devel-5.1.73-3.el6_5.i686
--> Running transaction check
---> Package geronimo-specs-compat.noarch 0:1.0-3.5.M2.el6 will be installed
--> Processing Dependency: geronimo-specs = 1.0-3.5.M2.el6 for package: geronimo-specs-compat-1.0-3.5.M2.el6.noarch
---> Package java-1.7.0-openjdk.i686 1:1.7.0.55-2.4.7.1.el6_5 will be installed
--> Processing Dependency: tzdata-java for package: 1:java-1.7.0-openjdk-1.7.0.55-2.4.7.1.el6_5.i686
---> Package openssl-devel.i686 0:1.0.1e-16.el6_5.7 will be installed
--> Processing Dependency: zlib-devel for package: openssl-devel-1.0.1e-16.el6_5.7.i686
--> Processing Dependency: krb5-devel for package: openssl-devel-1.0.1e-16.el6_5.7.i686
---> Package slf4j.noarch 0:1.5.8-8.el6 will be installed
--> Running transaction check
---> Package geronimo-specs.noarch 0:1.0-3.5.M2.el6 will be installed
--> Processing Dependency: mx4j >= 2.0.1 for package: geronimo-specs-1.0-3.5.M2.el6.noarch
--> Processing Dependency: apache-tomcat-apis for package: geronimo-specs-1.0-3.5.M2.el6.noarch
---> Package krb5-devel.i686 0:1.10.3-15.el6_5.1 will be installed
--> Processing Dependency: krb5-libs = 1.10.3-15.el6_5.1 for package: krb5-devel-1.10.3-15.el6_5.1.i686
--> Processing Dependency: libselinux-devel for package: krb5-devel-1.10.3-15.el6_5.1.i686
--> Processing Dependency: libcom_err-devel for package: krb5-devel-1.10.3-15.el6_5.1.i686
--> Processing Dependency: keyutils-libs-devel for package: krb5-devel-1.10.3-15.el6_5.1.i686
---> Package tzdata-java.noarch 0:2014b-1.el6 will be installed
---> Package zlib-devel.i686 0:1.2.3-29.el6 will be installed
--> Running transaction check
---> Package apache-tomcat-apis.noarch 0:0.1-1.el6 will be installed
---> Package keyutils-libs-devel.i686 0:1.4-4.el6 will be installed
---> Package krb5-libs.i686 0:1.10.3-10.el6 will be updated
--> Processing Dependency: krb5-libs = 1.10.3-10.el6 for package: krb5-workstation-1.10.3-10.el6.i686
---> Package krb5-libs.i686 0:1.10.3-15.el6_5.1 will be an update
---> Package libcom_err-devel.i686 0:1.41.12-18.el6 will be installed
--> Processing Dependency: libcom_err = 1.41.12-18.el6 for package: libcom_err-devel-1.41.12-18.el6.i686
---> Package libselinux-devel.i686 0:2.0.94-5.3.el6_4.1 will be installed
--> Processing Dependency: libselinux = 2.0.94-5.3.el6_4.1 for package: libselinux-devel-2.0.94-5.3.el6_4.1.i686
--> Processing Dependency: libsepol-devel >= 2.0.32-1 for package: libselinux-devel-2.0.94-5.3.el6_4.1.i686
--> Processing Dependency: pkgconfig(libsepol) for package: libselinux-devel-2.0.94-5.3.el6_4.1.i686
---> Package mx4j.noarch 1:3.0.1-9.13.el6 will be installed
--> Processing Dependency: log4j >= 1.2.7 for package: 1:mx4j-3.0.1-9.13.el6.noarch
--> Processing Dependency: javamail >= 1.2-5jpp for package: 1:mx4j-3.0.1-9.13.el6.noarch
--> Processing Dependency: jakarta-commons-logging >= 1.0.1 for package: 1:mx4j-3.0.1-9.13.el6.noarch
--> Processing Dependency: bcel >= 5.0 for package: 1:mx4j-3.0.1-9.13.el6.noarch
--> Processing Dependency: axis >= 1.1 for package: 1:mx4j-3.0.1-9.13.el6.noarch
--> Processing Dependency: xml-commons-resolver for package: 1:mx4j-3.0.1-9.13.el6.noarch
--> Processing Dependency: xml-commons for package: 1:mx4j-3.0.1-9.13.el6.noarch
--> Processing Dependency: jaf for package: 1:mx4j-3.0.1-9.13.el6.noarch
--> Running transaction check
---> Package axis.noarch 0:1.2.1-7.3.el6_3 will be installed
--> Processing Dependency: wsdl4j for package: axis-1.2.1-7.3.el6_3.noarch
--> Processing Dependency: jakarta-commons-httpclient for package: axis-1.2.1-7.3.el6_3.noarch
--> Processing Dependency: jakarta-commons-discovery for package: axis-1.2.1-7.3.el6_3.noarch
---> Package bcel.i686 0:5.2-7.2.el6 will be installed
--> Processing Dependency: regexp for package: bcel-5.2-7.2.el6.i686
--> Processing Dependency: libgcj_bc.so.1 for package: bcel-5.2-7.2.el6.i686
--> Processing Dependency: java-gcj-compat for package: bcel-5.2-7.2.el6.i686
--> Processing Dependency: java-gcj-compat for package: bcel-5.2-7.2.el6.i686
---> Package classpathx-jaf.i686 0:1.0-15.4.el6 will be installed
---> Package classpathx-mail.noarch 0:1.1.1-9.4.el6 will be installed
---> Package jakarta-commons-logging.noarch 0:1.0.4-10.el6 will be installed
---> Package krb5-workstation.i686 0:1.10.3-10.el6 will be updated
---> Package krb5-workstation.i686 0:1.10.3-15.el6_5.1 will be an update
---> Package libcom_err.i686 0:1.41.12-14.el6 will be updated
--> Processing Dependency: libcom_err = 1.41.12-14.el6 for package: libss-1.41.12-14.el6.i686
--> Processing Dependency: libcom_err = 1.41.12-14.el6 for package: e2fsprogs-libs-1.41.12-14.el6.i686
--> Processing Dependency: libcom_err = 1.41.12-14.el6 for package: e2fsprogs-1.41.12-14.el6.i686
---> Package libcom_err.i686 0:1.41.12-18.el6 will be an update
---> Package libselinux.i686 0:2.0.94-5.3.el6 will be updated
--> Processing Dependency: libselinux = 2.0.94-5.3.el6 for package: libselinux-utils-2.0.94-5.3.el6.i686
--> Processing Dependency: libselinux = 2.0.94-5.3.el6 for package: libselinux-python-2.0.94-5.3.el6.i686
---> Package libselinux.i686 0:2.0.94-5.3.el6_4.1 will be an update
---> Package libsepol-devel.i686 0:2.0.41-4.el6 will be installed
---> Package log4j.i686 0:1.2.14-6.4.el6 will be installed
---> Package xml-commons-apis.i686 0:1.3.04-3.6.el6 will be installed
---> Package xml-commons-resolver.i686 0:1.1-4.18.el6 will be installed
--> Running transaction check
---> Package e2fsprogs.i686 0:1.41.12-14.el6 will be updated
---> Package e2fsprogs.i686 0:1.41.12-18.el6 will be an update
---> Package e2fsprogs-libs.i686 0:1.41.12-14.el6 will be updated
---> Package e2fsprogs-libs.i686 0:1.41.12-18.el6 will be an update
---> Package jakarta-commons-discovery.noarch 1:0.4-5.4.el6 will be installed
---> Package jakarta-commons-httpclient.i686 1:3.1-0.7.el6_3 will be installed
---> Package java-1.5.0-gcj.i686 0:1.5.0.0-29.1.el6 will be installed
--> Processing Dependency: sinjdoc for package: java-1.5.0-gcj-1.5.0.0-29.1.el6.i686
---> Package libgcj.i686 0:4.4.7-4.el6 will be installed
---> Package libselinux-python.i686 0:2.0.94-5.3.el6 will be updated
---> Package libselinux-python.i686 0:2.0.94-5.3.el6_4.1 will be an update
---> Package libselinux-utils.i686 0:2.0.94-5.3.el6 will be updated
---> Package libselinux-utils.i686 0:2.0.94-5.3.el6_4.1 will be an update
---> Package libss.i686 0:1.41.12-14.el6 will be updated
---> Package libss.i686 0:1.41.12-18.el6 will be an update
---> Package regexp.i686 0:1.5-4.4.el6 will be installed
---> Package wsdl4j.noarch 0:1.5.2-7.8.el6 will be installed
--> Running transaction check
---> Package sinjdoc.i686 0:0.5-9.1.el6 will be installed
--> Processing Dependency: java_cup >= 0.10 for package: sinjdoc-0.5-9.1.el6.i686
--> Running transaction check
---> Package java_cup.i686 1:0.10k-5.el6 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package                     Arch    Version                     Repository
                                                                           Size
================================================================================
Installing:
 mysql-connector-java        noarch  1:5.1.17-6.el6              base     1.4 M
 mysql-devel                 i686    5.1.73-3.el6_5              updates  129 k
Installing for dependencies:
 apache-tomcat-apis          noarch  0.1-1.el6                   base     164 k
 axis                        noarch  1.2.1-7.3.el6_3             base     1.5 M
 bcel                        i686    5.2-7.2.el6                 base     1.2 M
 classpathx-jaf              i686    1.0-15.4.el6                base      92 k
 classpathx-mail             noarch  1.1.1-9.4.el6               base     479 k
 geronimo-specs              noarch  1.0-3.5.M2.el6              base     111 k
 geronimo-specs-compat       noarch  1.0-3.5.M2.el6              base     7.1 k
 jakarta-commons-discovery   noarch  1:0.4-5.4.el6               base      73 k
 jakarta-commons-httpclient  i686    1:3.1-0.7.el6_3             base     526 k
 jakarta-commons-logging     noarch  1.0.4-10.el6                base      52 k
 java-1.5.0-gcj              i686    1.5.0.0-29.1.el6            base     138 k
 java-1.7.0-openjdk          i686    1:1.7.0.55-2.4.7.1.el6_5    updates   27 M
 java_cup                    i686    1:0.10k-5.el6               base     178 k
 keyutils-libs-devel         i686    1.4-4.el6                   base      28 k
 krb5-devel                  i686    1.10.3-15.el6_5.1           updates  493 k
 libcom_err-devel            i686    1.41.12-18.el6              base      32 k
 libgcj                      i686    4.4.7-4.el6                 base      17 M
 libselinux-devel            i686    2.0.94-5.3.el6_4.1          base     136 k
 libsepol-devel              i686    2.0.41-4.el6                base      64 k
 log4j                       i686    1.2.14-6.4.el6              base     603 k
 mx4j                        noarch  1:3.0.1-9.13.el6            base     1.1 M
 openssl-devel               i686    1.0.1e-16.el6_5.7           updates  1.2 M
 regexp                      i686    1.5-4.4.el6                 base      97 k
 sinjdoc                     i686    0.5-9.1.el6                 base     646 k
 slf4j                       noarch  1.5.8-8.el6                 base     131 k
 tzdata-java                 noarch  2014b-1.el6                 updates  147 k
 wsdl4j                      noarch  1.5.2-7.8.el6               base     157 k
 xml-commons-apis            i686    1.3.04-3.6.el6              base     388 k
 xml-commons-resolver        i686    1.1-4.18.el6                base     128 k
 zlib-devel                  i686    1.2.3-29.el6                base      44 k
Updating for dependencies:
 e2fsprogs                   i686    1.41.12-18.el6              base     553 k
 e2fsprogs-libs              i686    1.41.12-18.el6              base     127 k
 krb5-libs                   i686    1.10.3-15.el6_5.1           updates  769 k
 krb5-workstation            i686    1.10.3-15.el6_5.1           updates  802 k
 libcom_err                  i686    1.41.12-18.el6              base      37 k
 libselinux                  i686    2.0.94-5.3.el6_4.1          base     108 k
 libselinux-python           i686    2.0.94-5.3.el6_4.1          base     199 k
 libselinux-utils            i686    2.0.94-5.3.el6_4.1          base      81 k
 libss                       i686    1.41.12-18.el6              base      41 k

Transaction Summary
================================================================================
Install      32 Package(s)
Upgrade       9 Package(s)

Total download size: 58 M
Is this ok [y/N]: y
Downloading Packages:
(1/41): apache-tomcat-apis-0.1-1.el6.noarch.rpm          | 164 kB     00:00     
(2/41): axis-1.2.1-7.3.el6_3.noarch.rpm                  | 1.5 MB     00:10     
(3/41): bcel-5.2-7.2.el6.i686.rpm                        | 1.2 MB     00:08     
(4/41): classpathx-jaf-1.0-15.4.el6.i686.rpm             |  92 kB     00:02     
(5/41): classpathx-mail-1.1.1-9.4.el6.noarch.rpm         | 479 kB     00:04     
(6/41): e2fsprogs-1.41.12-18.el6.i686.rpm                | 553 kB     00:05     
(7/41): e2fsprogs-libs-1.41.12-18.el6.i686.rpm           | 127 kB     00:01     
(8/41): geronimo-specs-1.0-3.5.M2.el6.noarch.rpm         | 111 kB     00:01     
(9/41): geronimo-specs-compat-1.0-3.5.M2.el6.noarch.rpm  | 7.1 kB     00:00     
(10/41): jakarta-commons-discovery-0.4-5.4.el6.noarch.rp |  73 kB     00:00     
(11/41): jakarta-commons-httpclient-3.1-0.7.el6_3.i686.r | 526 kB     00:04     
(12/41): jakarta-commons-logging-1.0.4-10.el6.noarch.rpm |  52 kB     00:00     
(13/41): java-1.5.0-gcj-1.5.0.0-29.1.el6.i686.rpm        | 138 kB     00:00     
(14/41): java-1.7.0-openjdk-1.7.0.55-2.4.7.1.el6_5.i686. |  27 MB     03:24     
(15/41): java_cup-0.10k-5.el6.i686.rpm                   | 178 kB     00:03     
(16/41): keyutils-libs-devel-1.4-4.el6.i686.rpm          |  28 kB     00:00     
(17/41): krb5-devel-1.10.3-15.el6_5.1.i686.rpm           | 493 kB     00:11     
(18/41): krb5-libs-1.10.3-15.el6_5.1.i686.rpm            | 769 kB     00:16     
(19/41): krb5-workstation-1.10.3-15.el6_5.1.i686.rpm     | 802 kB     00:10     
(20/41): libcom_err-1.41.12-18.el6.i686.rpm              |  37 kB     00:00     
(21/41): libcom_err-devel-1.41.12-18.el6.i686.rpm        |  32 kB     00:00     
(22/41): libgcj-4.4.7-4.el6.i686.rpm                     |  17 MB     02:19     
(23/41): libselinux-2.0.94-5.3.el6_4.1.i686.rpm          | 108 kB     00:02     
(24/41): libselinux-devel-2.0.94-5.3.el6_4.1.i686.rpm    | 136 kB     00:04     
(25/41): libselinux-python-2.0.94-5.3.el6_4.1.i686.rpm   | 199 kB     00:09     
(26/41): libselinux-utils-2.0.94-5.3.el6_4.1.i686.rpm    |  81 kB     00:02     
(27/41): libsepol-devel-2.0.41-4.el6.i686.rpm            |  64 kB     00:01     
(28/41): libss-1.41.12-18.el6.i686.rpm                   |  41 kB     00:01     
(29/41): log4j-1.2.14-6.4.el6.i686.rpm                   | 603 kB     00:10     
(30/41): mx4j-3.0.1-9.13.el6.noarch.rpm                  | 1.1 MB     00:16     
(31/41): mysql-connector-java-5.1.17-6.el6.noarch.rpm    | 1.4 MB     00:19     
(32/41): mysql-devel-5.1.73-3.el6_5.i686.rpm             | 129 kB     00:02     
(33/41): openssl-devel-1.0.1e-16.el6_5.7.i686.rpm        | 1.2 MB     00:59     
(34/41): regexp-1.5-4.4.el6.i686.rpm                     |  97 kB     00:11     
(35/41): sinjdoc-0.5-9.1.el6.i686.rpm                    | 646 kB     00:29     
(36/41): slf4j-1.5.8-8.el6.noarch.rpm                    | 131 kB     00:02     
(37/41): tzdata-java-2014b-1.el6.noarch.rpm              | 147 kB     00:02     
(38/41): wsdl4j-1.5.2-7.8.el6.noarch.rpm                 | 157 kB     00:01     
(39/41): xml-commons-apis-1.3.04-3.6.el6.i686.rpm        | 388 kB     00:04     
(40/41): xml-commons-resolver-1.1-4.18.el6.i686.rpm      | 128 kB     00:01     
(41/41): zlib-devel-1.2.3-29.el6.i686.rpm                |  44 kB     00:00     
--------------------------------------------------------------------------------
Total                                            90 kB/s |  58 MB     11:00     
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing : jakarta-commons-logging-1.0.4-10.el6.noarch                 1/50
  Installing : 1:jakarta-commons-discovery-0.4-5.4.el6.noarch              2/50
  Installing : apache-tomcat-apis-0.1-1.el6.noarch                         3/50
  Installing : zlib-devel-1.2.3-29.el6.i686                                4/50
  Installing : keyutils-libs-devel-1.4-4.el6.i686                          5/50
  Installing : libsepol-devel-2.0.41-4.el6.i686                            6/50
  Installing : tzdata-java-2014b-1.el6.noarch                              7/50
  Installing : libgcj-4.4.7-4.el6.i686                                     8/50
  Updating   : libcom_err-1.41.12-18.el6.i686                              9/50
  Updating   : libselinux-2.0.94-5.3.el6_4.1.i686                         10/50
  Installing : libselinux-devel-2.0.94-5.3.el6_4.1.i686                   11/50
  Installing : libcom_err-devel-1.41.12-18.el6.i686                       12/50
  Updating   : krb5-libs-1.10.3-15.el6_5.1.i686                           13/50
  Installing : 1:java-1.7.0-openjdk-1.7.0.55-2.4.7.1.el6_5.i686           14/50
  Updating   : libss-1.41.12-18.el6.i686                                  15/50
  Installing : slf4j-1.5.8-8.el6.noarch                                   16/50
  Installing : krb5-devel-1.10.3-15.el6_5.1.i686                          17/50
  Installing : openssl-devel-1.0.1e-16.el6_5.7.i686                       18/50
  Updating   : e2fsprogs-libs-1.41.12-18.el6.i686                         19/50
  Installing : java-1.5.0-gcj-1.5.0.0-29.1.el6.i686                       20/50
  Installing : 1:java_cup-0.10k-5.el6.i686                                21/50
  Installing : sinjdoc-0.5-9.1.el6.i686                                   22/50
  Installing : wsdl4j-1.5.2-7.8.el6.noarch                                23/50
  Installing : mysql-devel-5.1.73-3.el6_5.i686                            24/50
  Installing : xml-commons-apis-1.3.04-3.6.el6.i686                       25/50
  Installing : classpathx-jaf-1.0-15.4.el6.i686                           26/50
  Installing : classpathx-mail-1.1.1-9.4.el6.noarch                       27/50
  Installing : log4j-1.2.14-6.4.el6.i686                                  28/50
  Installing : xml-commons-resolver-1.1-4.18.el6.i686                     29/50
  Installing : 1:jakarta-commons-httpclient-3.1-0.7.el6_3.i686            30/50
  Installing : axis-1.2.1-7.3.el6_3.noarch                                31/50
  Installing : regexp-1.5-4.4.el6.i686                                    32/50
  Installing : bcel-5.2-7.2.el6.i686                                      33/50
  Installing : 1:mx4j-3.0.1-9.13.el6.noarch                               34/50
  Installing : geronimo-specs-1.0-3.5.M2.el6.noarch                       35/50
  Installing : geronimo-specs-compat-1.0-3.5.M2.el6.noarch                36/50
  Installing : 1:mysql-connector-java-5.1.17-6.el6.noarch                 37/50
  Updating   : e2fsprogs-1.41.12-18.el6.i686                              38/50
  Updating   : krb5-workstation-1.10.3-15.el6_5.1.i686                    39/50
  Updating   : libselinux-utils-2.0.94-5.3.el6_4.1.i686                   40/50
  Updating   : libselinux-python-2.0.94-5.3.el6_4.1.i686                  41/50
  Cleanup    : krb5-workstation-1.10.3-10.el6.i686                        42/50
  Cleanup    : e2fsprogs-1.41.12-14.el6.i686                              43/50
  Cleanup    : krb5-libs-1.10.3-10.el6.i686                               44/50
  Cleanup    : e2fsprogs-libs-1.41.12-14.el6.i686                         45/50
  Cleanup    : libss-1.41.12-14.el6.i686                                  46/50
  Cleanup    : libselinux-python-2.0.94-5.3.el6.i686                      47/50
  Cleanup    : libselinux-utils-2.0.94-5.3.el6.i686                       48/50
  Cleanup    : libselinux-2.0.94-5.3.el6.i686                             49/50
  Cleanup    : libcom_err-1.41.12-14.el6.i686                             50/50
  Verifying  : geronimo-specs-1.0-3.5.M2.el6.noarch                        1/50
  Verifying  : log4j-1.2.14-6.4.el6.i686                                   2/50
  Verifying  : classpathx-mail-1.1.1-9.4.el6.noarch                        3/50
  Verifying  : libss-1.41.12-18.el6.i686                                   4/50
  Verifying  : 1:jakarta-commons-discovery-0.4-5.4.el6.noarch              5/50
  Verifying  : tzdata-java-2014b-1.el6.noarch                              6/50
  Verifying  : e2fsprogs-libs-1.41.12-18.el6.i686                          7/50
  Verifying  : xml-commons-resolver-1.1-4.18.el6.i686                      8/50
  Verifying  : krb5-workstation-1.10.3-15.el6_5.1.i686                     9/50
  Verifying  : libsepol-devel-2.0.41-4.el6.i686                           10/50
  Verifying  : 1:java_cup-0.10k-5.el6.i686                                11/50
  Verifying  : sinjdoc-0.5-9.1.el6.i686                                   12/50
  Verifying  : 1:java-1.7.0-openjdk-1.7.0.55-2.4.7.1.el6_5.i686           13/50
  Verifying  : keyutils-libs-devel-1.4-4.el6.i686                         14/50
  Verifying  : zlib-devel-1.2.3-29.el6.i686                               15/50
  Verifying  : jakarta-commons-logging-1.0.4-10.el6.noarch                16/50
  Verifying  : wsdl4j-1.5.2-7.8.el6.noarch                                17/50
  Verifying  : libselinux-utils-2.0.94-5.3.el6_4.1.i686                   18/50
  Verifying  : 1:mx4j-3.0.1-9.13.el6.noarch                               19/50
  Verifying  : java-1.5.0-gcj-1.5.0.0-29.1.el6.i686                       20/50
  Verifying  : bcel-5.2-7.2.el6.i686                                      21/50
  Verifying  : libselinux-2.0.94-5.3.el6_4.1.i686                         22/50
  Verifying  : libselinux-devel-2.0.94-5.3.el6_4.1.i686                   23/50
  Verifying  : xml-commons-apis-1.3.04-3.6.el6.i686                       24/50
  Verifying  : apache-tomcat-apis-0.1-1.el6.noarch                        25/50
  Verifying  : slf4j-1.5.8-8.el6.noarch                                   26/50
  Verifying  : libgcj-4.4.7-4.el6.i686                                    27/50
  Verifying  : libselinux-python-2.0.94-5.3.el6_4.1.i686                  28/50
  Verifying  : mysql-devel-5.1.73-3.el6_5.i686                            29/50
  Verifying  : 1:jakarta-commons-httpclient-3.1-0.7.el6_3.i686            30/50
  Verifying  : krb5-libs-1.10.3-15.el6_5.1.i686                           31/50
  Verifying  : e2fsprogs-1.41.12-18.el6.i686                              32/50
  Verifying  : krb5-devel-1.10.3-15.el6_5.1.i686                          33/50
  Verifying  : libcom_err-1.41.12-18.el6.i686                             34/50
  Verifying  : geronimo-specs-compat-1.0-3.5.M2.el6.noarch                35/50
  Verifying  : 1:mysql-connector-java-5.1.17-6.el6.noarch                 36/50
  Verifying  : classpathx-jaf-1.0-15.4.el6.i686                           37/50
  Verifying  : openssl-devel-1.0.1e-16.el6_5.7.i686                       38/50
  Verifying  : regexp-1.5-4.4.el6.i686                                    39/50
  Verifying  : axis-1.2.1-7.3.el6_3.noarch                                40/50
  Verifying  : libcom_err-devel-1.41.12-18.el6.i686                       41/50
  Verifying  : krb5-workstation-1.10.3-10.el6.i686                        42/50
  Verifying  : libcom_err-1.41.12-14.el6.i686                             43/50
  Verifying  : e2fsprogs-1.41.12-14.el6.i686                              44/50
  Verifying  : libselinux-utils-2.0.94-5.3.el6.i686                       45/50
  Verifying  : libselinux-2.0.94-5.3.el6.i686                             46/50
  Verifying  : krb5-libs-1.10.3-10.el6.i686                               47/50
  Verifying  : libselinux-python-2.0.94-5.3.el6.i686                      48/50
  Verifying  : e2fsprogs-libs-1.41.12-14.el6.i686                         49/50
  Verifying  : libss-1.41.12-14.el6.i686                                  50/50

Installed:
  mysql-connector-java.noarch 1:5.1.17-6.el6  mysql-devel.i686 0:5.1.73-3.el6_5

Dependency Installed:
  apache-tomcat-apis.noarch 0:0.1-1.el6                                         
  axis.noarch 0:1.2.1-7.3.el6_3                                                 
  bcel.i686 0:5.2-7.2.el6                                                       
  classpathx-jaf.i686 0:1.0-15.4.el6                                            
  classpathx-mail.noarch 0:1.1.1-9.4.el6                                        
  geronimo-specs.noarch 0:1.0-3.5.M2.el6                                        
  geronimo-specs-compat.noarch 0:1.0-3.5.M2.el6                                 
  jakarta-commons-discovery.noarch 1:0.4-5.4.el6                                
  jakarta-commons-httpclient.i686 1:3.1-0.7.el6_3                               
  jakarta-commons-logging.noarch 0:1.0.4-10.el6                                 
  java-1.5.0-gcj.i686 0:1.5.0.0-29.1.el6                                        
  java-1.7.0-openjdk.i686 1:1.7.0.55-2.4.7.1.el6_5                              
  java_cup.i686 1:0.10k-5.el6                                                   
  keyutils-libs-devel.i686 0:1.4-4.el6                                          
  krb5-devel.i686 0:1.10.3-15.el6_5.1                                           
  libcom_err-devel.i686 0:1.41.12-18.el6                                        
  libgcj.i686 0:4.4.7-4.el6                                                     
  libselinux-devel.i686 0:2.0.94-5.3.el6_4.1                                    
  libsepol-devel.i686 0:2.0.41-4.el6                                            
  log4j.i686 0:1.2.14-6.4.el6                                                   
  mx4j.noarch 1:3.0.1-9.13.el6                                                  
  openssl-devel.i686 0:1.0.1e-16.el6_5.7                                        
  regexp.i686 0:1.5-4.4.el6                                                     
  sinjdoc.i686 0:0.5-9.1.el6                                                    
  slf4j.noarch 0:1.5.8-8.el6                                                    
  tzdata-java.noarch 0:2014b-1.el6                                              
  wsdl4j.noarch 0:1.5.2-7.8.el6                                                 
  xml-commons-apis.i686 0:1.3.04-3.6.el6                                        
  xml-commons-resolver.i686 0:1.1-4.18.el6                                      
  zlib-devel.i686 0:1.2.3-29.el6                                                

Dependency Updated:
  e2fsprogs.i686 0:1.41.12-18.el6                                               
  e2fsprogs-libs.i686 0:1.41.12-18.el6                                          
  krb5-libs.i686 0:1.10.3-15.el6_5.1                                            
  krb5-workstation.i686 0:1.10.3-15.el6_5.1                                     
  libcom_err.i686 0:1.41.12-18.el6                                              
  libselinux.i686 0:2.0.94-5.3.el6_4.1                                          
  libselinux-python.i686 0:2.0.94-5.3.el6_4.1                                   
  libselinux-utils.i686 0:2.0.94-5.3.el6_4.1                                    
  libss.i686 0:1.41.12-18.el6                                                   

Complete!
[root@centos ~]#  service mysqld restart
停止 mysqld:                                              [确定]
初始化 MySQL 数据库: Installing MySQL system tables...
OK
Filling help tables...
OK

To start mysqld at boot time you have to copy
support-files/mysql.server to the right place for your system

PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !
To do so, start the server, then issue the following commands:

/usr/bin/mysqladmin -u root password 'new-password'
/usr/bin/mysqladmin -u root -h centos password 'new-password'

Alternatively you can run:
/usr/bin/mysql_secure_installation

which will also give you the option of removing the test
databases and anonymous user created by default.  This is
strongly recommended for production servers.

See the manual for more instructions.

You can start the MySQL daemon with:
cd /usr ; /usr/bin/mysqld_safe &

You can test the MySQL daemon with mysql-test-run.pl
cd /usr/mysql-test ; perl mysql-test-run.pl

Please report any problems with the /usr/bin/mysqlbug script!

                                                           [确定]
正在启动 mysqld:                                          [确定]
[root@centos ~]# chkconfig --list | grep mysqld
mysqld             0:关闭    1:关闭    2:关闭    3:关闭    4:关闭    5:关闭    6:关闭
[root@centos ~]# chkconfig mysqld on
[root@centos ~]# chkconfig --list | grep mysql
mysqld             0:关闭    1:关闭    2:启用    3:启用    4:启用    5:启用    6:关闭
[root@centos ~]# /usr/bin/mysqladmin -u root password 'zhhwyxlly'
[root@centos ~]# mysql -u root -p
Enter password:
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 3
Server version: 5.1.73 Source distribution

Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql> create databse luntan;
ERROR 1064 (42000): 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 'databse luntan' at line 1
mysql>


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值