当前位置:网站首页>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路径一样)
边栏推荐
- Lingyun going to sea | saihe & Huawei cloud: jointly help the sustainable development of cross-border e-commerce industry
- You want to kill a port process, but you can't find it in the service list. You can find this process and kill it through the command line to reduce restarting the computer and find the root cause of
- 数值法求解最优控制问题(〇)——定义
- 《数字图像处理原理与实践(MATLAB版)》一书之代码Part2[通俗易懂]
- One click deployment of any version of redis
- 程序猿赚的那点钱算个P啊!
- AIRIOT助力城市管廊工程,智慧物联守护城市生命线
- 凌云出海记 | 易点天下&华为云:推动中国电商企业品牌全球化
- 恶魔奶爸 B2 突破语法,完成正统口语练习
- 机械臂速成小指南(十一):坐标系的标准命名
猜你喜欢
Nebula importer data import practice
Static analysis of software defects codesonar 5.2 release
Tensorflow2. How to run under x 1 Code of X
Small guide for rapid formation of manipulator (12): inverse kinematics analysis
嵌入式系统真正安全了吗?[ OneSpin如何为开发团队全面解决IC完整性问题 ]
Cantata9.0 | new features
使用高斯Redis实现二级索引
Mysql子查询关键字的使用方式(exists)
Codesonar Webinar
大厂经典指针笔试题
随机推荐
大厂经典指针笔试题
C语言 整型 和 浮点型 数据在内存中存储详解(内含原码反码补码,大小端存储等详解)
《数字图像处理原理与实践(MATLAB版)》一书之代码Part2[通俗易懂]
Splicing and splitting of integer ints
开发一个小程序商城需要多少钱?
寫一下跳錶
Klocwork code static analysis tool
想杀死某个端口进程,但在服务列表中却找不到,可以之间通过命令行找到这个进程并杀死该进程,减少重启电脑和找到问题根源。
智能软件分析平台Embold
Small guide for rapid formation of manipulator (11): standard nomenclature of coordinate system
Micro service remote debug, nocalhost + rainbow micro service development second bullet
Airiot helps the urban pipe gallery project, and smart IOT guards the lifeline of the city
Implement secondary index with Gaussian redis
备份 TiDB 集群到持久卷
Codesonar Webinar
Helix QAC 2020.2 new static test tool maximizes the coverage of standard compliance
Guava multithreading, futurecallback thread calls are uneven
I wrote a markdown command line gadget, hoping to improve the efficiency of sending documents by garden friends!
Nebula Importer 数据导入实践
神兵利器——敏感文件发现工具