当前位置:网站首页>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 )
边栏推荐
- Mysql子查询关键字的使用方式(exists)
- 目标:不排斥 yaml 语法。争取快速上手
- C语言 整型 和 浮点型 数据在内存中存储详解(内含原码反码补码,大小端存储等详解)
- easyui 日期控件清空值
- FatMouse' Trade (Hangdian 1009)
- H3C s7000/s7500e/10500 series post stack BFD detection configuration method
- CodeSonar如何帮助无人机查找软件缺陷?
- Unity3d 4.3.4f1执行项目
- 写了个 Markdown 命令行小工具,希望能提高园友们发文的效率!
- 【函数递归】简单递归的5个经典例子,你都会吗?
猜你喜欢
CodeSonar通过创新型静态分析增强软件可靠性
Klocwork 代码静态分析工具

软件缺陷静态分析 CodeSonar 5.2 新版发布
Codesonar enhances software reliability through innovative static analysis

使用枚举实现英文转盲文

Details of C language integer and floating-point data storage in memory (including details of original code, inverse code, complement, size end storage, etc.)

如何满足医疗设备对安全性和保密性的双重需求?

CodeSonar网络研讨会
Lex & yacc of Pisa proxy SQL parsing

程序猿赚的那点钱算个P啊!
随机推荐
ERROR: 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your
How to meet the dual needs of security and confidentiality of medical devices?
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
【OpenCV 例程200篇】223. 特征提取之多边形拟合(cv.approxPolyDP)
上海交大最新《标签高效深度分割》研究进展综述,全面阐述无监督、粗监督、不完全监督和噪声监督的深度分割方法
gridView自己定义做时间排版「建议收藏」
How does codesonar help UAVs find software defects?
2022年在启牛开中银股票的账户安全吗?
数值法求解最优控制问题(〇)——定义
Data sorting in string
CodeSonar通过创新型静态分析增强软件可靠性
阿里云有奖体验:如何通过ECS挂载NAS文件系统
目标:不排斥 yaml 语法。争取快速上手
Mahout-Pearson correlation的实现
软件缺陷静态分析 CodeSonar 5.2 新版发布
Postgresql数据库character varying和character的区别说明
恶魔奶爸 B2 突破语法,完成正统口语练习
Micro service remote debug, nocalhost + rainbow micro service development second bullet
恶魔奶爸 指南帖——简易版
Lingyun going to sea | saihe & Huawei cloud: jointly help the sustainable development of cross-border e-commerce industry
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