MySQL.sock
Hi guys,
I am a newbie and am in the process of trying to set up my system. I was trying to install mythtv and I guess I have succeeded except that it won't run. When I attempt to run it I get a message about mysql.sock. Code:
ERROR 2002: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) Is this a file i need to create or has something gone horribly wrong. |
Don't worry managed to start it through services after much searching the web and head scratching, can't for the life of me understand why i was having problems but it's over now
|
ok problems were not over, although I got the server running I still could not use it from the command line, I tried several different solutions nothing worked whenever i tried to run any command line programs like mysql or mysqladmin I got the above error.
I have finally cracked the problem wide open, only one thing remains, I write this in the hope that any other newbies like myself who have this problem can avoid the nightmare i have had. I say nightmare, but I love the challenge, that is why I chose a distro which isn't stable, steeper learning curve. Ok here goes I owe all of this to other forums and other peoples expertise, I merely wanted to collect all of the info pertinent to me in one place. first step was to kill any processes involving mysql Code:
> killall mysqld Code:
> lsof then use Code:
> kill -KILL {pid} this should mean that you can start the server on port 3306 using Code:
> mysql_install_db now when i tried to run any tools i was still getting the same old error I was always getting (and getting sick of) after a little more searching I realised that the problem was that my computer was now called jelly no longer called localhost (the default) and I tried to start mysql with the following line Code:
> mysql -h jelly Code:
Welcome to the MySQL monitor. Commands end with ; or \g. Next the localhost needs to be set to whatever yours is. |
All times are GMT -5. The time now is 11:43 PM. |