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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
06-15-2003, 12:47 AM
|
#1
|
Member
Registered: Mar 2003
Location: Houston, TX
Distribution: RedHat 8.0
Posts: 79
Rep:
|
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?
|
|
|
06-15-2003, 01:09 AM
|
#2
|
Senior Member
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503
Rep:
|
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)?
|
|
|
06-15-2003, 10:28 AM
|
#3
|
Member
Registered: Mar 2003
Location: Houston, TX
Distribution: RedHat 8.0
Posts: 79
Original Poster
Rep:
|
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'
|
|
|
06-15-2003, 10:31 AM
|
#4
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
if that's all then mysql is not running. you'll also need the mysql bindings for php
|
|
|
06-15-2003, 10:31 AM
|
#5
|
Senior Member
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503
Rep:
|
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.
|
|
|
06-15-2003, 10:35 AM
|
#6
|
Member
Registered: Mar 2003
Location: Houston, TX
Distribution: RedHat 8.0
Posts: 79
Original Poster
Rep:
|
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?
|
|
|
06-15-2003, 11:06 AM
|
#7
|
Senior Member
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503
Rep:
|
You do have mysql installed right?
|
|
|
06-15-2003, 11:18 AM
|
#8
|
Member
Registered: Mar 2003
Location: Houston, TX
Distribution: RedHat 8.0
Posts: 79
Original Poster
Rep:
|
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
|
|
|
06-15-2003, 12:33 PM
|
#9
|
Senior Member
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503
Rep:
|
Well it looks like mysql is installed and running. Can you login?
mysql -u root -p
|
|
|
06-15-2003, 01:31 PM
|
#10
|
Member
Registered: Mar 2002
Distribution: Redhat 9.0, Debian, Knoppix, YellowDog
Posts: 142
Rep:
|
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
|
|
|
06-15-2003, 06:56 PM
|
#11
|
Member
Registered: Mar 2003
Location: Houston, TX
Distribution: RedHat 8.0
Posts: 79
Original Poster
Rep:
|
When I type, 'mysql -u root -p' it says, 'bash: mysql: command not found'
???
|
|
|
All times are GMT -5. The time now is 02:35 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|