当前位置:网站首页>Ubuntu安装mysql8遇到的问题以及详细安装过程
Ubuntu安装mysql8遇到的问题以及详细安装过程
2022-07-07 18:42:00 【No Bug】
在网上找了一篇博客照着安装,但是中间还是出了不少问题,如果跟着以上博文安装mysql8出现问题的话可以看看以下错误总结。
一、在初始化mysql时候报错 [ERROR] [MY-013455] [Server] The newly created data directory /usr/local/mysql/mysql-8.0/data/ by --initialize is unusable. You can remove it.
2022-07-05T13:49:12.012670Z 0 [ERROR] [MY-010119] [Server] Aborting
2022-07-05T13:49:12.012828Z 0 [System] [MY-010910] [Server] /usr/local/mysql/mysql-8.0/bin/mysqld: Shutdown complete (mysqld 8.0.20) MySQL Community Server - GPL.
./mysqld --user=mysql --basedir=/usr/local/mysql/mysql-8.0 --datadir=/usr/local/mysql/data/ --initialize
在初始化之前,博主都会要创建一个data文件存放mysql文件,但是我提前创建再初始化就报错,建议提前创建,让mysql自动创建。
二、 初始化遇到 Could not use /var/log/mysql/mysql.log for logging (error 13 - Permission denied). Turning logging off for the server process. To turn it on again: fix the cause, then either restart the query logging by using "SET GLOBAL GENERAL_LOG=ON" or restart the MySQL server.
could not use 大概率就是文件的权限不够。
先看文件路径是否存在,不存在的话手动创建一下。
存在的话 chown mysql mysql.log 修改文件权限
三、不能启动mysql Job for mysqld.service failed because the control process exited with error code.See "systemctl status mysqld.service" and "journalctl -xe" for details.
vim /etc/my.cnf 把下面内容添加上
[client]
port=3306
socket=/var/lib/mysql/mysql.socksocket=/var/lib/mysql/mysql.sock(跟这个socket路径一样)
边栏推荐
猜你喜欢
复杂因子计算优化案例:深度不平衡、买卖压力指标、波动率计算
Micro service remote debug, nocalhost + rainbow micro service development second bullet
【C语言】指针进阶---指针你真的学懂了吗?
如何满足医疗设备对安全性和保密性的双重需求?
Mongodb由浅入深学习
Measure the height of the building
大厂经典指针笔试题
Small guide for rapid formation of manipulator (12): inverse kinematics analysis
CodeSonar通过创新型静态分析增强软件可靠性
CodeSonar网络研讨会
随机推荐
How to choose fund products? What fund is suitable to buy in July 2022?
Small guide for rapid formation of manipulator (11): standard nomenclature of coordinate system
华为CE交换机下载文件FTP步骤
使用高斯Redis实现二级索引
How to implement safety practice in software development stage
Nebula Importer 数据导入实践
Mrs offline data analysis: process OBS data through Flink job
备份 TiDB 集群到持久卷
Tensorflow2.x下如何运行1.x的代码
Meta Force原力元宇宙系统开发佛萨奇模式
Écrivez une liste de sauts
微服务远程Debug,Nocalhost + Rainbond微服务开发第二弹
复杂因子计算优化案例:深度不平衡、买卖压力指标、波动率计算
Validutil, "Rethinking the setting of semi supervised learning on graphs"
Apifox interface integrated management new artifact
Spark 判断DF为空
开发一个小程序商城需要多少钱?
大厂经典指针笔试题
Deep learning model compression and acceleration technology (VII): mixed mode
Apifox 接口一体化管理新神器