当前位置:网站首页>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 )
边栏推荐
- Validutil, "Rethinking the setting of semi supervised learning on graphs"
- 如何满足医疗设备对安全性和保密性的双重需求?
- [paper reading] maps: Multi-Agent Reinforcement Learning Based Portfolio Management System
- Codeforces Round #296 (Div. 2) A. Playing with Paper[通俗易懂]
- C language helps you understand pointers from multiple perspectives (1. Character pointers 2. Array pointers and pointer arrays, array parameter passing and pointer parameter passing 3. Function point
- Postgresql数据库character varying和character的区别说明
- 目标:不排斥 yaml 语法。争取快速上手
- I have to use my ID card to open an account. Is the bank card safe? I don't understand it
- Phoenix JDBC
- uva 12230 – Crossing Rivers(概率)「建议收藏」
猜你喜欢
Measure the height of the building
Nebula importer data import practice
MySQL约束之默认约束default与零填充约束zerofill
Nebula Importer 数据导入实践
嵌入式系统真正安全了吗?[ OneSpin如何为开发团队全面解决IC完整性问题 ]
如何满足医疗设备对安全性和保密性的双重需求?
Small guide for rapid formation of manipulator (11): standard nomenclature of coordinate system
Klocwork code static analysis tool
Onespin | solve the problems of hardware Trojan horse and security trust in IC Design
95年专注安全这一件事 沃尔沃未来聚焦智能驾驶与电气化领域安全
随机推荐
Spark judges that DF is empty
解决使用uni-app MediaError MediaError ErrorCode -5
OneSpin | 解决IC设计中的硬件木马和安全信任问题
95年专注安全这一件事 沃尔沃未来聚焦智能驾驶与电气化领域安全
Do you have to make money in the account to open an account? Is the fund safe?
FatMouse' Trade (Hangdian 1009)
Apifox interface integrated management new artifact
MinGW MinGW-w64 TDM-GCC等工具链之间的差别与联系「建议收藏」
Details of C language integer and floating-point data storage in memory (including details of original code, inverse code, complement, size end storage, etc.)
【矩阵乘】【NOI 2012】【cogs963】随机数生成器
嵌入式系统真正安全了吗?[ OneSpin如何为开发团队全面解决IC完整性问题 ]
开户必须往账户里面赚钱吗,资金安全吗?
[paper reading] maps: Multi-Agent Reinforcement Learning Based Portfolio Management System
Cocos2d-x game archive [easy to understand]
Unity3d 4.3.4f1执行项目
权限不足
MySQL约束之默认约束default与零填充约束zerofill
如何挑选基金产品?2022年7月份适合买什么基金?
使用高斯Redis实现二级索引
[UVALive 6663 Count the Regions] (dfs + 离散化)[通俗易懂]