Greetings. I have followed your tutorials and my apache and php work. (I run a linux box) mysql is installed as I can see databases. When I want to connect, I get the error (cannor recall the correct format and wording) function mysql_connect unable to connect ..../tmp/mysql.sock
I have tried changing the /etc/my.cnf file settings as mysql.sock is in /var/lib/mysql.sock but when I look at the properties, it shows 0 file size.
Could you possibly assist.
Many thanks and kind regards
Dmitri
Can you post the whole error message because I can't help you until I know what it said.
Chances are that you need to go over your mysql_connect code to make sure you have all the fields right etc. Let me know.
What I did was create a link ln -s /var/lib/mysql/mysqlsock /tmp/mysql.sock and it solved the problem. Hopefully this will help others who have a similar problem. (Took me a few days to figure it out :) )
Kind regards
Dmitri
This is a common problem people face on OpenBSD because, by default, apache runs chrooted. You will usually need to re-create the link on boot due to changing inode numbers.