เจอปัญหา Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) [2002] บน FreeBSD

Post a reply

Smilies
:icon_plusone: :like: :plusone: :gfb: :-D :) :( :-o 8O :? 8) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :wink: :!: :?: :idea: :arrow: :| :mrgreen: :angry: :baa: :biggrin:
View more smilies

BBCode is ON
[img] is ON
[flash] is OFF
[url] is ON
Smilies are ON

Topic review
   

Expand view Topic review: เจอปัญหา Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) [2002] บน FreeBSD

Re: เจอปัญหา Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) [2002] บน FreeBSD

by mindphp » 23/07/2017 3:20 am

ทางแก้ ให้
kill process
คำสั่ง

Code: Select all

kill [psid]
แล้ว start mysql ใหม่ด้วยคำสั่ง

Code: Select all

/usr/local/etc/rc.d/mysqld start

เจอปัญหา Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) [2002] บน FreeBSD

by mindphp » 23/07/2017 3:08 am

เจอปัญหา Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) [2002] บน FreeBSD


ลองใช้คำสั่ง

Code: Select all

mysql -h localhost -u root -p
เจอข้อความ
mysql: unknown variable 'query_cache_size=256M'

Top