Forum Problems Installing LAMS: Re: problems with building LAMS from source


 
Search: 

2: Re: problems with building LAMS from source
In response to 1 07/12/09 03:58 PM
[ Reply | Forward ]
Is MySQL listening on port 3306? Check if /etc/my.cnf has the directive 'skip-networking' - if so, comment it out and restart mysql.

Posted by Jun-Dir Liew

4: Re: Re: problems with building LAMS from source
In response to 2 07/15/09 01:20 PM
[ Reply | Forward ]
Jun,

MySQL is indeed running on 3306 (the directives in the cnf files say so)
and the "skip-networking" directive is already commented out by default...

Posted by Navin Jathan

6: Re: Re: Re: problems with building LAMS from source
In response to 4 07/15/09 06:43 PM
[ Reply | Forward ]
You can make sure that it's running by doing netstat -an | grep 3306, and seeing if anything is listening on that port.

'Connection refused' in the error might also mean a firewall - could that be the problem?

Posted by Jun-Dir Liew

7: Re: Re: Re: Re: problems with building LAMS from source
In response to 6 07/18/09 03:34 AM
[ Reply | Forward ]
netstat -an | grep 3306 does not give any output, however in all the four files in /etc/ - my-huge.cnf, my-large.cnf, my-medium.cnf, my-small.cnf - i can see port = 3306 in the "[mysqld]" section. ( i am not sure which one of the four is exactly to be referred... if somebody can point it out...)

Additionally netstat -an | grep -i sql, i get the following output:

-----------
bash-3.1$ netstat -an | grep -i sql
unix 2 [ ACC ] STREAM LISTENING 8469 /var/run/mysql/mysql.sock
-----------

Posted by Navin Jathan

Reply to first post on this page
Back to Problems Installing LAMS