MySQL problems

moneyshot

Member
Jun 24, 2001
108
0
0
Ok. I'm trying to install phpbb forums. They use php and Mysql, I have PHP4 working fine. But when the install.php tests my Mysql it gives this error:

'Testing DB Connection...
Warning: MySQL Connection Failed: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (111) in /var/www/html/forums/install.php on line 39'

I was told this may be because I have not setup my etc/my.cnf, the person who told me this was not kind enough to tell me how to set it up though. If you believe this is the problem, could someone be kind enough to past an example of a working my.cnf here. If you would like some more info about the machine go here php4 test file (gives info about php and mysql config on the machine). This is all on Redhat 7.1 full install, which included apache, php4 and mysql out of the box. Thanks in advance.
 

Armitage

Banned
Feb 23, 2001
8,086
0
0
The mysql server is probably not started. RH 7.* doesn't seem to work quite right "out of the box" (out of the rpm?).

Try this:

ps -ax | grep mysqld

If you don't see anything (other then the grep command), it's not running.

I've tried using chkconfig to turn it on, but it doesn't seem to take.
This works though:

# service mysqld start

You may have to change some permissions as well:

# chown -R mysql.mysql /var/lib/mysql; chmod a+rX /var/lib/mysql

I'm primarily using MySQL under RH6.2, but the above steps got it running for me under 7.1
The mailing list archive is a good source for questions like this.
Good luck
 

moneyshot

Member
Jun 24, 2001
108
0
0
I did '# service mysqld start' and it stated that it started ok. But still no luck. Is there anything you have to configure in the my.cnf for it to work correctly? The error message I get in the logs is 'can't find file /mysql/host.frm' yet the file is there.
 

Armitage

Banned
Feb 23, 2001
8,086
0
0
does the file '/var/lib/mysql/mysql.sock' exist?
Maybe its in a different location?
Maybe it has the wrong permissions? My install on RH 6.2 has the file owed by mysql.mysql
Can you start the normal command-line client?
Does the user that you're attempting to run the script as have permissions to the database server?

Not sure I can help much more. I'm just learning MySQL myself, and I don't know anything about PHP.
 

moneyshot

Member
Jun 24, 2001
108
0
0
Ok I'll make this simpler. If you had a perfectly clean install of RH 7.1 what would you do to configure mysql. I'm a total n00b so please be scpecific. ie: how do you setup clients for mysql, do you have to tell it path names, is their a command line configuration? Thanks.
 
sale-70-410-exam    | Exam-200-125-pdf    | we-sale-70-410-exam    | hot-sale-70-410-exam    | Latest-exam-700-603-Dumps    | Dumps-98-363-exams-date    | Certs-200-125-date    | Dumps-300-075-exams-date    | hot-sale-book-C8010-726-book    | Hot-Sale-200-310-Exam    | Exam-Description-200-310-dumps?    | hot-sale-book-200-125-book    | Latest-Updated-300-209-Exam    | Dumps-210-260-exams-date    | Download-200-125-Exam-PDF    | Exam-Description-300-101-dumps    | Certs-300-101-date    | Hot-Sale-300-075-Exam    | Latest-exam-200-125-Dumps    | Exam-Description-200-125-dumps    | Latest-Updated-300-075-Exam    | hot-sale-book-210-260-book    | Dumps-200-901-exams-date    | Certs-200-901-date    | Latest-exam-1Z0-062-Dumps    | Hot-Sale-1Z0-062-Exam    | Certs-CSSLP-date    | 100%-Pass-70-383-Exams    | Latest-JN0-360-real-exam-questions    | 100%-Pass-4A0-100-Real-Exam-Questions    | Dumps-300-135-exams-date    | Passed-200-105-Tech-Exams    | Latest-Updated-200-310-Exam    | Download-300-070-Exam-PDF    | Hot-Sale-JN0-360-Exam    | 100%-Pass-JN0-360-Exams    | 100%-Pass-JN0-360-Real-Exam-Questions    | Dumps-JN0-360-exams-date    | Exam-Description-1Z0-876-dumps    | Latest-exam-1Z0-876-Dumps    | Dumps-HPE0-Y53-exams-date    | 2017-Latest-HPE0-Y53-Exam    | 100%-Pass-HPE0-Y53-Real-Exam-Questions    | Pass-4A0-100-Exam    | Latest-4A0-100-Questions    | Dumps-98-365-exams-date    | 2017-Latest-98-365-Exam    | 100%-Pass-VCS-254-Exams    | 2017-Latest-VCS-273-Exam    | Dumps-200-355-exams-date    | 2017-Latest-300-320-Exam    | Pass-300-101-Exam    | 100%-Pass-300-115-Exams    |
http://www.portvapes.co.uk/    | http://www.portvapes.co.uk/    |