当前位置:网站首页>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目录所在位置
边栏推荐
- Auditing related notes
- 排序还需要了解的信息以及链表
- 二叉树的相关操作
- Talking about Devops monitoring, how does the team choose monitoring tools?
- ROS learning notes (IV) ROS cannot solve rosdep init or update
- Idea essential plug-ins
- 2022/7/23
- RestTemplate通过泛型实现POST、PUT、DELETE、GET、集合请求以及文件上传(可批量文件、可带参数)的统一封装(可打印日志)
- What are the advantages of real-time cloud rendering
- Sorting also needs to know the information and linked list
猜你喜欢

What is an IP SSL certificate and how to apply for it?

Wu Enda's machine learning programming operation cannot be suspended pause problem solved

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

「数字安全」警惕 NFT的七大骗局

Why the future of digitalization depends on 3D real-time rendering

Installation and operation instructions of SVN client (TortoiseSVN)

"Digital security" alert NFT's seven Scams

WPF implements user avatar selector

BiSeNet v1

Food safety | eight questions and eight answers take you to know crayfish again! This is the right way to eat!
随机推荐
Recommend a qinheng Bluetooth reference blog
如何判断静态代码质量分析工具的性能?这五大因素必须考虑
C LINQ de Duplication & de duplication sum
ORB_SLAM3复现——上篇
Creation of unity Bezier curve
What is an IP SSL certificate and how to apply for it?
Several implementations of PHP to solve concurrency problems
Food safety | eight questions and eight answers take you to know crayfish again! This is the right way to eat!
Installation and operation instructions of SVN client (TortoiseSVN)
Why the future of digitalization depends on 3D real-time rendering
图的相关操作
Cross validation (CV) learning notes
mysql case when
C语言 cJSON库的使用
go channel简单笔记
"Digital security" alert NFT's seven Scams
为什么数字化未来取决于3D实时渲染
MySQL数据库常用命令
Oracle导入出错:IMP-00038: 无法转换为环境字符集句柄
Postman get started quickly