LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 02-07-2005, 08:31 AM   #1
spacy2003
LQ Newbie
 
Registered: Feb 2005
Posts: 6

Rep: Reputation: 0
PHP 5 wont connect to MySql (fedora)


Ok, i've got Apache 2.0 installed with php 5 and mysql 4.1 (all installed with rpm's)
i installed the following php5, php5-pear, php-mysql, mysql-client, mysql-server,
mysql-max, mysql-shared-compat, mysql-administrator.

In the terminal mysqladmin works fine, # mysql ping --user=root --password=*** shows me:
mysqld is alive

So mysql is up and running.

Then the problem is maybe how i create my db's ?
Well i create a new folder with owner mysql and chmod 711
I guess this is okay cause mysqlshow --user=root --password=*** shows me
(Forum is the db i created):

Databases
mysql
forum

Then the problem must be with php here's my phpinfo part for mysql and the
loaded modules:

additional ini file parsed --> /etc/php.d/mysql.ini

active persistent links --> 0
active links --> 0
client version --> 4.1.9
mysql_moduletype --> external
mysql_socket --> /var/lib/mysql/mysql.sock
mysql_include --> -l/usr/include/mysql
mysql_libs --> -L/usr/lib/mysql -lmysqlclient

mysql.allow_persistent --> on --> on
mysql.connect_timeout --> 60 --> 60
mysql.default_host --> no value --> no value
mysql.default_password --> no value --> no value
mysql.default_port --> no value --> no value
mysql.default_socket --> no value --> no value
mysql.default_user --> no value --> no value
mysql.max_links --> inlimited --> unlimited
mysql.max_persistent --> unlimited --> unlimited
mysql.trace_mode --> off --> off

When i create a php file with mysql connect i get this error:
Cant connect to mysql thru /var/lib/mysql/mysql.sock

im really out of ideas atm

Last edited by spacy2003; 02-07-2005 at 08:32 AM.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Php and Mysql wont play together Slith(++1) Mandriva 6 10-03-2005 09:53 PM
PHP can't connect to MySQL westchester Linux - Software 13 07-02-2005 10:45 PM
php 438 and mysql 41 fedora 2 wont talk phoebebright Linux - Software 0 11-02-2004 03:49 PM
PHP Can Not Connect To MYSQL ombill Fedora 4 09-06-2004 01:24 PM
Can't connect MySQL through PHP mac Programming 1 02-18-2002 09:23 AM

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

All times are GMT -5. The time now is 12:15 AM.

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