当前位置:网站首页>Linux启动mysql报错
Linux启动mysql报错
2022-07-25 18:01:00 【马丁•路德•王】
前提
1.在linux安装mysql总是启动不了服务,初始化失败。试了很多办法,
大家可以一次按照别人总结出来的办法,虽然对我的情况并没有什么用
删除或者备份 /etc/lib/mysql/ 目录下的文件
再启动,如果还是报错。可以按照我的办法尝试
2. 报错类型
a.initialize specified but the data directory has files in in.Aborting
b.The innodb_system data file ‘ibdata1’ must be writable
解决办法
- 手动初始化
执行命令: mysqld --initialize - 给自己加权限!!!!!!!!!!
执行命令:
mysql5.7之后的版本执行
chmod -R 777 /var/lib/mysql
不是的话搜索mysql目录所在位置
边栏推荐
猜你喜欢

云流化和云桌面有什么关系

Memory and packet buffer management of LwIP

The new version of 3dcat v2.1.3 has been released. You can't miss these three function updates!

Redis source code and design analysis -- 17. Redis event processing
P2P 之 UDP穿透NAT的原理与实现

What scenarios have rust, which is becoming more and more mature, applied?

WPF implements user avatar selector

Sorting also needs to know the information and linked list

STM8S003F3 内部flash调试

Thesis reading_ Multi task learning_ MMoE
随机推荐
Who is responsible for the problems of virtual idol endorsement products?
云VR:虚拟现实专业化的下一步
Redis source code and design analysis -- 16. AOF persistence mechanism
简述冒泡排序与快速排序
Resttemplate realizes the unified encapsulation (printable log) of post, put, delete, get, set request and file upload (batch files and parameters) through generics
WPF 实现用户头像选择器
Cloud VR: the next step of virtual reality specialization
「行话」| 用DevOps高效交付游戏,是种什么体验?
Polynomial addition
Several implementations of PHP to solve concurrency problems
OV7725 yuv 640*[email protected] 配置文件
Oracle使用impdp导入报错:ORA-39001: 参数值无效 ORA-39000: 转储文件说明错误 ORA-39088: 文件名不能包含路径说明
Introduction to cloud XR and development opportunities of cloud XR in 5g Era
Postman快速上手
如何选择数字孪生可视化平台
软件测试基础知识(思维导图)
PageHelper can also be combined with lambda expressions to achieve concise paging encapsulation
简述Synchronized以及锁升级
Redis source code and design analysis -- 18. Analysis of redis network connection Library
推荐一个沁恒的蓝牙的参考博客