e AIO
2014-05-05 17:59:56 5752 [Note] InnoDB: Not using CPU crc32 instructions
2014-05-05 17:59:56 5752 [Note] InnoDB: Initializing buffer pool, size = 128.0M
2014-05-05 17:59:56 5752 [Note] InnoDB: Completed initialization of buffer pool
2014-05-05 17:59:56 5752 [Note] InnoDB: Highest supported file format is Barracuda.
2014-05-05 17:59:56 5752 [Note] InnoDB: 128 rollback segment(s) are active.
2014-05-05 17:59:56 5752 [Note] InnoDB: Waiting for purge to start
2014-05-05 17:59:56 5752 [Note] InnoDB: 5.6.17 started; log sequence number 1625977
2014-05-05 17:59:56 5752 [Note] Binlog end
2014-05-05 17:59:56 5752 [Note] InnoDB: FTS optimize thread exiting.
2014-05-05 17:59:56 5752 [Note] InnoDB: Starting shutdown...
2014-05-05 17:59:58 5752 [Note] InnoDB: Shutdown completed; log sequence number 1625987
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 at http://bugs.mysql.com/
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-server-5.5.37-1.el6.i686.rpm ,该版本较低,可能会报错如下:
[root@localhost mysql]# rpm -ivh MySQL-server-5.5.37-1.el6.i686.rpm
error: Failed dependencies:
libc.so.6(GLIBC_2.12) is needed by MySQL-server-5.5.37-1.el6.i686
libc.so.6(GLIBC_2.7) is needed by MySQL-server-5.5.37-1.el6.i686
rpmlib(FileDigests) <= 4.6.0-1 is needed by MySQL-server-5.5.37-1.el6.i686
rpmlib(PayloadIsXz) <= 5.2-1 is needed by MySQL-server-5.5.37-1.el6.i686
[root@localhost mysql]# 此时,可选择安装高版本mysql,或者安装完所有依赖后,再安装mysql(较繁琐)。?
1.2、安装MySQL-client-5.6.17-1.linux_glibc2.5.i386.rpm
[root@localhost mysql]# rpm -ivh MySQL-client-5.6.17-1.linux_glibc2.5.i386.rpm
Preparing... ########################################### [100%]
1:MySQL-client ########################################### [100%]
[root@localhost mysql]#?
1.3、安装MySQL-devel-5.6.17-1.linux_glibc2.5.i386.rpm
[root@localhost mysql]# rpm -ivh MySQL-devel-5.6.17-1.linux_glibc2.5.i386.rpm
Preparing... ########################################### [100%]
1:MySQL-devel ########################################### [100%]
[root@localhost mysql]#
二、测试
通过命令行连接mysql数据库,测试是否安装成功:
输入测试命令如下:
mysql -uroot -p
由于mysql安装后,默认密码为空。??
上述命令可能导致登陆失败如下:?
Warning: Using a password on the command line interface can be insecure.
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
此时,可尝试如下操作:
先关闭mysql:
service mysql stop
接着以安全模式开启mysql进程(若不先关闭,会报mysql进程已存在),?
[root@localhost home]# mysqld_safe --skip-grant-tables &mysql -u root
[1] 5257
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
[root@localhost home]# 140910 13:13:08 mysqld_safe Loggin