We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 10105
    • 51 Posts
    よろしくお願いします。

    テンパってます… (T_T)

    « MODx Parse Error »

    MODx encountered the following error while attempting to parse the requested resource:
    « PHP Parse Error »

    PHP error debug
    Error: mysql_connect() [function.mysql-connect]: Access denied for user ’dbuser’@’localhost’ (using password: YES)
    Error type/ Nr.: Warning - 2
    File: /var/www/html/manager/includes/extenders/dbapi.mysql.class.inc.php
    Line: 89
    Line 89 source: if (!$this->conn = ($persist ? mysql_pconnect($host, $uid, $pwd) : mysql_connect($host, $uid, $pwd, true))) {

    Parser timing
    MySQL: 0.0000 s (0 Requests)
    PHP: 0.0163 s
    Total: 0.0163 s

    « MODx Parse Error »
    MODx encountered the following error while attempting to parse the requested resource:
    « Failed to create the database connection! »

    Parser timing
    MySQL: 0.0000 s (0 Requests)
    PHP: 0.0181 s
    Total: 0.0181 s





    とエラーが出てしまっています。

    phpmyadminからエクスポート作業をしてからだと思うのですが、復旧させるにはどうしたらいいでしょうか??

    不躾ですいませんがよろしくお願いします!
    • いろいろさわってしまう前に、2点確認です。

      manager/includes/config.inc.php を開いて、DBホストやユーザ名・パスワードなどの設定は残ってますか?
      それともうひとつ、phpmyadminで見た感じ、データはいちおう残ってる様子ですか?
        • 10105
        • 51 Posts
        レスありがとうございます!

        そういえば、phpMyAdminにログインする際にパスワードを忘れてしまったので
        変更してしまったのですが、これが原因でしょうか?

        manager/includes/config.inc.php は残っているようです。
        phpmyadminで見た感じ、データはいちおう残ってます。
        • それならconfig.inc.phpの中身を一行書き換えるだけでよさそうな気がします。
            • 10105
            • 51 Posts
            ありがとうございました laugh

            パスワードの変更が原因だったのですね・・・

            お騒がせしました embarrassed