Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
MySQL (Innodb vs MyISAM)
#11
DB restores of that size pretty much have to be done from the command line (SSH).

mysql -uUSERNAME -pPASSWORD DATABASE < backup.sql

That pretty much does it but of course replace with your own info.
Superman I am here to rescue you.
This is Support Forums not Support PMs.  Do not PM me for support unless it's private and site related.
Reply
#12
(05-24-2010, 06:19 PM)Omniscient Wrote: DB restores of that size pretty much have to be done from the command line (SSH).

mysql -uUSERNAME -pPASSWORD DATABASE < backup.sql

That pretty much does it but of course replace with your own info.

Thanks, I've been curious about this for a while Victoire
Reply
#13
(01-16-2010, 06:30 PM)Omniscient Wrote: Recently I was having severe mysql problems with my biggest forum. I would have constant crashes and I tried just about everything.

Eventually I tried to alter tables from myisam to innodb and with a few minor adjustments my 1.8gb database was actually consuming 1/10th of it's previous resources. Where I was nearly about to get a new server now I have room to double or even triple in database size without a problem.

The secret why innodb was so much more efficient was how it handles table locks over mysiam. The method used by myisam to lock tables is to lock the entire table on every read/write. Innodb does row-level locking which means only the effected row is locked.

For tables that are constantly accessed that get locked very often Innodb is incredibly efficient. One important note is that innodb does take more overheard and ram but for large databases the offset could be a huge difference to your server resources.

Here is a blog post I made about my adjustments: Innodb Vs MyISAM

Thanks for the information. Looks this will sort out my problem also. Hope to get some more advise from you.

I have a site www.bigbrotherafrica.com with over 29,000 members hosted on my own dedicated server with Intel Xeon 3450 (Quad Core ), and 8 GB RAM ( on this server, I also have some other sites, but with little traffic ). The site has 81,169 posts in 6,331 threads and growing . It is a fan site for big brother africa show ( a reality show in Africa ). Every year , it has 91 days show on the tv 24x7. So these 91 days are the busy days for my site. During these 3 month, normal from Monday to Friday, Africa time 9:00 am - 4:00 pm , my site has very heavy traffic. Especially on every Monday, it can get 4000-5000 visitors online same time . But other time is not very busy, it can get less than 1000 visitors online same time every 15 minutes.

For last 2 weeks, I started getting too much connection errors. My server support team told me that

my server is processing a significant amount of traffic, driving the load average well over 100 (under 1 is preferred):

It is generating a very large number of "defunct" php processes, which are adding to this load.

Database traffic is a major component of the problem:

the numerous queries that are starting with "UPDATE mybb_users SET lastactive=" have locked each other for table access.

at any given time, there are 150+ database interactions occurring:

When I checked the server load from for admin cp page, it can be over 200.00. Most time was around 100.

Currently I have around 2000 new posts daily ( at the moment, my site is always crash , it can crash 10 times a day. I have to keep restart mysql ) . Everyday, around 6-8 hours, the site has heavy traffic, other time is not much.

Do you think my type of site can use your way to release the load? Will your way suit for my site?

Am not a technical people. Actually I even dont know much about the server. Hope to get some advise from you.

Thanks.
Reply
#14
Sounds like you have enough hardware. You may want to review the changes I've made. A few optimizations would probably keep you on that server for a long time.
Superman I am here to rescue you.
This is Support Forums not Support PMs.  Do not PM me for support unless it's private and site related.
Reply
#15
So, in a more rudimentary sense. You essentially changed your DB's "OS" from Windows to Linux.
Reply
#16
MyISAM OR InnoDB
Required full text Search myISAM
Require Transactions innoDB
frequent select queries myISAM
frequent insert,update,delete innoDB
Row Locking (multi processing on single table) innoDB
Relational base design innoDB

Hi, I have briefly discuss this matter by table so you can conclude which has to be chosen either innodb or MyISAM.

http://developer99.blogspot.com/2011/07/...yisam.html
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  vb6.0 + mysql Anurag.91 1 1,645 09-08-2012, 04:19 PM
Last Post: spesificrelax
  Creating and inserting data into a PHP and MySQL Database Peter L 9 4,020 03-24-2012, 10:49 AM
Last Post: Haxalot
  VB.NET MySql , Help please booterphhp 2 1,685 03-19-2012, 11:13 AM
Last Post: RainbowDashFTW
  [TUT] Include mySQL into php. MyNameIs940 48 22,783 01-14-2012, 04:45 PM
Last Post: Strafeness
  MySQL question ImFocuzz 8 2,674 07-17-2011, 06:57 PM
Last Post: Pedo bear

Forum Jump:


Users browsing this thread: 1 Guest(s)