#我的server的hostname,mysql pid文件默认名字为hostname.pid,如果没有在/etc/my.cnf里面指定特定和pid filename和pid file path的话,这个文件是跟mysql数据在一起的。
[root@redhat var]# hostname
redhat
这时候通过
#切换到mysql data dir(mysql的数据文件目录下)
#你们的mysql data dir或许跟我的不一样哦,我的是/var/lib/mysql/var/
[root@redhat var]# cd /var/lib/mysql/var/
获取mysql用户运行的mysql进程的 pid,然后导入到hostname.pid文件里面
[root@redhat var]# echo `ps aux | grep mysql | grep "user=mysql" | grep -v "grep" | awk '{print $2}'`>> redhat.pid
#注意这里的redhat.pid跟hostname相关,这里是我的hostname.pid
将文件的属主和属主组改为mysql:mysql
[root@redhat var]# chown mysql:mysql redhat.pid
- 浏览: 18342 次
- 性别:
- 来自: 北京
最新评论
-
zhaoshijie:
不知道这种设置会不会真正地起到作用的哦!
设置session过期时间
相关推荐
主要介绍了mysql启动报错MySQL server PID file could not be found,具有一定的参考价值,感兴趣的小伙伴们可以参考一下
java代码执行hive相关ktr时报错: database type with plugin id [HIVE2] couldn't be found! 解决:kettle-core-7.1.0.0-12.jar适配hive后的包。具体步骤请查看...
启动失败 重启服务器后–>重启应用服务(Confluence)–>报错,数据库连接失败(mysql设置了开机自启动)–>查看mysql数据库状态: ...MySQL server PID file could not be found![失败] Starting MySQL.............. ER
删除mysql的日志文件,重启mysql发现错误:Starting MySQL.Manager of pid-file quit without updating file.[FAILED] 网上有不少这个原因的解释,但是都不是我想说的。我要说的原因其实很白痴:data/mysql-bin....
今天查看mysql日志的时候发现[Warning] IP address '10.0.0.220' could not be resolved: Name or service not known,原来是mysql DNS反解:skip-name-resolve的原因,屏蔽一下就可以了
The security settings could not be applied to the database because the connection has failed with the following error. Error Nr. 1045 Access denied for user 'root'@'localhost' (using password: YES) ...
(DBX Error: Driver could not be properly initialized. Client library may be missing, not installed properly, ...),我找到了合适的libmysql.dll和dbxmys.dll组合,把下面这个libmysql.dll拷贝到XE的bin目录...
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 具体参考...
MYSQL安装出现could not start the service mysql error0处理
CentOS安装mysql The server quit without updating PID file问题背景描述部署步骤问题来了网上解决办法汇总最终解决办法 背景描述 最近接到个任务在CentOS部署一套5.7的mysql服务,之前没有在linux上安装过myslq的...
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文件夹下
MySQL server PID file could not be found! Starting MySQL. ERROR! The server quit without updating PID file (/www/wdlinux/mysql/var/iZ2358oz5deZ.pid). 数据库error日志: 200719 22:07:43 InnoDB: ...
自己用的解决 "The Network Adapter could not establish the connection" 的连接oracle问题。网上查的一些片段资料。主要是用自己去公司用的。
主要介绍了MySQL下PID文件丢失的相关错误的解决方法,具体的提示可能会是"mysql PID file not found and Can’t connect to MySQL through socket mysql.sock",需要的朋友可以参考下
使用MySQL Administrator 登录,报错: Either the server service or the configuration file could not be found.Startup variable and service section are there for disabled. 使用Root 登录进去以后看到管理...