centos 6.9 mysql版本_centos的6.9版本安装mysql

[root@centos ~]# yum install mysql-serverLoaded plugins: fastestmirror, security

Setting up Install Process

Loading mirror speedsfromcached hostfile

Resolving Dependencies-->Running transaction check---> Package mysql-server.i686 0:5.1.73-8.el6_8 will be installed--> Processing Dependency: mysql = 5.1.73-8.el6_8 for package: mysql-server-5.1.73-8.el6_8.i686--> Processing Dependency: perl-DBD-MySQL for package: mysql-server-5.1.73-8.el6_8.i686--> Processing Dependency: libmysqlclient_r.so.16(libmysqlclient_16) for package: mysql-server-5.1.73-8.el6_8.i686--> Processing Dependency: libmysqlclient_r.so.16 for package: mysql-server-5.1.73-8.el6_8.i686--> Processing Dependency: libmysqlclient.so.16(libmysqlclient_16) for package: mysql-server-5.1.73-8.el6_8.i686--> Processing Dependency: libmysqlclient.so.16 for package: mysql-server-5.1.73-8.el6_8.i686-->Running transaction check---> Package mysql.i686 0:5.1.73-8.el6_8 will be installed---> Package mysql-libs.i686 0:5.1.73-8.el6_8 will be installed---> Package perl-DBD-MySQL.i686 0:4.013-3.el6 will be installed-->Finished Dependency Resolution

Dependencies Resolved=======================================================================================================================================================================Package Arch Version Repository Size=======================================================================================================================================================================Installing:

mysql-server i686 5.1.73-8.el6_8 os 8.8M

Installingfordependencies:

mysql i6865.1.73-8.el6_8 os 904k

mysql-libs i686 5.1.73-8.el6_8 os 1.2M

perl-DBD-MySQL i686 4.013-3.el6 os 134k

Transaction Summary=======================================================================================================================================================================Install4Package(s)

Total download size:11M

Installed size:31M

Isthis ok [y/N]: y

Downloading Packages:

(1/4): mysql-5.1.73-8.el6_8.i686.rpm | 904 kB 00:01(2/4): mysql-libs-5.1.73-8.el6_8.i686.rpm | 1.2 MB 00:01(3/4): mysql-server-5.1.73-8.el6_8.i686.rpm | 8.8 MB 00:12(4/4): perl-DBD-MySQL-4.013-3.el6.i686.rpm | 134 kB 00:00

-----------------------------------------------------------------------------------------------------------------------------------------------------------------------Total667 kB/s | 11 MB 00:16Running rpm_check_debug

Running Transaction Test

Transaction Test Succeeded

Running Transaction

Installing : mysql-libs-5.1.73-8.el6_8.i686 1/4Installing : perl-DBD-MySQL-4.013-3.el6.i686 2/4Installing : mysql-5.1.73-8.el6_8.i686 3/4Installing : mysql-server-5.1.73-8.el6_8.i686 4/4Verifying : mysql-server-5.1.73-8.el6_8.i686 1/4Verifying : mysql-libs-5.1.73-8.el6_8.i686 2/4Verifying : perl-DBD-MySQL-4.013-3.el6.i686 3/4Verifying : mysql-5.1.73-8.el6_8.i686 4/4Installed:

mysql-server.i686 0:5.1.73-8.el6_8

Dependency Installed:

mysql.i6860:5.1.73-8.el6_8 mysql-libs.i686 0:5.1.73-8.el6_8 perl-DBD-MySQL.i686 0:4.013-3.el6

Complete![root@centos~]# service mysqld startInitializing MySQL database: 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 foryour system

PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER!Todoso, 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 bydefault. This isstrongly recommendedforproduction servers.

See the manualformore 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![ OK ]

Starting mysqld: [ OK ]

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值