Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Server Operation

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 9th June 2013, 20:42
nackgr nackgr is offline
Member
 
Join Date: Nov 2012
Posts: 31
Thanks: 4
Thanked 0 Times in 0 Posts
Default Mysql.sock accidental delete!!!

Hello

i accidental delete from /var/lib/mysql the mysql.sock file ! and now can start mysql

I use centos ! what should i do !!!!!!!!
Reply With Quote
Sponsored Links
  #2  
Old 9th June 2013, 20:51
TiTex TiTex is offline
Senior Member
 
Join Date: Aug 2011
Location: Cluj-Napoca,Romania
Posts: 125
Thanks: 0
Thanked 17 Times in 17 Posts
Send a message via Skype™ to TiTex
Default

what error do you get ?
Reply With Quote
  #3  
Old 9th June 2013, 20:53
nackgr nackgr is offline
Member
 
Join Date: Nov 2012
Posts: 31
Thanks: 4
Thanked 0 Times in 0 Posts
Default

[root@host tmp]# /etc/init.d/mysqld restart
Stopping mysqld: [ OK ]
MySQL Daemon failed to start.
Starting mysqld: [FAILED]
Reply With Quote
  #4  
Old 9th June 2013, 21:02
TiTex TiTex is offline
Senior Member
 
Join Date: Aug 2011
Location: Cluj-Napoca,Romania
Posts: 125
Thanks: 0
Thanked 17 Times in 17 Posts
Send a message via Skype™ to TiTex
Default

have you google it ?
what linux distribution are you using ?
also mysql.sock should be recreated when mysql server starts ...

do you have a line in you my.cnf with bin-logging (log-bin=mysql-bin) ? ... comment it out and try again
Reply With Quote
  #5  
Old 9th June 2013, 21:05
nackgr nackgr is offline
Member
 
Join Date: Nov 2012
Posts: 31
Thanks: 4
Thanked 0 Times in 0 Posts
 
Default

i am googling 2 hours now !!

Centos and mysql 5.5

i add that to my.cfn

log-bin=/var/lib/mysql/binlog


130609 21:05:52 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
130609 21:05:53 [Note] Plugin 'FEDERATED' is disabled.
/usr/libexec/mysqld: Can't find file: './mysql/plugin.frm' (errno: 13)
130609 21:05:53 [ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it.
130609 21:05:53 InnoDB: The InnoDB memory heap is disabled
130609 21:05:53 InnoDB: Mutexes and rw_locks use GCC atomic builtins
130609 21:05:53 InnoDB: Compressed tables use zlib 1.2.3
130609 21:05:53 InnoDB: Using Linux native AIO
130609 21:05:53 InnoDB: Initializing buffer pool, size = 128.0M
130609 21:05:53 InnoDB: Completed initialization of buffer pool
130609 21:05:53 InnoDB: Operating system error number 13 in a file operation.
InnoDB: The error means mysqld does not have the access rights to
InnoDB: the directory.
InnoDB: File name ./ibdata1
InnoDB: File operation call: 'open'.
InnoDB: Cannot continue operation.
130609 21:05:53 mysqld_safe mysqld from pid file /var/run/mysqld/mysqld.pid ended

Last edited by nackgr; 9th June 2013 at 21:10.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
ISPConfig 3.0.3.3 Autoresponder, adding subdomain problem BlackHat Installation/Configuration 4 18th October 2011 14:24
CPU load locks up box. Apache or MYSQL related. crypted General 61 29th October 2010 22:16
After accidental file delete - stats not being updated Been Told General 4 5th August 2009 10:26
That EASY to DELETE Domains??? angry Feature Requests 3 17th November 2008 20:55
Domain won't delete, New Domain Won't Add crypted General 3 26th October 2008 00:09


All times are GMT +2. The time now is 01:53.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.