Forums

Join
bbPress Support ForumsInstallationconstant BBDB_HOST problem

Info

constant BBDB_HOST problem

  1. hi,
    having some problems with installing:

    install.php gives me this warning:
    ...bbpress/bb-includes/db.php on line 61
    followed by this
    ...bbpress/bb-includes/db.php on line 73

    DB_HOST is not localhost, changed to db server mt info,
    apparently it won't support the db host name?

  2. It will support a host name, but are you trying to use a port or a socket? I use MySQL servers on different hosts all the time, but they are always on the default port of 3306.

    Can you post the BBDB_HOST line from your config.php?

    Also, you didn't post the actual warnings: what were those?

  3. DB_HOST is not the right constant, do you mean BBDB_HOST ?

  4. Warning info:

    Warning: constant() [function.constant]: Couldn't find constant BBDB_HOST in /mnt/.../html/bb-includes/db.php on line 61

    Warning: mysql_get_server_info() [function.mysql-get-server-info]: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) in /mnt/.../html/bb-includes/db.php on line 73

    Warning: mysql_get_server_info() [function.mysql-get-server-info]: A link to the server could not be established in /mnt/.../html/bb-includes/db.php on line 73
    Cannot select DB.

  5. BBDB_HOST line in config.php:
    define('DB_HOST', $_ENV{DATABASE_SERVER});

  6. Big Sorry, folks: last post showed me my mistake.
    Entering the RIGHT db host line solved my prob.

  7. You must log in to post.