hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Hosting Security and Technology : Missing Mysql.sock
Reply

Hosting Security and Technology Configuring and optimizing web hosting servers and operating systems, developing administration scripts, building servers, protecting against hackers, and general security (SSL certificates, etc.)
Forum Jump

Missing Mysql.sock

Reply Post New Thread In Hosting Security and Technology Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 06-01-2005, 02:55 AM
bheka bheka is offline
Junior Guru Wannabe
 
Join Date: Sep 2004
Location: South Africa
Posts: 53

Missing Mysql.sock


Hi

I am getting the error message below when trying to start mysql in WHM. I have tried to look for myslq.sock with "whereis" and "slocate" but I still cannot find it.

Please help

~~~~~~~~~~~~~~~~~~~~~~
/usr/bin/mysqladmin: connect to server at 'localhost' failed error: 'Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)' Check that mysqld is running and that the socket: '/var/lib/mysql/mysql.sock' exists! mysql has failed, please contact the sysadmin (result was "Warning, no valid mysql.sock file found.mysql has failed").
~~~~~~~~~~~~~~~~~~~~~~

Reply With Quote


Sponsored Links
  #2  
Old 06-01-2005, 03:09 AM
assuredhost.com assuredhost.com is offline
Junior Guru Wannabe
 
Join Date: Oct 2004
Location: India
Posts: 80
Log into the shell :

And place this in the /etc/my.cnf

Quote:

[mysqld]
datadir=/var/lib/mysql
skip-locking
skip-innodb
query_cache_limit=1M
query_cache_size=64M
query_cache_type=1
max_connections=300
interactive_timeout=100
wait_timeout=100
connect_timeout=10
thread_cache_size=64
key_buffer=128
join_buffer=1M
max_allowed_packet=16M
table_cache=256
record_buffer=1M
sort_buffer_size=2m
record_buffer=1M
sort_buffer_size=2m
read_buffer_size=2m
read_rnd_buffer_size=768k
max_connect_errors=10
thread_concurrency=4
myisam_sort_buffer_size=64M


This should optmize mysql and fix the socket issue as you restart the mysql server from the shell.

Else paste the error from the shell.

__________________
AssuredHost.Com
Secured Shared and Reseller Web hosting Solutions
We Host Your Trust

Reply With Quote
  #3  
Old 06-01-2005, 03:38 AM
bheka bheka is offline
Junior Guru Wannabe
 
Join Date: Sep 2004
Location: South Africa
Posts: 53
worked like a charm ... you're the man.

Thanx a million

Reply With Quote
Sponsored Links
  #4  
Old 06-01-2005, 01:09 PM
assistanz247 assistanz247 is offline
Web Hosting Master
 
Join Date: Nov 2004
Location: India
Posts: 1,069
You can also try this command :

# /usr/local/cpanel/bin/sqlsocketcheck

Then 'service mysql start'

__________________
Outsourced Webhosting Support / cPanel Server Management Since 2004
Technical Support / Web Development / Billing Support

Reply With Quote
Reply

Related posts from TheWhir.com
Title Type Date Posted
Web Host Rackspace Launches Private Beta for MySQL Cloud Database Web Hosting News 2011-12-01 21:09:51
Parallels Now Offering Licenses for CloudLinux OS Web Hosting News 2011-10-26 17:29:25
Web Hosting Software Firm CloudLinux Releases CloudLinux OS Version 6.1 Web Hosting News 2011-09-13 14:08:49
Web Host FireHost Partners with Cloud Security Firm Gazzang for Data Encryption Web Hosting News 2011-08-16 20:33:43
Web Host Heart Internet Finds 50 Percent of Web Designers Forget Mobile User Experience Web Hosting News 2011-08-03 18:46:32


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?