3

Mysql server seems working properly and running also i can connect to the database via ssh command, here's the my.cnf file directives:

[mysqld]
#port=3306
datadir=/home/mysql
socket=/home/mysql/mysql.sock
user=mysql
# Disabling symbolic-links is recommended to prevent assorted security risks
symbolic-links=0

[mysqld_safe]
log-error=/var/log/mysqld.log
pid-file=/var/run/mysqld/mysqld.pid
socket=/home/mysql/mysql.sock

[client]
#port=3306
socket=/home/mysql/mysql.sock

im trying to install a script it says :

Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
GUI9876
  • 31
  • 2
  • You've commented out MySQL standard TCP ports, are you trying to run your script from the same machine MySQL is running? – Fredi Nov 12 '15 at 00:44
  • yes the script is installed on the same machine, also mysql server is running and i can access to database with commands but the script cannot recognize the path where mysql.sock is stored – GUI9876 Nov 12 '15 at 01:02
  • Permissions of /home/mysql/mysql.sock can be a problem. – user292283 Nov 18 '15 at 09:29

0 Answers0