hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Hosting Security and Technology : MySQL Error
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

MySQL Error

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 01-21-2004, 04:52 PM
vision3 vision3 is offline
Web Hosting Guru
 
Join Date: Aug 2003
Location: PA
Posts: 299

MySQL Error


Hi im getting this error in my WHM:

Quote:
mysql has failed, please contact the sysadmin (result was "/usr/bin/mysqlshow: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)"). Jan 20 14:26:50 vision3 mysql: Killing mysqld with pid 12472 Jan 20 14:26:51 vision3 mysql: Wait for mysqld to exit\c Jan 20 14:26:52 vision3 mysql: .\c Jan 20 14:26:55 vision3 mysql: done Jan 20 14:26:55 vision3host rc: Stopping mysql: succeeded Jan 20 15:44:42 vision3host mysql: Killing mysqld with pid 1298 Jan 20 15:44:43 vision3host mysql: Wait for mysqld to exit\c Jan 20 15:44:44 vision3host mysql: done Jan 20 15:44:44 vision3host rc: Stopping mysql: succeeded
Any one had any problems like this?

Reply With Quote


Sponsored Links
  #2  
Old 01-21-2004, 08:47 PM
vision3 vision3 is offline
Web Hosting Guru
 
Join Date: Aug 2003
Location: PA
Posts: 299
I was able to fix it. I just rebooted the server and that did the trick.

Reply With Quote
  #3  
Old 01-21-2004, 10:09 PM
MaB MaB is offline
Web Hosting Master
 
Join Date: Oct 2001
Posts: 1,244
A reboot seems extreme, /etc/rc.d/init.d/myqql restart should restart mysql on a redhat box...

__________________
Avi Brender
Reliable Web Hosting by Elite Hosts, Inc
CPANEL Reseller Hosting - Fantastico - Rvskins - ClientExec


Reply With Quote
Sponsored Links
  #4  
Old 01-21-2004, 11:12 PM
vision3 vision3 is offline
Web Hosting Guru
 
Join Date: Aug 2003
Location: PA
Posts: 299
thanks ill remember that

Reply With Quote
  #5  
Old 01-22-2004, 02:01 AM
blessen blessen is offline
Web Hosting Master
 
Join Date: Aug 2003
Location: Gods Own Country
Posts: 850
Most of the time this command will not work
/etc/rc.d/init.d/mysql

So you will have to use /usr/bin/safe_mysqld

The above command will work for sure

__________________
Blessen Cherian
Follow me on twitter.com/blessenonly
Over a decade plus in the Hosting Industry

Reply With Quote
  #6  
Old 01-22-2004, 03:53 AM
bitserve bitserve is offline
Web Hosting Master
 
Join Date: Nov 2001
Location: Ann Arbor, MI
Posts: 2,978
Of course my mysqld SYSV init scripts call safe_mysqld, which is also just a script.

__________________
-Mark Adams
www.bitserve.com - Secure Michigan web hosting for your business.
Only host still offering a full money back uptime guarantee and prorated refunds.
Offering advanced server management and security incident response!

Reply With Quote
  #7  
Old 01-22-2004, 06:03 AM
Winkie Winkie is offline
Web Hosting Master
 
Join Date: Aug 2002
Location: UK
Posts: 846
You /should/ run /etc/init.d/mysql(d) restart

init.d is where your init scripts do, blessen you'd be calling the binary, MaB you'd be calling a symlink (not as heinous a crime)

also it might not be 'restart', I can't remember

__________________
my $Winkie = skills('Technical Advisor', 'Network Technician', 'Perl Programmer', 'Server Admin');
I'm currently looking for employment as all of the above.

Reply With Quote
  #8  
Old 01-22-2004, 11:03 AM
MaB MaB is offline
Web Hosting Master
 
Join Date: Oct 2001
Posts: 1,244
You are right about the 'restart', you'd have to run
/etc/rc.d/init.d/mysql(d) stop
/etc/rc.d/init.d/mysql(d) star

__________________
Avi Brender
Reliable Web Hosting by Elite Hosts, Inc
CPANEL Reseller Hosting - Fantastico - Rvskins - ClientExec


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 Sales and Promos Roundup - October 7, 2011 Web Hosting News 2011-10-07 19:56:18
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


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?