1
alhutt
Re: Database problem
  • 2005/8/25 16:51

  • alhutt

  • Just popping in

  • Posts: 1

  • Since: 2005/8/25


This script is a great idea. It helped me solve this 'Cannot connect to database' problem.

The problem turned out to be that the location of the mysql.sock as returned by this script did not match the location as listed in either php.ini or my.cnf.

My situation was:

this script and info.php
-------------------------
MYSQL_SOCKET /var/lib/mysql/mysql.sock

php.ini
-------
mysql.default_socket /var/run/mysql/mysql.sock

my.conf
-------
socket /var/run/mysql/mysql.sock


Changing the php.ini and my.cnf entries to match info.php and this script (and restarting MySQL and apache) immediateley fixed the problem !!

This is on:
Centos 4.0 (RHEL clone) with 2.6.9 kernel
Apache 1.3.33
PHP 4.3.10
Mysql 4.1.7
Xoop 2.2

Note that I had previously edited my.cnf and added the line
old_passwords
to the mysqld section prior to creating the MySQL user for Xoops.

Thanks everyone. This entire thread was invaluable !

al




TopTop



Login

Who's Online

169 user(s) are online (111 user(s) are browsing Support Forums)


Members: 0


Guests: 169


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits