/* About ----- This directory contains extra files to make the 'fancy urls' feature even more fancier, by eliminating the 'index.php'-part of the URL Installation ------------ 1. Copy all files in this directory (except for index.html) to your main nucleus dir (where your index.php and action.php file are) If you have an already existing .htaccess file (most ftp-programs don't show hidden files by default, so don't start uploading it without checking your server). If you do, download that old one first, and copy the contents of the new .htaccess file (from the fancyurls folder) in your old one, and upload that... 2. Edit this file so that $CONF['Self'] points to your main directory. NOTE: this time, and only this time, the URL should NOT end in a slash 3. Also edit the $CONF['Self'] variable in your index.php, if you don't want to end up with index.php/item/1234 urls when people come via that way 4. Enable 'Fancy URLs' in the Nucleus admin area (nucleus management / edit settings) 5. Off you go! If it doesn't work: ------------------- Remove the files again (don't forget the hidden file .htaccess). Voila. */ // remember: this URL should _NOT_ end with a slash. $CONF['Self'] = 'http://www.momoso-net.com/~ms08'; ?>
2008-12-24: MySQLのテーブルがクラッシュ!
最近サボりすぎでした。なぜか?それは考えることが多すぎて、そんなのを理由にサボってしまた。昔々、ある所にお爺さんとお婆さんが住んでいました。お爺さんは、夏から一生懸命に流木を集め仏様を彫っていました。お爺さんは、良いお正月を迎えるため、創りためて置いた流木の仏様を町に売りにいきました。お爺さんの作った流木の仏様は、「自然にできた木目に温かみがあると」あっというまに全てが売れてしまいました。売れたお金を持って帰り、箪笥の上において置きました。それを見つけたお婆さんは「ホー」と声おあげました。お爺さんはすこし照れくさそうにしていると。お婆さんは「これで借金を返すからね」、「がんばってんな」といいました。お爺さんは「はぁ・」と、やはり照れくさそうにしていたとさ。 おしまいおしまい。
それはさておきMySQLのテーブルがクラッシュしている。ブログをあけるとこんなメッセージが!
Nucleusカウンタプラグインのテーブルです。
mySQL error with query SELECT * FROM nucleus_plugin_counter ORDER BY count_time DESC LIMIT 1: Table './blog_fusakazu_new/nucleus_plugin_counter' is marked as crashed and last (automatic?) repair failed
そんなときはまずmyisamchkでチェック
gentooez8 blog_fusakazu_new # myisamchk nucleus_plugin_counter.MYI
Warning: option 'key_buffer_size': unsigned value 18446744073709551615
adjusted to 4294963200
Warning: option 'read_buffer_size': unsigned value 18446744073709551615
adjusted to 4294967295
Warning: option 'write_buffer_size': unsigned value 18446744073709551615
adjusted to 4294967295
Warning: option 'sort_buffer_size': unsigned value 18446744073709551615
adjusted to 4294967295
Checking MyISAM file: nucleus_plugin_counter.MYI
Data records: 43702 Deleted blocks: 0
myisamchk: warning: Table is marked as crashed and last repair failed
myisamchk: warning: 2 clients are using or haven't closed the table properly
− check file-size
myisamchk: warning: Size of datafile is: 1393112 Should be: 1393048
− check record delete-chain
− check key delete-chain
− check index reference
− check data record references index: 1
myisamchk: error: Found 43704 keys of 43702
− check record links
myisamchk: error: Record-count is not ok; is 43704 Should be: 43702
myisamchk: warning: Found 43704 parts Should be: 43702 parts
MyISAM-table 'nucleus_plugin_counter.MYI' is corrupted
Fix it using switch "-r" or "-o"
クラッシュしてるからオプションに"-r"か"-o"つけて修復
gentooez8 blog_fusakazu_new # myisamchk -r nucleus_plugin_counter.MYI
Warning: option 'key_buffer_size': unsigned value 18446744073709551615
adjusted to 4294963200
Warning: option 'read_buffer_size': unsigned value 18446744073709551615
adjusted to 4294967295
Warning: option 'write_buffer_size': unsigned value 18446744073709551615
adjusted to 4294967295
Warning: option 'sort_buffer_size': unsigned value 18446744073709551615
adjusted to 4294967295
− recovering (with sort) MyISAM-table 'nucleus_plugin_counter.MYI'
Data records: 43702
− Fixing index 1
Data records: 43704
日々の積み重ねをカウントしているデータテーブルも壊れてしまえばおしまい。お爺さんはまた川の流木を集め仏様を彫るでしょう。感謝と優しさを心に持ち続けるために。
Category: BLOG/Nucleus No Trackbacks