Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
 Post subject: Mysql Issues
PostPosted: Tue Sep 23, 2014 9:23 am 
Offline
Senior Newbie

Joined: Fri Sep 05, 2014 2:15 pm
Posts: 5
Hello,

I have been having frequent issues with mysql. I only have a couple of wordpress and drupal sites and it seems that mysql just shuts down and I have to restart my server to get it working. Wordpress just says "cannot establish database connection" but everything gets back to normal after restarting.

I looked into error log and it just has bunch of "table needs repair errors."

Any ideas?


Top
   
 Post subject: Re: Mysql Issues
PostPosted: Tue Sep 23, 2014 10:21 am 
Offline
Senior Member

Joined: Sun Mar 07, 2010 7:47 pm
Posts: 1970
Website: http://www.rwky.net
Location: Earth
I suspect your node is running out of memory then the kernel is killing off MySQL. Also it sounds like you're using MyISAM tables which aren't crash safe.

If you're using apache search the forums for MaxClients there's a ton of threads on it. If you are using MyISAM try converting to InnoDB. Also check your system logs (probably /var/log/messages or /var/log/syslog) for out of memory errors.

_________________
Paid support
How to ask for help
1. Give details of your problem
2. Post any errors
3. Post relevant logs.
4. Don't hide details i.e. your domain, it just makes things harder
5. Be polite or you'll be eaten by a grue


Top
   
 Post subject: Re: Mysql Issues
PostPosted: Tue Sep 23, 2014 1:59 pm 
Offline
Senior Newbie

Joined: Fri Sep 05, 2014 2:15 pm
Posts: 5
obs wrote:
I suspect your node is running out of memory then the kernel is killing off MySQL. Also it sounds like you're using MyISAM tables which aren't crash safe.

If you're using apache search the forums for MaxClients there's a ton of threads on it. If you are using MyISAM try converting to InnoDB. Also check your system logs (probably /var/log/messages or /var/log/syslog) for out of memory errors.


I dont know much about MyISAM or INNODB but I did import my databases from a server running mysql 5.0.6. My current version is 5.5. Could that be an issue? I will look into those error logs and report back.

Thanks.


Top
   
 Post subject: Re: Mysql Issues
PostPosted: Wed Sep 24, 2014 8:52 am 
Offline
Senior Member

Joined: Sun Mar 07, 2010 7:47 pm
Posts: 1970
Website: http://www.rwky.net
Location: Earth
If by import you meant you generated a sql dump then no that won't be a problem, though you probably do have MyISAM since that was the default engine in 5.0

_________________
Paid support
How to ask for help
1. Give details of your problem
2. Post any errors
3. Post relevant logs.
4. Don't hide details i.e. your domain, it just makes things harder
5. Be polite or you'll be eaten by a grue


Top
   
 Post subject: Re: Mysql Issues
PostPosted: Thu Sep 25, 2014 12:52 am 
Offline
Senior Newbie

Joined: Fri Sep 05, 2014 2:15 pm
Posts: 5
obs wrote:
If by import you meant you generated a sql dump then no that won't be a problem, though you probably do have MyISAM since that was the default engine in 5.0


Yes it appears that some tables are in MYIsam and some in Innodb. Anyway to convert them to Innodb?


Top
   
 Post subject: Re: Mysql Issues
PostPosted: Thu Sep 25, 2014 8:27 am 
Offline
Senior Member

Joined: Sun Mar 07, 2010 7:47 pm
Posts: 1970
Website: http://www.rwky.net
Location: Earth
run
Code:
ALTER TABLE tablename ENGINE=InnoDB
on them

_________________
Paid support
How to ask for help
1. Give details of your problem
2. Post any errors
3. Post relevant logs.
4. Don't hide details i.e. your domain, it just makes things harder
5. Be polite or you'll be eaten by a grue


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group