PhpDig.net

Go Back   PhpDig.net > PhpDig Forums > Script Installation

Reply
 
Thread Tools
Old 10-08-2003, 09:29 AM   #1
rayvd
Green Mole
 
Join Date: Oct 2003
Location: Mesa, AZ
Posts: 15
Install problems...

Installing phpDig on a PHP 4.3.3, Apache 2.0.47, MySQL 4.1-alpha system. Ran the admin/install.php script, but after filling out step 1, it would just go to a blank screen.

Looked into the install.php and removed the error-squelching @ signs from the mysql_ commands. Turns out mysql_create_db function is not available when PHP is built against the MySQL 4.0 or 4.1 client library (http://pl.php.net/manual/en/function...-create-db.php).

I changed the line with mysql_create_db() to @mysql_query("CREATE DATABASE $dbname", $id_connect) and everything worked great.

Thought this might be helpful to some out there!
rayvd is offline   Reply With Quote
Old 10-08-2003, 01:41 PM   #2
Rolandks
Purple Mole
 
Rolandks's Avatar
 
Join Date: Sep 2003
Location: Kassel, Germany
Posts: 119
Re: Install problems...

Quote:
Originally posted by rayvd
.... MySQL 4.1-alpha system.....
Never use alpha-version in Production-Environment, perhaps error-squelching @ signs is changed in MySQL 4.1, ... must read changelog

-Roland-
Rolandks is offline   Reply With Quote
Old 10-08-2003, 01:56 PM   #3
rayvd
Green Mole
 
Join Date: Oct 2003
Location: Mesa, AZ
Posts: 15
It's ok to use -alpha in an -alpha environment though

4.1 is pretty darned solid though. And I really love subselects... that said, that PHP page makes it sound like MySQL 4.0 would exhibit this same problem too (although I have not confirmed it).
rayvd is offline   Reply With Quote
Old 10-13-2003, 06:27 PM   #4
vvvvv
Green Mole
 
Join Date: Oct 2003
Posts: 6
>I changed the line with mysql_create_db() to @mysql_query("CREATE DATABASE $dbname", $id_connect) and everything worked great.

Couldn't make the mysql connection till I made the change you suggested, thanks rayvd.
vvvvv is offline   Reply With Quote
Old 10-15-2003, 01:02 PM   #5
jdell_nv
Green Mole
 
Join Date: Oct 2003
Posts: 8
Quote:
Originally posted by rayvd
It's ok to use -alpha in an -alpha environment though

4.1 is pretty darned solid though. And I really love subselects... that said, that PHP page makes it sound like MySQL 4.0 would exhibit this same problem too (although I have not confirmed it).
4.0 Has the same problem (runniing 4.0.15)

Thanks for the fix!
jdell_nv is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problems on Database install Vadim Script Installation 2 12-08-2006 12:28 PM
Install problems lala1973nc Script Installation 1 09-09-2006 12:57 AM
1.8.2 Install Problems vinyl-junkie Script Installation 1 07-13-2004 10:06 PM
Version 1.8.0 Install Problems Charter Mod Submissions 9 01-23-2004 09:08 PM


All times are GMT -8. The time now is 10:34 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright © 2001 - 2005, ThinkDing LLC. All Rights Reserved.