[root@lnmp mysql]# tail -1 /etc/profilePATH=/application/mysql/bin/:$PATH
[root@lnmp mysql]# source /etc/profile
[root@lnmp mysql]# mysql_secure_installation
回车 设置密码
y
n
y
y
7.登录mysql测试
[root@lnmp mysql]# mysql -uroot -p000000
Welcome tothe MySQL monitor. Commands endwith ; or \g.
Your MySQL connection idis8
Server version: 5.5.32 MySQL Community Server (GPL)
Copyright (c) 2000, 2013, Oracle and/orits affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/orits
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>