MySql启动错误(Mac系统 安装 mysql-8.0.32-macos13-arm64 后每次点击启动 无法启动) --- 已解决
创始人
2024-05-28 20:15:11
0

MySql启动的时候:
立即变红!
在这里插入图片描述
在这里插入图片描述
查看日志如下:

2023-03-04T14:18:01.089671Z 0 [System] [MY-010910] [Server] /usr/local/mysql/bin/mysqld: Shutdown complete (mysqld 8.0.32) MySQL Community Server - GPL.
2023-03-04T14:18:10.304169Z 0 [System] [MY-010116] [Server] /usr/local/mysql/bin/mysqld (mysqld 8.0.32) starting as process 90802
2023-03-04T14:18:10.305283Z 0 [Warning] [MY-010159] [Server] Setting lower_case_table_names=2 because file system for /usr/local/mysql/data/ is case insensitive
2023-03-04T14:18:10.311468Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started.
2023-03-04T14:18:10.348218Z 1 [System] [MY-013577] [InnoDB] InnoDB initialization has ended.
2023-03-04T14:18:10.402146Z 0 [Warning] [MY-010068] [Server] CA certificate ca.pem is self signed.
2023-03-04T14:18:10.402165Z 0 [System] [MY-013602] [Server] Channel mysql_main configured to support TLS. Encrypted connections are now supported for this channel.
2023-03-04T14:18:10.402690Z 0 [ERROR] [MY-010270] [Server] Can’t start server : Bind on unix socket: Address already in use
2023-03-04T14:18:10.402705Z 0 [ERROR] [MY-010258] [Server] Do you already have another mysqld server running on socket: /tmp/mysql.sock ?
2023-03-04T14:18:10.402716Z 0 [ERROR] [MY-010119] [Server] Aborting
2023-03-04T14:18:11.426648Z 0 [System] [MY-010910] [Server] /usr/local/mysql/bin/mysqld: Shutdown complete (mysqld 8.0.32) MySQL Community Server - GPL.
2023-03-04T14:18:11.634935Z 0 [System] [MY-010116] [Server] /usr/local/mysql/bin/mysqld (mysqld 8.0.32) starting as process 90815
2023-03-04T14:18:11.636077Z 0 [Warning] [MY-010159] [Server] Setting lower_case_table_names=2 because file system for /usr/local/mysql/data/ is case insensitive
2023-03-04T14:18:11.641653Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started.
2023-03-04T14:18:11.678424Z 1 [System] [MY-013577] [InnoDB] InnoDB initialization has ended.
2023-03-04T14:18:11.732748Z 0 [Warning] [MY-010068] [Server] CA certificate ca.pem is self signed.
2023-03-04T14:18:11.732766Z 0 [System] [MY-013602] [Server] Channel mysql_main configured to support TLS. Encrypted connections are now supported for this channel.
2023-03-04T14:18:11.733128Z 0 [ERROR] [MY-010270] [Server] Can’t start server : Bind on unix socket: Address already in use
2023-03-04T14:18:11.733136Z 0 [ERROR] [MY-010258] [Server] Do you already have another mysqld server running on socket: /tmp/mysql.sock ?
2023-03-04T14:18:11.733147Z 0 [ERROR] [MY-010119] [Server] Aborting
2023-03-04T14:18:12.759526Z 0 [System] [MY-010910] [Server] /usr/local/mysql/bin/mysqld: Shutdown complete (mysqld 8.0.32) MySQL Community Server - GPL.
2023-03-04T14:18:21.964683Z 0 [System] [MY-010116] [Server] /usr/local/mysql/bin/mysqld (mysqld 8.0.32) starting as process 90895
2023-03-04T14:18:21.965772Z 0 [Warning] [MY-010159] [Server] Setting lower_case_table_names=2 because file system for /usr/local/mysql/data/ is case insensitive
2023-03-04T14:18:21.971112Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started.
2023-03-04T14:18:22.007750Z 1 [System] [MY-013577] [InnoDB] InnoDB initialization has ended.
2023-03-04T14:18:22.062324Z 0 [Warning] [MY-010068] [Server] CA certificate ca.pem is self signed.
2023-03-04T14:18:22.062343Z 0 [System] [MY-013602] [Server] Channel mysql_main configured to support TLS. Encrypted connections are now supported for this channel.
2023-03-04T14:18:22.062737Z 0 [ERROR] [MY-010270] [Server] Can’t start server : Bind on unix socket: Address already in use
2023-03-04T14:18:22.062744Z 0 [ERROR] [MY-010258] [Server] Do you already have another mysqld server running on socket: /tmp/mysql.sock ?
2023-03-04T14:18:22.062756Z 0 [ERROR] [MY-010119] [Server] Aborting
2023-03-04T14:18:23.087191Z 0 [System] [MY-010910] [Server] /usr/local/mysql/bin/mysqld: Shutdown complete (mysqld 8.0.32) MySQL Community Server - GPL.

解决方案:
这个错误显示MySQL服务器无法启动,因为另一个mysqld服务器正在使用地址/tmp/mysql.sock。这通常是由于上一次MySQL服务器没有正常关闭而导致的。为解决此问题,您可以尝试以下步骤:

确保所有MySQL服务器进程都已停止。您可以使用以下命令检查:

Copy code
ps -ef | grep mysql
如果有任何MySQL服务器进程在运行,请使用以下命令停止它们:
Copy code
sudo kill -9 <进程ID>
删除MySQL的socket文件/tmp/mysql.sock:
Copy code
sudo rm /tmp/mysql.sock
重新启动MySQL服务器:
Copy code
sudo service mysql start

相关内容

热门资讯

监控摄像头接入GB28181平... 流程简介将监控摄像头的视频在网站和APP中直播,要解决的几个问题是:1&...
Windows10添加群晖磁盘... 在使用群晖NAS时,我们需要通过本地映射的方式把NAS映射成本地的一块磁盘使用。 通过...
protocol buffer... 目录 目录 什么是protocol buffer 1.protobuf 1.1安装  1.2使用...
在Word、WPS中插入AxM... 引言 我最近需要写一些文章,在排版时发现AxMath插入的公式竟然会导致行间距异常&#...
【PdgCntEditor】解... 一、问题背景 大部分的图书对应的PDF,目录中的页码并非PDF中直接索引的页码...
修复 爱普生 EPSON L4... L4151 L4153 L4156 L4158 L4163 L4165 L4166 L4168 L4...
Fluent中创建监测点 1 概述某些仿真问题,需要创建监测点,用于获取空间定点的数据࿰...
educoder数据结构与算法...                                                   ...
MySQL下载和安装(Wind... 前言:刚换了一台电脑,里面所有东西都需要重新配置,习惯了所...
MFC文件操作  MFC提供了一个文件操作的基类CFile,这个类提供了一个没有缓存的二进制格式的磁盘...