当前位置:网站首页>Problems encountered in installing mysql8 for Ubuntu and the detailed installation process
Problems encountered in installing mysql8 for Ubuntu and the detailed installation process
2022-07-07 21:06:00 【No Bug】
I found a blog on the Internet and installed it , But there are still many problems , If you follow the above blog to install mysql8 If there is a problem, you can see the following error summary .
One 、 Initializing mysql Wrong time [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
Before initialization , Bloggers will create one data File storage mysql file , But if I create it in advance and then initialize it, I will report an error , It is recommended to create in advance , Give Way mysql Automatically create .
Two 、 Initialization encountered 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 A high probability is that the file permissions are insufficient .
First, check whether the file path exists , If it doesn't exist, create it manually .
exist chown mysql mysql.log Modify file permissions
3、 ... and 、 Cannot start 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 Add the following content
[client]
port=3306
socket=/var/lib/mysql/mysql.socksocket=/var/lib/mysql/mysql.sock( With this socket The path is the same )
边栏推荐
- HOJ 2245 浮游三角胞(数学啊 )
- Implementation of mahout Pearson correlation
- easyui 日期控件清空值
- Is it safe to open a stock account at present? Can I open an account online directly.
- Intelligent transportation is full of vitality. What will happen in the future? [easy to understand]
- 恶魔奶爸 A3阶段 近常速语流初接触
- FatMouse' Trade(杭电1009)
- Tensorflow2.x下如何运行1.x的代码
- 嵌入式系统真正安全了吗?[ OneSpin如何为开发团队全面解决IC完整性问题 ]
- Is it safe to open an account online now? I want to know where I can open an account in Nanning now?
猜你喜欢
Apifox interface integrated management new artifact
CodeSonar通过创新型静态分析增强软件可靠性
The latest version of codesonar has improved functional security and supports Misra, c++ parsing and visualization
Measure the height of the building
CodeSonar如何帮助无人机查找软件缺陷?
最新版本的CodeSonar改进了功能安全性,支持MISRA,C ++解析和可视化
【OpenCV 例程200篇】223. 特征提取之多边形拟合(cv.approxPolyDP)
如何满足医疗设备对安全性和保密性的双重需求?
Tensorflow2.x下如何运行1.x的代码
程序猿赚的那点钱算个P啊!
随机推荐
Feature generation
Codeforces round 296 (Div. 2) A. playing with paper[easy to understand]
Write a jump table
如何满足医疗设备对安全性和保密性的双重需求?
C语言多角度帮助你深入理解指针(1. 字符指针2. 数组指针和 指针数组 、数组传参和指针传参3. 函数指针4. 函数指针数组5. 指向函数指针数组的指针6. 回调函数)
Unity3d 4.3.4f1执行项目
SQL注入报错注入函数图文详解
程序猿赚的那点钱算个P啊!
Helix QAC 2020.2 new static test tool maximizes the coverage of standard compliance
[concept of network principle]
MinGW MinGW-w64 TDM-GCC等工具链之间的差别与联系「建议收藏」
Cantata9.0 | 全 新 功 能
开户必须往账户里面赚钱吗,资金安全吗?
万字总结数据存储,三大知识点
恶魔奶爸 B3 少量泛读,完成两万词汇量+
【矩阵乘】【NOI 2012】【cogs963】随机数生成器
特征生成
Mysql子查询关键字的使用方式(exists)
数值法求解最优控制问题(〇)——定义
Is it safe to open a stock account at present? Can I open an account online directly.