View Single Post
  #1 (permalink)  
Old 07-09-2003, 12:20 AM
btrook btrook is offline
Junior Member
 
Join Date: Jul 2003
Posts: 31
Warning: main(db/mysql.php): failed to open stream: No such
Ok I really need some help here. It all started this morning. My webhost (www.he.net) upgraded my account to mysql Ver 11.18 Distrib 3.23.53, for pc-linux-gnu (i686). Well ever since then, my website only shows the following:

Quote:
Warning: main(db/mysql.php): failed to open stream: No such file or directory in /home/trook/public_html/db/db.php on line 53

Warning: main(): Failed opening 'db/mysql.php' for inclusion (include_path='/usr/local/lib/php') in /home/trook/public_html/db/db.php on line 53

Fatal error: Cannot instantiate non-existent class: sql_db in /home/trook/public_html/db/db.php on line 86
Let's go back some. After they installed the new MySQL, they sent me the new password for my database. So I logged into telnet and changed it back to the old password. That's when I first saw these error messages instead of my website. So I emailed their tech support. Their tech guy said that based on the error I had the wrong password in my scripts. He suggested I change the password back to the one they gave me before and then change the passwords in my scripts. So I did. Therefore I had to edit config.php to reflect the new password. I don't think it's a password problem, but I do think it involves the config.php.

This is what my config looks like:

$dbhost = "localhost";
$dbuname = "trook";
$dbpass = "password";
$dbname = "trook";
$prefix = "nuke";
$user_prefix = "nuke";
$dbtype = "MySQL";
$sitekey = "password";

The username and database have to be correct. I logged into the account via telnet and was able to do a show tables; on the trook database. Everything looked fine, and the files all had nuke_names. The password is set properly. The "localhost" thing I'm not too sure about. I did see that word though contained in an error message telnet gave me when I mistyped a command while viewing the database. I have no clue what the site key is, so I duped my password there (which isn't new, it was like that before when it was working on the older version of mysql).

So what I'd like to know is, does PHP Nuke 6.5 support this version of MySQL? Or is there another problem.

Oh by the way, I tried restoring an old database thinking maybe the format was correct / different but it wouldnt work since the tables were all the same.

EDIT: More info! The virtual webserver is using Linux Kernel 2.4, Apache 2, and Slackware 9 if this info helps.

EDIT #2: I also tried http://trook.com/nukesql.php but it doesn't work either. That file was supposed to make sure my database is set up properly but even it has the same error.
Reply With Quote