john
2005-05-25 02:43:25 UTC
I have installed mysql and created the db according to the docs on fedora core
1. I am getting some sort of connect error running the installer.php script:
http://myhost/netjuke/installer/installer.php
Fatal error: Call to undefined function: mysql_connect() in
/var/www/html/netjuke/lib/adodb/drivers/adodb-mysql.inc.php on line 234
Which is this line in the script:
if (ADODB_PHPVER >= 0x4300)
$this->_connectionID =
mysql_connect($argHostname,$argUsername,$argPassword,
[***@myhost docs]# rpm -qa |grep http
redhat-config-httpd-1.1.0-5
httpd-manual-2.0.50-1.0
httpd-2.0.50-1.0
[***@myhost docs]# rpm -qa |grep mysql
mysql-server-3.23.58-4
mysql-devel-3.23.58-4
mysql-3.23.58-4
php-mysql-4.3.8-1.1
[***@myhost docs]# rpm -qa |grep php
php-pcntl-4.3.8-1
php-4.3.8-1.1
php-mbstring-4.3.8-1.1
php-adodb-4.60-1.1.fc1.rf
php-gtk-pcntl-1.0.0-2
php-mysql-4.3.8-1.1
[***@myhost docs]#
php -m
[PHP Modules]
bcmath
bz2
calendar
ctype
curl
dba
dbx
dio
exif
ftp
gd
gettext
gmp
iconv
mbstring
mysql
ncurses
openssl
overload
pcre
posix
pspell
session
shmop
sockets
standard
sysvsem
sysvshm
tokenizer
wddx
xml
yp
zlib
[Zend Modules]
[***@myhost docs]# service mysqld start
Initializing MySQL database: [ OK ]
Starting MySQL: [ OK ]
[***@myhost docs]# mysql -u root
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 3 to server version: 3.23.58
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
mysql> create database netjuke;
Query OK, 1 row affected (0.01 sec)
mysql> use netjuke;
Database changed
mysql> \q
Bye
This is what I populate in the install script items:
DB Type [?] MySQL
DB Host [?] myhost
DB User [?] root
DB Password [?]
DB Name [?] netjuke
Sys. Admin. Email [?] ***@myhost.com
Admin. Password [?]
Confirm Password [?]
Language [?] English
User Themes [?] Enabled
1. I am getting some sort of connect error running the installer.php script:
http://myhost/netjuke/installer/installer.php
Fatal error: Call to undefined function: mysql_connect() in
/var/www/html/netjuke/lib/adodb/drivers/adodb-mysql.inc.php on line 234
Which is this line in the script:
if (ADODB_PHPVER >= 0x4300)
$this->_connectionID =
mysql_connect($argHostname,$argUsername,$argPassword,
[***@myhost docs]# rpm -qa |grep http
redhat-config-httpd-1.1.0-5
httpd-manual-2.0.50-1.0
httpd-2.0.50-1.0
[***@myhost docs]# rpm -qa |grep mysql
mysql-server-3.23.58-4
mysql-devel-3.23.58-4
mysql-3.23.58-4
php-mysql-4.3.8-1.1
[***@myhost docs]# rpm -qa |grep php
php-pcntl-4.3.8-1
php-4.3.8-1.1
php-mbstring-4.3.8-1.1
php-adodb-4.60-1.1.fc1.rf
php-gtk-pcntl-1.0.0-2
php-mysql-4.3.8-1.1
[***@myhost docs]#
php -m
[PHP Modules]
bcmath
bz2
calendar
ctype
curl
dba
dbx
dio
exif
ftp
gd
gettext
gmp
iconv
mbstring
mysql
ncurses
openssl
overload
pcre
posix
pspell
session
shmop
sockets
standard
sysvsem
sysvshm
tokenizer
wddx
xml
yp
zlib
[Zend Modules]
[***@myhost docs]# service mysqld start
Initializing MySQL database: [ OK ]
Starting MySQL: [ OK ]
[***@myhost docs]# mysql -u root
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 3 to server version: 3.23.58
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
mysql> create database netjuke;
Query OK, 1 row affected (0.01 sec)
mysql> use netjuke;
Database changed
mysql> \q
Bye
This is what I populate in the install script items:
DB Type [?] MySQL
DB Host [?] myhost
DB User [?] root
DB Password [?]
DB Name [?] netjuke
Sys. Admin. Email [?] ***@myhost.com
Admin. Password [?]
Confirm Password [?]
Language [?] English
User Themes [?] Enabled