便宜VPS网为回馈新老顾客,香港vps免费送,数量有限,先到先得!手慢无!

Kloxo出现”Could not open database connection”的解决办法

kloxo面板 便宜vps网 1269℃

Kloxo出现”Could not open database connection”的解决办法
总结下来其实很简单,三步走就OK。
第一步
执行命令如下:
php /usr/local/lxlabs/kloxo/bin/common/misc/reset-mysql-root-password.phps
第二步
执行命令如下:
sh /script/fix-program-mysql
第三步
执行命令如下:
mysql -ukloxo -p
看似简单,要是处理不当还是一样解决不了问题,
首先你要登陆ssh,通过命令检测vps磁盘空间的使用情况!
检测命令如下:df -h
检测出来的结果只要不大于93%,直接用上面的三步走,
如果大于就要删除一些不需要的文件!
下面我简单的演示一下!
[root@asd ~]# df -h                                                           (通过命令检测到空间用使用情况100%)
Filesystem            Size  Used Avail Use% Mounted on
/dev/sda1              30G   28G   53M 100% /                          (我就登陆ftp,或者直接在ssh上面删除一些不需要的文件)
none                  385M     0  385M   0% /dev/shm
[root@asd ~]# php /usr/local/lxlabs/kloxo/bin/common/misc/reset-mysql-root-password.phps    (然后进行三步走)
Stopping MySQL Service…
Starting MySQL server with –skip-grant-tables …
Reset password in progress…
Password reset done. Now killing MySQL Server softly…
Wait 10 seconds…
Restarting MySQL in normal mode…
Password successfully reset to “”
[root@asd ~]# /script/fix-program-mysql
grant all on kloxo.* to kloxo@localhost identified by ‘c89b7d31f5’
[root@asd ~]# mysql -ukloxo -pc89b7d31f5     (这里可是需要输入上面显示出来的随机密码的哦)
Welcome to the MySQL monitor.  Commands end with ; or g.
Your MySQL connection id is 172
Server version: 5.0.95 Source distribution

Copyright (c) 2000, 2011, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Type ‘help;’ or ‘h’ for help. Type ‘c’ to clear the current input statement.

mysql> quit   (进入这一步直接用quit退出就Ok啦!)
Bye
[root@asd ~]#

 

更多关于vps技术的问题,请到便宜vps技术网。

便宜vps网您身边IDC专家专业提供国外优质服务器租用

更多优惠,更多惊喜一切尽在便宜vps网

联系客服QQ:2537942481  忍者神龟 为您服务 !
联系电话:15514252791  随时欢迎您的电话联系!
便宜vps网专业提供:香港服务器,香港vps、抗攻击vps、抗攻击服务器,美国抗投诉vps、美国抗投诉服务器,荷兰抗投诉服务器、韩国抗攻击服务器、XR专用服务器,GS专用服务器。

原创文章,转载请注明: 转载自VPS面板知识

本文链接地址: Kloxo出现”Could not open database connection”的解决办法

VPS面板知识: 便宜VPS网–便宜技术|Windows VPS面板知识 | Linux VPS面板知识

友情链接:便宜vps网 真诚为您推荐最合适的vps服务器,详情咨询860001083


在线咨询

文章的脚注信息由WordPress的wp-posturl插件自动生成

转载请注明:VPS面板知识 » Kloxo出现”Could not open database connection”的解决办法

喜欢 (1)or分享 (0)