企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
``` useradd mysql cd /usr/local/ tar zxf mysql-5.7.22-linux-glibc2.12-x86_64.tar.gz mv mysql-5.7.22-linux-glibc2.12-x86_64 mysql mkdir /data/mysql/data chown -R mysql:mysql /usr/local/mysql chown -R mysql:mysql /data/mysql/data bin/mysqld --initialize --user=mysql --datadir /data/mysql/data cp support-files/mysql.server /etc/init.d/ /etc/init.d/mysql.server start ``` 简单my ``` [root@db1 ~]# cat /etc/my.cnf [mysqld] datadir=/data/mysql/data port=3308 #log_bin=mysql-bin #binlog_format=ROW #server_id=1 ```