PDA

View Full Version : Install problems...


rayvd
10-08-2003, 08:29 AM
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.mysql-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!

Rolandks
10-08-2003, 12:41 PM
Originally posted by rayvd
.... MySQL 4.1-alpha system.....

:D Never use alpha-version in Production-Environment, perhaps error-squelching @ signs is changed in MySQL 4.1, ... must read changelog :confused:

-Roland-

rayvd
10-08-2003, 12:56 PM
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).

vvvvv
10-13-2003, 05:27 PM
>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. :)

jdell_nv
10-15-2003, 12:02 PM
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!