Appnitro Software Forums » MachForm

Database problem

(5 posts)

  1. Hi All,

    Yesterday, I bought MachForm because I think it's good product :) but I've problem.

    When I launch it, I've this error code :

    Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'c2inscription'@'ns1.espace4you.org' (using password: YES) in /var/www/clients/client2/web2/web/inscription/includes/db-core.php on line 11
    Could not connect: Access denied for user 'c2inscription'@'ns1.espace4you.org' (using password: YES)

    I'm using multiserver system (1 server for http and 1 server for sql. So I don't use ns1.espace4you.org but sql.espace4you.org in config.php :

    /** MySQL settings **/
    define('DB_NAME', 'c2inscription'); //The name of your database. Note that this database must exist before running installer.php
    define('DB_USER', 'c2inscription'); //Your database username
    define('DB_PASSWORD', '******'); //Your database users password
    define('DB_HOST', 'sql.espace4you.org'); //The hostname for your database

    My MySQL version is 5.0.51a on my sql server and more websites (CMS, Forum, etc...) works great on this infrastructure.

    Did you have an idea for this problem ?

    Thank you in advance for your answer :)

    Posted 2 years ago #
  2. Try setting DB_HOST as "localhost". as in:

    define ('DB_HOST','localhost');

    If as you say other apps like forums or blogs work fine, take a look at the 'config.php' (or equivalent) for one of those applications and see how the database host name is defined. Should be a block of code not dissimilar to the config.php for machform, since most php apps define such variables and database connection in the same way. I suspect somewhere there's a typo or
    something....

    If the above is all correct, the error seems to point to the fact that the user name and/or password is invalid.

    Posted 2 years ago #
  3. Thanks for your answer AMurray.

    I know the host for MySQL is sql.espace4you.org because I'm the sysadmin of this infrastructure ;>).

    I reset the password for retest. I'll say you after if it's ok or not :).

    Posted 2 years ago #
  4. Problem solved, It's an error in the password ... :D

    Posted 2 years ago #
  5. Error as in mistyped or invalid characters or?

    Posted 2 years ago #

RSS feed for this topic

Reply

You must log in to post.