文章插图
10 初始化系统库表
mysqld --initialize-insecure --user=mysqlxyz --basedir=/opt/mysqlxyz/database/mysql-5.7.35 --datadir=/opt/mysqlxyz/data
![CentOS 7.9 安装 MySQL 5.7.35](http://shimg.jingyanzongjie.com/230725/05393350P-12.png)
文章插图
联网状态或者有yum源可以直接安装缺失的包文件:
yum install libncurses* -y
再次执行cd /opt/mysqlxyz/datamysqld --initialize-insecure --user=mysqlxyz --basedir=/opt/mysqlxyz/database/mysql-5.7.35 --datadir=/opt/mysqlxyz/data
![CentOS 7.9 安装 MySQL 5.7.35](http://shimg.jingyanzongjie.com/230725/053933O02-13.png)
文章插图
配置文件设置cat > /etc/my.cnf << EOF[mysqld]user=mysqlxyzbasedir=/opt/mysqlxyz/database/mysql-5.7.38-linux-glibc2.12-x86_64datadir=/opt/mysqlxyz/dataport=3306socket=/tmp/mysql57.sockserver_id=6[mysql]socket=/tmp/mysql57.sockEOF 启动脚本[root@localhost support-files]# pwd/opt/mysqlxyz/database/mysql-5.7.38-linux-glibc2.12-x86_64/support-filescp mysql.server /etc/init.d/mysqldchkconfig --add mysqldsystemctl start mysqld CnetOS8安装mysql之后,使用mysql -uroot -p时遇到以下问题:mysql: error while loading shared libraries: libncurses.so.5: cannot open shared object file: No such file or directory联网状态或者有yum源可以直接安装缺失的包文件:yum install libncurses* -y
经验总结扩展阅读
- 关于windows-server-下MySQL Community版本的的安装与配置
- HBase1.4.6安装搭建及shell命令使用
- WinDbg Preview安装以及符号表配置
- Qt Designer、PyUIC、PyRcc PyCharm安装PyQt5及其工具详细教程
- 群晖drive
- CentOS 7 下安装 MySQL 8.x
- centos7系统资源限制整理
- 为什么qq音乐安装不了
- 开关插座安装注意事项有哪些
- 18-基于CentOS7搭建RabbitMQ3.10.7集群镜像队列+HaProxy+Keepalived高可用架构