当前位置:网站首页>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 )
边栏推荐
- C语言多角度帮助你深入理解指针(1. 字符指针2. 数组指针和 指针数组 、数组传参和指针传参3. 函数指针4. 函数指针数组5. 指向函数指针数组的指针6. 回调函数)
- Klocwork code static analysis tool
- Lingyun going to sea | saihe & Huawei cloud: jointly help the sustainable development of cross-border e-commerce industry
- Écrivez une liste de sauts
- Is it safe to open a stock account at present? Can I open an account online directly.
- 恶魔奶爸 B1 听力最后壁垒,一鼓作气突破
- Codeforces 474 F. Ant colony
- [matrix multiplication] [noi 2012] [cogs963] random number generator
- Lingyun going to sea | yidiantianxia & Huawei cloud: promoting the globalization of Chinese e-commerce enterprise brands
- Implement secondary index with Gaussian redis
猜你喜欢

OneSpin 360 DV新版发布,刷新FPGA形式化验证功能体验

H3C s7000/s7500e/10500 series post stack BFD detection configuration method

神兵利器——敏感文件发现工具
MySQL storage expression error
Lex & yacc of Pisa proxy SQL parsing
Klocwork 代码静态分析工具

使用枚举实现英文转盲文

How does codesonar help UAVs find software defects?

Measure the height of the building
![嵌入式系统真正安全了吗?[ OneSpin如何为开发团队全面解决IC完整性问题 ]](/img/af/61b384b1b6ba46aa1a6011f8a30085.png)
嵌入式系统真正安全了吗?[ OneSpin如何为开发团队全面解决IC完整性问题 ]
随机推荐
Helix QAC 2020.2 new static test tool maximizes the coverage of standard compliance
Tensorflow2.x下如何运行1.x的代码
AADL inspector fault tree safety analysis module
数值法求解最优控制问题(〇)——定义
【矩阵乘】【NOI 2012】【cogs963】随机数生成器
开户必须往账户里面赚钱吗,资金安全吗?
目标:不排斥 yaml 语法。争取快速上手
awk处理JSON处理
Object-C programming tips timer "suggestions collection"
恶魔奶爸 B3 少量泛读,完成两万词汇量+
ERROR: 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your
Klocwork 代码静态分析工具
UVA 11080 – place the guards
恶魔奶爸 B1 听力最后壁垒,一鼓作气突破
部署、收回和删除解决方式—-STSADM和PowerShell「建议收藏」
C语言多角度帮助你深入理解指针(1. 字符指针2. 数组指针和 指针数组 、数组传参和指针传参3. 函数指针4. 函数指针数组5. 指向函数指针数组的指针6. 回调函数)
[paper reading] maps: Multi-Agent Reinforcement Learning Based Portfolio Management System
Mahout-Pearson correlation的实现
如何满足医疗设备对安全性和保密性的双重需求?
[uvalive 6663 count the regions] (DFS + discretization) [easy to understand]
https://blog.csdn.net/qq_35124072/article/details/122867295?ops_request_misc=%257B%2522request%255Fid%2522%253A%2522165702417916781667814164%2522%252C%2522scm%2522%253A%252220140713.130102334..%2522%257D&request_id=165702417916781667814164&biz_id=0&utm_medium=distribute.pc_search_result.none-task-blog-2~all~baidu_landing_v2~default-4-122867295-null-null.142^v31^control,185^v2^tag_show&utm_term=linux+%E5%AE%89%E8%A3%85mysql8.0&spm=1018.2226.3001.4187