Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

PHP to recognise MYSQL

Posted on 2003-10-28
8
Medium Priority
?
328 Views
Last Modified: 2008-02-01
Currently I have an apacher server up with php, also i have a MYSQL database running but in the phpinfo() function, there is no information about my MYSQL database.

Which file and what setting would i change so that php will recognise MYSQL, mind you, i can still connection to the database and everything, but i need the phpinfo to be correct.

Thanks.
0
Comment
Question by:TaintedGod
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
8 Comments
 

Expert Comment

by:cofeeextravaganza
ID: 9638941
hi! maybe you could go change this in the php.ini file located in /etc directory..

mysql.allow_persistent = On

maybe that would work... not really sure
0
 
LVL 2

Expert Comment

by:scully00000
ID: 9641341
If there is no information in phpinfo() about MySQL then the version or compiled edition of PHP you have installed did not have MySQL support enabled. Did you compile it yourself? Try downloading a production release of PHP from www.php.net as all of their releases have built-in MySQL support. Or come back and let me know more about your setup.

Cheers
0
 
LVL 2

Author Comment

by:TaintedGod
ID: 9645357
Ok, i shall clarify.

I have an Apache server WITH MYSQL support, from the wesite, but in the phpinfo() it is only showing the default information, not my actual setting, even the API version is wrong.

Also, after restarting my computer, MYSQL did not start up properly, i think its because i do not have the start up info in one of my setting, the only reason why it worked before is because i had just installed it.

Hopefully you can help me now.  :P
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
LVL 2

Author Comment

by:TaintedGod
ID: 9645793
Actaully please disregard this whole question, i found out the problem, thanks anyways.
0
 

Expert Comment

by:cofeeextravaganza
ID: 9647296
hehe.. what was wrong?
0
 
LVL 2

Author Comment

by:TaintedGod
ID: 9653235
Well when you first install MYSQL (this was my first time), there is a database then needs to always be there, and since i didnt know that, i deleted it :p , so then i found an error log and saw which file it was looking for and remembered i needed that database for the files.

And about the phpinfo(), the information there was to be set by me to make programming easier i guess, so nothing wrong there either.
0
 

Accepted Solution

by:
CetusMOD earned 0 total points
ID: 11785007
Closed, 125 points refunded.
CetusMOD
Community Support Moderator
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Part of the Global Positioning System A geocode (https://developers.google.com/maps/documentation/geocoding/) is the major subset of a GPS coordinate (http://en.wikipedia.org/wiki/Global_Positioning_System), the other parts being the altitude and t…
Many old projects have bad code, but the budget doesn't exist to rewrite the codebase. You can update this code to be safer by introducing contemporary input validation, sanitation, and safer database queries.
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to dynamically set the form action using jQuery.

721 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question