CentOS 6.8 编译安装MySQL 5.6.23(2)

cp support-files/mysql.server /etc/init.d/mysqld 
vim /etc/profile.d/mysql.sh
    PATH=/usr/local/mysql/bin:/usr/local/mysql/lib:$PATH
    export PATH
source /etc/profile.d/mysql.sh

启动MySQL并增加启动项
service mysqld start 
chkconfig  mysqld on

设置MySQL登录权限
drop user ''@localhost;
drop user ''@hostname;
update mysql.user set password=password('*******');
flush privileges;

至此,MySQL编译安装完成。

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/5446c391e07174de43341a8844b375d9.html