更改环境变量


[root@CentOS-003 ~]# vim ~/.bash_profile

[root@CentOS-003 ~]# source ~/.bash_profile


[root@CentOS-003 ~]# vim /etc/profile

[root@CentOS-003 ~]# source /etc/profile


[root@CentOS-003 ~]# vim /etc/profile.d/env-new.sh

[root@CentOS-003 ~]# source /etc/profile.d/env-new.sh



export PATH="$PATH":/usr/local/mysql/bin/