源码编译安装MySQL 5.7.9(3)

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql>

配置通过service启动mysql命令脚本:
[root@linuxidc support-files]# pwd
/export/mysql-5.7.9/support-files

[root@linuxidc support-files]# cp  mysql.server  /etc/init.d/mysqld

[root@linuxidc init.d]# chmod 755 mysqld

[root@linuxidc init.d]# service mysqld start
Starting MySQL.. SUCCESS!

[root@linuxidc init.d]# service mysqld stop
Shutting down MySQL.. SUCCESS!

在自启动项中添加mysqld服务器:
[root@linuxidc ~]# chkconfig --list mysqld
service mysqld supports chkconfig, but is not referenced in any runlevel (run 'chkconfig --add mysqld')

[root@linuxidc ~]# chkconfig --add mysqld

[root@linuxidc ~]# chkconfig --level 345 mysqld on

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

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