1.安装Linux系统中自带的MySQL安装包
  在现在常用的发行版本里都集中了MySQL安装包
  CentOS系统中的YUM中包含了MySQL安装包,版本是MySQL5,rpm软件包的名称是mysql-server
  yum list | grep mysql:这条命令是将YUM仓库里包含MySQL的软件包都列出来。
  在执行上面命令后所列出的软件包中mysql.i686是一个MySQL的客户端,而mysql-server是MySQL的服务端;一般情况下,会把MySQL服务端,客户端都装上,也可以把开发相关的部件都装上,其命令为:
  yum install -y mysql-server mysql mysql-devel
  查询软件版本的信息:rpm -qi mysql-server
  service mysqld start:对mysql进行初始化,这是将mysql启动起来,自动对mysql进行初始化。mysql服务叫mysqld
  给mysql的root用户进行初始化并设置密码:
  mysqladmin -u root password '密码'
  登陆mysql用root用户登陆,并验证密码:mysql -u root -p
  设置mysql随着计算机的启动而自动启动:chkconfig mysql on
  查看mysql的配置文件(my.cnf),这个文件保存在etc目录下:cd /etc ls my.cnf
  查看mysql配置文件中的内容:cat my.cnf
  mysql的数据文件保存在/var/lib/mysql,如果我们新建一个数据库,那么在这个文件夹中会多一个以新建数据库名的文件夹,这个文件夹中中保存着新建数据库的数据文件(另外查看mysql配置文件中的内容时其中datadir为设置mysql数据文件的保存位置,可以修改)
  mysql的日志文件保存在/var/log文件夹下,在这个文件夹中有一个mysqld.log,这个文件保存着mysql报错信息和其他信息。
  netstat -tupln 查看哪些服务监听哪些端口
  2.安装自己下载新的MySQL安装包
  1)第一步:rpm -ivh MySQL-client-5.6.11-2.el6.i686.rpm  MySQL-server-5.6.11-2.el6.i686.rpm
  上面这句话,虽然把client放到server的前面,  但是安装的时候还是先安装server,毕竟,没有server,客户端client连什么去
  安装完毕 ,会出现下面的信息
A RANDOM PASSWORD HAS BEEN SET FOR THE MySQL root USER !
You will find that password in '/root/.mysql_secret'.
You must change that password on your first connect,
no other statement but 'SET PASSWORD' will be accepted.
See the manual for the semantics of the 'password expired' flag.
Also, the account for the anonymous user has been removed.
In addition, you can run:
/usr/bin/mysql_secure_installation
which will also give you the option of removing the test database.
This is strongly recommended for production servers.
See the manual for more instructions.
Please report any problems with the /usr/bin/mysqlbug script!
The latest information about MySQL is available on the web at
http://www.mysql.com
Support MySQL by buying support/licenses at http://shop.mysql.com
New default config file was created as /usr/my.cnf and
will be used by default by the server when you start it.
You may edit this file to change server settings
  意思是告诉我们,MySQL安装成功!但不接受任何命令,除非先设置密码(SET PASSWORD),默认密码放到 '/root/.mysql_secret'里了