[root@linuxprobe_nfs local]# cd mysql[root@linuxprobe_nfs mysql]# cp support-files/my-small.cnf /etc/my.cnf
5.授权管理文件
[root@linuxprobe_nfs ~]# chown -R mysql:mysql /usr/local/mysql/[root@linuxprobe_nfs ~]# ls -ld /usr/local/mysql/drwxr-xr-x. 13 mysql mysql 4096 Jun 24 17:21 /usr/local/mysql/
[root@linuxprobe_nfs mysql]# mysqlWelcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 1
Server version: 5.5.32 MySQL Community Server (GPL)
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>
[root@linuxprobe_nfs mysql]# mysqladmin -uroot password 'chenfan'###密码的设置[root@linuxprobe_nfs mysql]# mysql -uroot -pEnter password: chenfan###交互式登陆###至此完成MySQL的全部初始安装与配置