Web Hosting Forum | Lunarpages


*
Welcome, Guest. Please login or register.
Did you miss your activation email?



Login with username, password and session length
February 09, 2012, 10:42:50 AM

Pages: [1]   Go Down
  Print  
Author Topic: Error MYI'. (errno: 145)  (Read 12486 times)
Stephanie®
Master Jedi
*****
Offline Offline

Posts: 1096



« on: September 12, 2003, 11:11:27 AM »

Hi,

Were getting a few tickets from people with forum boards with regards to the
MYI'. (errno: 145)

Error 145 = Table was marked as crashed and should be repaired

This mainly happens with the "sessions" table.

This is the table responsible for storing who is logged in.
It's called by the script in order to display the username.

This is not a bug in the SQL.

In order to repair this:

  • Go into php myadmin.
  • Backup your Database.
  • Select the database in question.
  • check the box next to your sessions table.
(if you unsure which one this is, select them all)

  • Scroll down to the box that says "With selected"
  • Select "Repair"

This will then repair the table and you script should function again.

Please Remember to backup your database before attempting any of this.

More information on SQL table errors and how to repair them can be found at:

http://www.mysql.com/doc/en/Repair.html

If anyone has anything interesting to add to this, I'd love to hear it.

Thanks Razz
Logged

MishaPappa
Jabba the Hutt
*****
Offline Offline

Posts: 587


« Reply #1 on: September 12, 2003, 11:20:52 AM »

This thread may prove insightful into the problem as well http://www.lunarforums.com/forum/viewtopic.php?t=7362 (specifically the related cPanel info)

There may also be a problem if a table is defined as HEAP instead of MyISAM that leads to issues -- many forum products that initially used HEAP type tables in their architecture have recommended altering the table types to MyISAM -- though performance may suffer if a very busy site/database...
Logged

"I know that you understood what you think I said but I'm not sure you realize that what you heard is not what I meant..."

Andromeda, April 2003 - Sept 2004
Lyra, since Sept 2004

Misha
TWebMan
Quantum Encyclopedia Writer
*****
Offline Offline

Posts: 3112



WWW
« Reply #2 on: April 29, 2004, 12:16:12 PM »

Performance on MYISAM tables is greatly affected by the state of the table.  Putting optimization commands in your scripts will keep them running as smoothly and quickly as possible, particularly after inserts and updates.
Logged

"Computers cause people to make more mistakes than any other invention in history, with the possible exception of handguns and tequila."  - Unknown
"Liberty of any kind is seldom lost all at once." - D. Hume
Every day is an Ode to Joy
The planet will be fine... and so will your site
clever_clown
Galactic Royalty
*****
Offline Offline

Posts: 252



« Reply #3 on: October 08, 2008, 12:38:53 PM »

Hello Stephanie®,

I thing there is a bug with the repair option (not sure) when I select the table and choose repair it reset the rows to 0,
let's take the users table is the crashed one, it will remove all the records...

Any ideas?? don't hesitate to share your info....

Cordially,
Logged
Lunartique
Intergalactic Cowboy
*****
Offline Offline

Posts: 52


LUNAFIL


WWW
« Reply #4 on: February 01, 2011, 10:40:08 AM »

Try using this :
Code: Select all
    TRUNCATE phpBB_sessions;
Code: Select all
    REPAIR TABLE phpBB_sessions;

and the scripts as seen in http://www.phpbb.com/phpBB/viewtopic.php?t=259967
http://dev.mysql.com/doc/refman/5.5/en/crashing.html and
http://search.mysql.com/search/query/search?q=repair.html
may also fix the problem
Logged
sannyfairy
Newbie
*
Offline Offline

Posts: 1


« Reply #5 on: August 18, 2011, 04:41:22 AM »

Error 145 in MS sql indicates the database corruptiondu due to which you are unable to access database objects and tables. To fix this error, repair sql database with the help of msql repair tool which is highly enough to repair as well as recover all the sql database items completely.
 
Logged
Pages: [1]   Go Up
  Print  
 
Jump to: