centos6.5 安装 mysql 5.7
2023-12-20 08:48:08
shell> mysql ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) ? shell> service mysqld restart Stopping mysqld: ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? [ ?OK ?] MySQL Daemon failed to start. Starting mysqld: ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? [FAILED] ? #日志中报错如下: [ERROR] Fatal error: mysql.user table is damaged. Please run mysql_upgrade. [ERROR] Aborting ? #这种情况本人是在MySQL5.1到5.7版本升级时遇到的,升级到5.7后,数据库启动失败 #解决的办法就是重新初始化数据库 ? shell> rm -fr /var/lib/mysql shell> mysqld --initialize --user=mysql shell> service mysqld restart Stopping mysqld: ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? [ ?OK ?] Starting mysqld: ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? [ ?OK ?]
Mysql启动报错:InnoDB: Operating system error number 13 in a file operation.的解决方法
是系统问题,解决方案如下:root@localhost mysql_data]# ? ? ? ? ? ? ? getenforce
Enforcing
[root@localhost mysql_data]# setenforce 0?
[root@localhost mysql_data]# getenforce
Permissivehttps://www.cnblogs.com/centos2017/p/7896808.html
?/etc/my.cnf 里面有mysql的日志
看系统版本号
cat /etc/redhat-release
centos6.5安装mysql5.7
- rpm -qa | grep mysql?# 检查是否安装过 MySQL
- rpm -qa | grep mariadb?# 检查是否存在 mariadb 数据库(内置的 MySQL 数据库),有则强制删除
- rpm -e --nodeps mariadb-libs-5.5.68-1.el7.x86_64?# 强制删除
- rpm -e --nodeps mariadb-5.5.68-1.el7.x86_64?# 强制删除
下载到当前文件夹
?curl -O?repo.mysql.com//mysql57-community-release-el7-11.noarch.rpm
文章来源:https://blog.csdn.net/qq_38809741/article/details/135040431
本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。 如若内容造成侵权/违法违规/事实不符,请联系我的编程经验分享网邮箱:veading@qq.com进行投诉反馈,一经查实,立即删除!
本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。 如若内容造成侵权/违法违规/事实不符,请联系我的编程经验分享网邮箱:veading@qq.com进行投诉反馈,一经查实,立即删除!