当前位置:网站首页>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 )
边栏推荐
- openGl超级宝典学习笔记 (1)第一个三角形「建议收藏」
- Alibaba cloud award winning experience: how to mount NAS file system through ECS
- Word inversion implements "suggestions collection"
- 嵌入式系统真正安全了吗?[ OneSpin如何为开发团队全面解决IC完整性问题 ]
- 恶魔奶爸 C
- ERROR: 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your
- Phoenix JDBC
- OneSpin 360 DV新版发布,刷新FPGA形式化验证功能体验
- How does codesonar help UAVs find software defects?
- Apifox interface integrated management new artifact
猜你喜欢
Ubuntu安装mysql8遇到的问题以及详细安装过程
Codesonar enhances software reliability through innovative static analysis
ISO 26262 - 基于需求测试以外的考虑因素
AADL inspector fault tree safety analysis module
最新版本的CodeSonar改进了功能安全性,支持MISRA,C ++解析和可视化
软件缺陷静态分析 CodeSonar 5.2 新版发布
Don't fall behind! Simple and easy-to-use low code development to quickly build an intelligent management information system
Tensorflow2.x下如何运行1.x的代码
解决使用uni-app MediaError MediaError ErrorCode -5
OneSpin 360 DV新版发布,刷新FPGA形式化验证功能体验
随机推荐
华泰证券可以做到万一佣金吗,万一开户安全嘛
恶魔奶爸 B3 少量泛读,完成两万词汇量+
[award publicity] issue 22 publicity of the award list in June 2022: Community star selection | Newcomer Award | blog synchronization | recommendation Award
A brief understanding of the in arc__ bridge、__ bridge_ Retained and__ bridge_ transfer
恶魔奶爸 A0 英文零基础的自我提升路
Tensorflow2. How to run under x 1 Code of X
Small guide for rapid formation of manipulator (11): standard nomenclature of coordinate system
How to choose fund products? What fund is suitable to buy in July 2022?
智能软件分析平台Embold
写了个 Markdown 命令行小工具,希望能提高园友们发文的效率!
FatMouse' Trade (Hangdian 1009)
easyui 日期控件清空值
ERROR: 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your
Guava multithreading, futurecallback thread calls are uneven
DataTable数据转换为实体
特征生成
HDU4876ZCC loves cards(多校题)
npm uninstall和rm直接删除的区别
MySQL约束之默认约束default与零填充约束zerofill
uva 12230 – Crossing Rivers(概率)「建议收藏」