Problems, need help? Have a tip or advice? Post it here.
2 posts Page 1 of 1
Hey,

I'm trying to setup couch on my site through XAMPP, when I got to the URL " http://localhost/test2/couch/ " it gives me this
error:
Could not connect to database
No connection could be made because the target machine actively refused it.


I'm not using a database with my website yet????
Hi,

Please make sure you have entered the correct creds in 'couch/config.php' -
Code: Select all
    // MySQL settings. You need to get this info from your web host.
    // 4.
    // Name of the database
    define( 'K_DB_NAME', 'database_name' );
    // 5.
    // Database username
    define( 'K_DB_USER', 'database_username' );
    // 6.
    // Database password
    define( 'K_DB_PASSWORD', 'database_password' );
    // 7.
    // MySQL hostname (it will usually be 'localhost')
    define( 'K_DB_HOST', 'localhost' );

"the target machine actively refused it" could suggest that your MySQL server is listening to some other port rather than the default 3306.
If that is the case, you need to specify that port as, for example, follows
Code: Select all
// MySQL hostname (it will usually be 'localhost' )
   define( 'K_DB_HOST', '127.0.0.1:3307' );

Hope it helps.
2 posts Page 1 of 1
cron