Error in installing mysql on unix server

Hi ,

I am trying to install mysql but getting below error

$[root@VREDTEST2 installables]# mysql
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
 

can anyone provide me this file 'mysql.sock'

Thanks

check if this helps you

Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock

not solved :frowning:

Hello Aish11,
I think you are posting in the wrong place Mate. This place is for Shell Scripting related queries.

You better should Google / search MySQL Forums for the resolution of the same.

To help you a little:

Fix: Can�t connect to local MySQL server through socket �/var/lib/mysql/mysql.sock�

ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysq

Well, what does the log file say?

tyler_durden

Starting the daemon should've worked.

root@bt> mysql -u root -p mysql
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)

root@bt> /etc/init.d/mysql start
Rather than invoking init scripts through /etc/init.d, use the service(8)
utility, e.g. service mysql start

Since the script you are attempting to invoke has been converted to an
Upstart job, you may also use the start(8) utility, e.g. start mysql
mysql start/running, process 6713
root@bt> 
root@bt> mysql -u root -p mysql
Enter password: 
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A

Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 41
Server version: 5.1.41-3ubuntu12.10 (Ubuntu)

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql>

--ahamed

1) but the folder "mysql " is not available inside var/lib/

2) i am not able to run /etc/init.d/mysql start

as mysql is not available inside /etc/init.d

3)how to check mysql is installed and running or not?

 [root@VREDTEST2 /]# /etc/init.d/mysqld start
bash: /etc/init.d/mysqld: No such file or directory