The MySQL Connectors and APIs are the drivers and libraries that you use to connect applications in different programming languages to MySQL database servers. The application and database server can be on the same machine, or communicate across the network.
执行mysql指令进入MySQL数据库时:
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
启动MySQL服务时:
[root@VM_0_10_centos support-files]# ./mysql.server start
Starting MySQL.... ERROR! The server quit without updating PID file (/usr/local/mysql/data/VM_0_10_centos.pid).
查看VM_0_10_centos.err日志文件,发现如下错误信息:
2019-04-13T06:07:59.371987Z 0 [ERROR] [MY-010262] [Server] Can't start server: Bind on TCP/IP port: Address already in use
2019-04-13T06:07:59.371999Z 0 [ERROR] [MY-010257] [Server] Do you already have another mysqld server running on port: 3306 ?
2019-04-13T06:07:59.372253Z 0 [ERROR] [MY-010119] [Server] Aborting
2019-04-13T06:08:01.120673Z 0 [System] [MY-010910] [Server] /usr/local/mysql/bin/mysqld: Shutdown complete (mysqld 8.0.15) MySQL Community Server - GPL.
执行/etc/init.d/mysql.server status 时:
[root@VM_0_10_centos support-files]# ./mysql.server start
Starting MySQL..... ERROR! The server quit without updating PID file(/usr/local/mysql/data/VM_0_10_centos.pid).
[root@VM_0_10_centos mysql]# /etc/init.d/mysql.server status
ERROR! MySQL is not running, but lock file (/var/lock/subsys/mysql) exists
[root@VM_0_10_centos mysql]# netstat -apn | grep 3306
tcp6 0 0 :::3306 :::* LISTEN 1117/mysqld
[root@VM_0_10_centos mysql]# kill -9 1117
[root@VM_0_10_centos mysql]# /etc/init.d/mysql.server start
Starting MySQL.. SUCCESS!
alter user 'root'@'localhost' identified by '新密码'
参考链接:https://geeksterminal.com/another-mysqld-server-running-port-3306/1681/
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· AI与.NET技术实操系列(二):开始使用ML.NET
· 记一次.NET内存居高不下排查解决与启示
· 探究高空视频全景AR技术的实现原理
· 理解Rust引用及其生命周期标识(上)
· 浏览器原生「磁吸」效果!Anchor Positioning 锚点定位神器解析
· DeepSeek 开源周回顾「GitHub 热点速览」
· 物流快递公司核心技术能力-地址解析分单基础技术分享
· .NET 10首个预览版发布:重大改进与新特性概览!
· AI与.NET技术实操系列(二):开始使用ML.NET
· .NET10 - 预览版1新功能体验(一)