[MY-010273] [Server] Could not create unix socket lock file /var/run/mysqld/mysqld.sock.lock.问题解决

博文背景

本人在Ubuntu20.04系统下使用apt安装MySQL8后直接使用mysqld命令启动会发现无法启动成功,查看日志遇到[MY-010273] [Server] Could not create unix socket lock file /var/run/mysqld/mysqld.sock.lock.的报错。

日志分析
2020-09-25T01:23:33.191419Z 0 [System] [MY-010116] [Server] /usr/sbin/mysqld (mysqld 8.0.21-0ubuntu0.20.04.4) starting as process 1712
2020-09-25T01:23:33.206763Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started.
2020-09-25T01:23:33.476816Z 1 [System] [MY-013577] [InnoDB] InnoDB initialization has ended.
2020-09-25T01:23:33.593919Z 0 [ERROR] [MY-011300] [Server] Plugin mysqlx reported: 'Setup of socket: '/var/run/mysqld/mysqlx.sock' failed, can't create lock file /var/run/mysqld/mysqlx.sock.lock'
2020-09-25T01:23:33.594205Z 0 [System] [MY-011323] [Server] X Plugin ready for connections. Bind-address: '::' port: 33060
2020-09-25T01:23:33.698046Z 0 [Warning] [MY-010068] [Server] CA certificate ca.pem is self s
./mysqld --user=mysql --basedir=/usr/local/mysql --datadir=/usr/local/mysql/data 2025-09-22T03:48:39.619026Z 0 [Warning] [MY-011070] [Server] 'Disabling symbolic links using --skip-symbolic-links (or equivalent) is the default. Consider not using this option as it' is deprecated and will be removed in a future release. 2025-09-22T03:48:39.619174Z 0 [System] [MY-010116] [Server] /usr/local/mysql/bin/mysqld (mysqld 8.0.27) starting as process 4126362 2025-09-22T03:48:39.634126Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started. 2025-09-22T03:48:39.813730Z 1 [System] [MY-013577] [InnoDB] InnoDB initialization has ended. 2025-09-22T03:48:40.081531Z 0 [Warning] [MY-013746] [Server] A deprecated TLS version TLSv1 is enabled for channel mysql_main 2025-09-22T03:48:40.081562Z 0 [Warning] [MY-013746] [Server] A deprecated TLS version TLSv1.1 is enabled for channel mysql_main 2025-09-22T03:48:40.082497Z 0 [Warning] [MY-010068] [Server] CA certificate ca.pem is self signed. 2025-09-22T03:48:40.082541Z 0 [System] [MY-013602] [Server] Channel mysql_main configured to support TLS. Encrypted connections are now supported for this channel. 2025-09-22T03:48:40.082976Z 0 [ERROR] [MY-010273] [Server] Could not create unix socket lock file /usr/local/mysql/mysql.sock.lock. 2025-09-22T03:48:40.083002Z 0 [ERROR] [MY-010268] [Server] Unable to setup unix socket lock file. 2025-09-22T03:48:40.083258Z 0 [ERROR] [MY-010119] [Server] Aborting 2025-09-22T03:48:41.582631Z 0 [System] [MY-010910] [Server] /usr/local/mysql/bin/mysqld: Shutdown complete (mysqld 8.0.27) MySQL Community Server - GPL.
09-23
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值