1. Store
  2. Apps
  3. Hardware
  4. Support
  5. Solutions

ClearFoundation

Forums
Welcome, Guest
ClearOS 6.2 Final php mysql not connecting
(1 viewing) 1 Guest
Go to bottomPage: 1
TOPIC: ClearOS 6.2 Final php mysql not connecting
#40331
ClearOS 6.2 Final php mysql not connecting 1 Year ago  
phpmyadmin works host:81/mysql


but my programs do not connect to the DB

I have a custom built program it works on a 5.2 server i copy the DB and php program to the 6.2 server as well as creating the proper username and pass and priveldegs in mysql and I get an error



Unable to select database

but I have access to it using navicat same using the credentials for my program.

Why would i be getting this error


I get this error even with using root credentials
Robert
Junior Boarder
Posts: 35
graphgraph
User Offline Click here to see the profile of this user
Last Edit: 2012/04/25 20:35 By blindrain.
The administrator has disabled public write access.
 
#40691
Re:ClearOS 6.2 Final php mysql not connecting 1 Year ago  
I had a similar sounding problem with 6.2 when I ran an installer script following is the reply I got from Tim Burgess


To enable PHP to interact with mysql you need the php-mysql extension




Code:




--------------------------------------------------------------------------------

yum install php-mysql

below is the link to my original thread

www.clearfoundation.com/component/option...it,10/limitstart,10/

It would seem that 6.2 doesn't have as many of the PHP add-ons preinstalled as was the case with 5.2
Peter Smith
Senior Boarder
Posts: 58
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
Go to topPage: 1
  get the latest posts directly to your desktop