[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 ]