shell> groupadd mysql
shell> useradd -g mysql mysql
shell> tar zxvf mysql-5.0.22.tar.gz
shell> cd mysql-5.0.22
shell> ./configure --prefix=/usr/local/mysql
shell> make
shell> make install
shell> cp support-files/my-medium.cnf /etc/my.cnf
shell> cd /usr/local/mysql
shell> bin/mysql_install_db --user=mysql //创建MySQL授权表
shell> chown -R root .
shell> chown -R mysql var
shell> chgrp -R mysql .
shell> bin/mysqld_safe --user=mysql & //启动MYSQL服务器
shell>bin/mysqladmin -u root password "123456"//修改 mysql 的 root 密码
----------------------
上面是安装过程,如何让mysql随系统自行运行。
SNORT安装第一步--mysql
最新推荐文章于 2023-04-20 22:29:28 发布