|
|
|
Âü°íÀÚ·á |
±Û¾´ÀÌ : M¡¦
³¯Â¥ : 07-09-26 02:42
Á¶È¸ : 3359
|
|
Æ®·¢¹é ÁÖ¼Ò : http://www.moto.co.kr/bbs/tb.php/gallery_5/1001
|
|
select max(vi_id) as max_vi_id from g4_visit
1016 : Can't open file: 'g4_visit.MYI'. (errno: 145)
error file : /gnuboard4/index.php
====================================
mysql º¹±¸Çϱâ
mysql> select * from SMHWINFO;
ERROR 1016: Can\'t open file: \'SMHWINFO.MYD\'. (errno: 145)
À§¿Í °°Àº mysql ¿¡·¯°¡ ¹ß»ýÇϸé mysql Å×À̺íÀÌ ¼Õ»óµÈ °æ¿ìÀÔ´Ï´Ù.
MYDÈ®ÀåÀÚ¸¦ °¡Áø ÆÄÀÏÀº mysql data¸¦ ÀúÀåÇÏ´Â ÆÄÀÏÀÔ´Ï´Ù.
ÀÏ´Ü DB¸¦ ³»¸®°í MYD, MYI, frm ÆÄÀÏÀ» ¹é¾÷ÇصӴϴÙ.
(ÀÌ°æ¿ìÀÇ ¹é¾÷Àº ÆÄÀÏ ¹é¾÷À» ¸»Çϴ°ÍÀÌ´Ù.)
±×¸®°í³ª¼ myisamchk·Î º¹±¸¸¦ ½ÃµµÇغ¾´Ï´Ù.
killall mysqld ->mysql µ¥¸ó Á×À̱â
./myisamchk --safe-recorver /usr/local/mysql/data/DB¸í/º¹±¸ÇÒ Å×À̺í¸í
¿©±â¼ myisamchk ÆÄÀÏÀÌ Æнº°¡ °É·ÁÀÖÀ¸¸é ¾Æ¹«°÷¿¡¼³ª ½ÇÇàÀÌ °¡´ÉÇÏÁö¸¸ ¾Æ´Ñ°æ¿ì¿¡´Â mysqlÀÌ ¼³Ä¡µÈ µð·ºÅ丮ÀÇ
bin µð·ºÅ丮 ¾Æ·¡¿¡ ÀÖ½À´Ï´Ù.
ex)/usr/local/mysql/bin/myisamchk
/usr/local/mysql/data ÀÌ °æ·Î´Â ¼Ò½ºÄÄÆÄÀÏ ÇÒ¶§ MYD°¡ ÀúÀåµÉ µð·ºÅ丮¸íÀ» data·Î ¹Ù²ãÁØ °æ¿ìÀÔ´Ï´Ù.
¼Ò½ºÄÄÆÄÀÏ ÇÒ¶§ÀÇ µðÆúÆ® ¼³Á¤Àº /usr/local/mysql/var ·Î µÇ¾îÀÖ°í, rpm ÀÇ °æ¿ì¿¡´Â /var/lib/mysql/ ÀÔ´Ï´Ù.
|
|
M¡¦ |
07-09-26 14:10 |
|
¾Æ·¡ ÈÀÏÀ» ±×´©º¸µå ·çÆ® ¶Ç´Â bbs ³ª adm¿¡ ¿øÇÏ½Ã´É À̸§À¸·Î ÀúÀåÇϽÅÈÄ ½ÇÇàÇØ º¸¼¼¿ä...
<?
include_once("./_common.php");
if ($is_admin != "super")
alert("ÃÖ°í°ü¸®ÀÚ¸¸ Á¢±Ù °¡´ÉÇÕ´Ï´Ù.", $g4[path]);
// ¹æ¹®ÀÚÇÕ°è Å×À̺í Çʵå Ãß°¡
sql_query(" ALTER TABLE {$g4['visit_sum_table']} ADD `vs_pageview` int( 11 ) NOT NULL AFTER `vs_count` ", FALSE);
goto_url("$g4[path]");
?>
phpMyAdmin¿¡ °¡¼Å¼ Ãß°¡Çصµ µÇ³ª ¹ø°Å·Î¿ï°Í °°¾Æ¼ À§¿Í °°ÀÌ ´ñ±Û µå¸³´Ï´Ù....^^
|
|
|
M¡¦ |
07-09-26 14:17 |
|
|