1

Topic: Checking for database definition ... FAIL - please edit conf.php

Hello, I am looking forward to having a nice image board on my site, and wakaba was just to complicated for me and ochiba seemed to do everything I want and more anyway.   So, when i run  install.php  i get:

Checking for convert (/usr/bin/convert) ... OK

Checking for identify (/usr/bin/identify) ... OK

Checking permissions on /home/content/M/t/n/MtnXfreeride/html/nahc4/img ... OK

Checking permissions on /home/content/M/t/n/MtnXfreeride/html/nahc4/thumbs ... OK

Checking permissions on /tmp/ochiba-cache ...OK

Checking for HTML_Template_IT ...OK

Checking for PEAR::DB ...OK

Checking for database definition ... FAIL - please edit conf.php




these are my settings for the database:

// Examples (make sure to set one of these!):
#define("DB","sqlite:////path/to/sqlite/database/file");
#define("DB","pgsql://user:pass@unix(/tmp)/dbname");
#define("DB","pgsql://user:pass@hostname/dbname");
#define("DB","mysql://user:pass@unix(/var/lib/mysql/mysql.sock)/dbname");
#define("DB","mysql://MtnXfreeride:## my p/w ###@mysql153.secureserver.net/MtnXfreeride");



the database information should be correct since it was right off the godaddy Mysql page..  I am definitly a new person at all of this, but it seems like I am close to getting this set-up properly.
any help at all would be greatly appreciated.

2

Re: Checking for database definition ... FAIL - please edit conf.php

#define("DB","mysql://MtnXfreeride:## my p/w ###@mysql153.secureserver.net/MtnXfreeride");

The "#" at the beginning of this line signals a comment - you should remove the "#".

3

Re: Checking for database definition ... FAIL - please edit conf.php

thanks  installed fine now..

4

Re: Checking for database definition ... FAIL - please edit conf.php

http://nahc4.com

5

Re: Checking for database definition ... FAIL - please edit conf.php

I'm having the same problem.

define("DB","mysql://**mylogin**:**myPass**@localhost/usr_**database**_2");

RESULT:
Checking for convert (/usr/bin/convert) ... OK

Checking for identify (/usr/bin/identify) ... OK

Checking permissions on /var/www/web750/html/pic0tek/img ... OK

Checking permissions on /var/www/web750/html/pic0tek/thumbs ... OK

Checking permissions on /tmp/ochiba-cache ...OK

Checking for HTML_Template_IT ...OK

Checking for PEAR::DB ...OK

Checking for database definition ... FAIL - please edit conf.php
-----------

I also tried all vars for "@localhost"  = same result
I also tried  with altenative =  @unix(/var/www/....... 
at this point now - I NEED SOME HELP .. plesae

6

Re: Checking for database definition ... FAIL - please edit conf.php

Can you try using the SQLite type? You can just set the DSN like this:

define("DB","sqlite:////tmp/ochibatest");

This will help confirm if the PEAR::DB module is working in general. If you have Postgres available, that's another thing to try. If either SQLite or Postgres are available from your hoster, then I would strongly recommend using one of those and not MySQL.

Another thing to confirm: do your database connection parameters work in other software? For example, do you have some other blog software that uses your MySQL database, such as Wordpress? I'm not sure how much of the parameters you obfuscated in your post, but the "usr_**database**_2" part seems peculiar. How about if you put the following line into install.php, right below the "Checking for database connection" line:

$conn = mysql_connect  ('localhost', '**mylogin**','**myPass**');
mysql_select_db($conn,'usr_**database**_2') or die("Cant' select database");

If none of the above work, what PHP version do you have (the output of phpinfo() would be handy) and what hoster are you with?