
MySQL is running but PID file could not be found
表现为mysql不能关闭也不能重启
查看启动脚本/etc/init.d/msyql.server 可以发现:
由于pid默认为mysql/data/hostname.pid
若在mysql运行期间修改hostname,再操作mysql则会出现此错误.
如何解决:
查找mysql data下的pid文件,找到原hostname

修改回去关闭mysql,重新改hostname即可.

(图中node01可以随便改成你想要的名称).然后启动即可

- 大小: 8.4 KB

- 大小: 21.1 KB

- 大小: 18.7 KB
分享到:
相关推荐
在使用MySQL数据库的过程中,有时会遇到“MySQL server PID file could not be found”的错误,这是一个常见的启动问题,通常意味着MySQL服务器无法找到其进程ID(PID)文件,该文件用于记录数据库服务的运行状态。...
(DBX Error: Driver could not be properly initialized. Client library may be missing, not installed properly, ...),我找到了合适的libmysql.dll和dbxmys.dll组合,把下面这个libmysql.dll拷贝到XE的bin目录...
在使用MySQL数据库时,有时会遇到“MySQL is not running but lock exists”的错误,这通常意味着MySQL服务虽然没有运行,但系统中还存在一个锁文件,阻止了MySQL的正常启动。以下是一些解决此问题的步骤和相关的...
如果出现“PID file could not be found”的错误,可能需要通过`kill`命令找到并终止MySQL进程。 5. **检查配置文件**: 检查MySQL的配置文件`my.cnf`,确保`pid-file`选项指向正确的PID文件位置。例如: ``` ...
Driver class 'org.gjt.mm.mysql.Driver' could not be found, make sure the 'MySQL' driver (jar file) is installed. org.gjt.mm.mysql.Driver】即(由于名为“org.gjt.mm.mysql.Driver”的数据库驱动类没有发现...
java代码执行hive相关ktr时报错: database type with plugin id [HIVE2] couldn't be found! 解决:kettle-core-7.1.0.0-12.jar适配hive后的包。具体步骤请查看...
在使用MySQL数据库的过程中,可能会遇到“mysql could not be resolved: Name or service not known”的警告,这通常是由于MySQL在尝试反向解析客户端IP地址时失败导致的。这个问题与MySQL配置中的`skip-name-...
#### 错误描述:“Could not load com.mysql.jdbc.Messages Could not load java.net.BindException MySQL JDBC应放置于WEB-INF\lib目录,此时只需将%TOMCAT_HOME%\lib中的文件复制到WEB-INF\lib。异常跨越MySQL库从...
在安装MySQL过程中,有时会遇到一个常见的错误提示:“Could not start the service MySQL Error 0”。这个错误意味着MySQL服务无法启动,通常与系统环境、配置文件、依赖库或安装过程中的某些问题有关。以下将详细...
win7 系统 the security settings could not be applied to the database 在安装mysql的时候,就会遇到以下错误。遇到错误不可怕,怕的就是被错误所击倒! The security settings could not be applied to the ...
在MySQL数据库操作中,有时我们在尝试导出数据时可能会遇到一个错误提示:“ERROR 1290 (HY000): The MySQL server is running with the –secure-file-priv option so it cannot execute this statement.” 这个...
自己用的解决 "The Network Adapter could not establish the connection" 的连接oracle问题。网上查的一些片段资料。主要是用自己去公司用的。
Linux下安装初始化完MySQL数据库之后,使用... The server quit without updating PID file (/data/mysql/AY14020816093477605eZ.pid). 重启mysql会抛出上面红色字体的错误。 上面只能看到mysql启动失败,具体
kettle 连接mysql oracle 驱动包kettle报错Driver class’sun.jdbc.odbc.JdbcOdbcDriver’ could not be found,make sure the sun.jdbc.odbc.JdbcOdbcDriver 具体参考...
Driver class 'sun.jdbc.odbc.JdbcOdbcDriver' could not be found, make sure the 'MS SQL Server' driver (jar file) is installed. ----- 所以把mysql-connector-java-5.1.49-bin.jar放到lib文件夹下