LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-17-2006, 10:14 PM   #1
Red Squirrel
Senior Member
 
Registered: Dec 2003
Distribution: Mint 20.1 on workstation, Debian 11 on servers
Posts: 1,336

Rep: Reputation: 54
Getting php to understand that mysql exists


I have a woring mysql server, and php/apache are working, but php functions for mysql arn't working, it's like if php does not know mysql is running. How can I make it work? I'm guessing it's some line I have to add to php.ini or something but I just can't seem to figure it out. Right now functions like mysql_connect() simply don't work. (invalid function)
 
Old 01-18-2006, 12:15 AM   #2
megaspaz
Senior Member
 
Registered: Nov 2002
Location: Silly Con Valley
Distribution: Red Hat 7.3, Red Hat 9.0
Posts: 2,054

Rep: Reputation: 46
have you upgraded php or mysql? for compiling php, you would need to use the --with-mysql configure option. or if you're using deb packages, did you get a php-mysql package installed?

One possible point of failure if you're using php deb packages and upgraded mysql with packages from mysql, is that your php package maybe using libraries from the old 3.23 mysql series. there's a mysql package from mysql's site called mysql-shared-compat that you would install instead of mysql-shared. mysql-shared-compat has the lib for version 3.23 as well as the recent libs. but i'm not sure what deb packages mysql has, since i'm using an rpm distro.

Or it could be something as simple as your script having the wrong mysql credentials...

Last edited by megaspaz; 01-18-2006 at 12:17 AM.
 
Old 01-18-2006, 01:21 AM   #3
bogoda
Member
 
Registered: Jan 2006
Posts: 32
Blog Entries: 2

Rep: Reputation: 15
I donot know what is the version u use.

If you are using Fedora 3 you can install php,mysql and apache using installation CD using Add or Remove Programs.

And make sure that you start httpd and msql under services after install them.

I dont know about install them using confighuration.

Good luck.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
I dont understand PHP includes logicdisaster Programming 2 04-20-2005 04:00 PM
Problem getting PHP to recognize MySQL, Using PHP 4.0 and MySQL 4.0.20 d2army Programming 4 06-27-2004 08:54 PM
mysql - ./configure - dont understand... ilhbutshm Linux - Software 3 03-18-2004 11:03 PM
MySQL db exists, can't connect to it, do I need to add user to it? Hero Doug Linux - General 7 01-09-2004 03:54 PM
Apache Mysql Php: mysql with php doesn't work breakerfall Linux - Networking 6 12-27-2003 08:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:16 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