本文为大家分享了mysql workbench安装配置教程,供大家参考,具体内容如下
step0:安装mysql
在按照workbench之前,先安装mysql。指令是
yum install mysql mysql-server mysql-libs mysql-server
关于mysql各个包的功能是:
“mysqlfor the client tools,mysql-serverfor the server and associated tools, andmysql-libsfor the libraries. The libraries are required if you want to provide connectivity from different languages and environments such as Perl, Python and others.”
用yum指令安装的好处是比较方便,坏处是一般yum指令安装的版本都比最新版稍微落后些……
terminal提示complete以后,就说明安装完了。mysql的配置文件被安装到/etc/my.cnf,mysql server的启动脚本被安装到/etc/init.d/mysqld
官方说明:
“A sample configuration file is installed into/etc/my.cnf. An init script, to start and stop the server, will have been installed into/etc/init.d/mysqld.”
启动MySQL server的命令是:
root-shell> service mysqld start
如果想在centOS开机时自动启动MySQL serv