9、启动mysqld服务
#service mysqld start
10、查看3306端口是否打开。要注意在防火墙中开放该端口
#netstat -atln
免安装版/二进制版安装基本命令概述:
shell> groupadd mysql
shell> useradd -g mysql mysql
shell> cd /usr/local
shell> gunzip < /PATH/TO/MYSQL-VERSION-OS.tar.gz | tar xvf -
shell> ln -s FULL-PATH-TO-MYSQL-VERSION-OS mysql
shell> cd mysql
shell> chown -R mysql .
shell> chgrp -R mysql .
shell> scripts/mysql_install_db –user=mysql
shell> chown -R root .
shell> chown -R mysql data
shell> bin/mysqld_safe –user=mysql &
延伸阅读
文章来源于领测软件测试网 https://www.ltesting.net/