LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 06-15-2003, 12:47 AM   #1
XxAndyxX
Member
 
Registered: Mar 2003
Location: Houston, TX
Distribution: RedHat 8.0
Posts: 79

Rep: Reputation: 15
Fatal error:


When trying to install a forum I get 'Fatal error: Call to undefined function: mysql_connect()in /hdb/var/www/html/forum/admin/db_mysql.php on line 42'

What does this mean? Is it that I don't have mySQL installed? Because it looks like I do? If not... How can I tell if I do or not?
 
Old 06-15-2003, 01:09 AM   #2
Crashed_Again
Senior Member
 
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503

Rep: Reputation: 57
What are you trying to install phpbb? There is some minor setup of mysql required before installing phpbb. Did you add a mysql user? Is mysql running(ps -aux | grep mysql)?
 
Old 06-15-2003, 10:28 AM   #3
XxAndyxX
Member
 
Registered: Mar 2003
Location: Houston, TX
Distribution: RedHat 8.0
Posts: 79

Original Poster
Rep: Reputation: 15
I'm trying to install vBulletin. No I did not add a mysql user. How do you do that? I thought when installing the vBulletin did it for you. I chmod the install scripts to 777. When I run 'ps -aux | grep mysql' I get this in reply,

'root 1119 0.0 0.2 3204 616 pts/0 s 6:25 grep mysql'
 
Old 06-15-2003, 10:31 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
if that's all then mysql is not running. you'll also need the mysql bindings for php
 
Old 06-15-2003, 10:31 AM   #5
Crashed_Again
Senior Member
 
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503

Rep: Reputation: 57
Yeah that means that mysql is not running. You can do:

/etc/init.d/mysqld start

and also do:

chkconfig mysqld on

so that mysql runs at startup.
 
Old 06-15-2003, 10:35 AM   #6
XxAndyxX
Member
 
Registered: Mar 2003
Location: Houston, TX
Distribution: RedHat 8.0
Posts: 79

Original Poster
Rep: Reputation: 15
When I type. '/etc/init.d/mysql' or '/etc/init.d/mysqld' it says, 'No such file or directory'. Hmm... And when you say, 'you'll also need the mysql bindings for php' where can I get that?
 
Old 06-15-2003, 11:06 AM   #7
Crashed_Again
Senior Member
 
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503

Rep: Reputation: 57
You do have mysql installed right?
 
Old 06-15-2003, 11:18 AM   #8
XxAndyxX
Member
 
Registered: Mar 2003
Location: Houston, TX
Distribution: RedHat 8.0
Posts: 79

Original Poster
Rep: Reputation: 15
Well I downloaded 'MySQL-server-4.0.13-0.i386.rpm' and I ran 'rpm -i MySQL-server-4.0.13-0.i386.rpm' And it looked like it installed completly and tells my to make my password for root. When I try to install it again it says, 'package MySQL-server-4.0.13-0.i386.rpm has already been installed' so I'm guessing it installed but now when I type in the command, '/etc/init.d/mysql start' it tells me 'A mysql process already exists' then when I run the command, 'ps -aux | grep mysql' again it tells me,

mysql 1198 0.1 3.9 30272 9744 pts/0 s 06:55 <== ==0:01 /usr/sbin/mysqld

root 1389 0.0 0.2 3204 616 pts/0 s 7:14 0:00 grep mysql


Did it install mysql over another mysql? If so, how do I stop the old one so I can start my new one? And would you know how to create my root password; like what the command is?
Thanks
 
Old 06-15-2003, 12:33 PM   #9
Crashed_Again
Senior Member
 
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503

Rep: Reputation: 57
Well it looks like mysql is installed and running. Can you login?

mysql -u root -p
 
Old 06-15-2003, 01:31 PM   #10
Flibble
Member
 
Registered: Mar 2002
Distribution: Redhat 9.0, Debian, Knoppix, YellowDog
Posts: 142

Rep: Reputation: 15
FYI

If you do the following:

ps aux | grep [m]ysql

rather than

ps aux | grep mysql

then you won't see the grep command in the process listing.

Flibble
 
Old 06-15-2003, 06:56 PM   #11
XxAndyxX
Member
 
Registered: Mar 2003
Location: Houston, TX
Distribution: RedHat 8.0
Posts: 79

Original Poster
Rep: Reputation: 15
When I type, 'mysql -u root -p' it says, 'bash: mysql: command not found'
???
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
fatal error, do I need this? adds2one Slackware - Installation 6 08-31-2005 01:17 PM
Mandrake Move 9.2 error, fatal server error:( silentwhispers Mandriva 1 12-17-2004 12:36 AM
MDK 9.1 Fatal Error in Stage 1: Exec Format Error Beano Mandriva 5 09-12-2004 04:04 PM
Fatal error sunoj81 Linux - General 1 11-03-2003 09:27 PM
Fatal error? mkacz9 Linux - Newbie 2 10-09-2003 12:20 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 02:35 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration