본문 바로가기

DB/MySQL

(6)
Error Code: 3 - Error writing file '/tmp/xxxxxxx (Errcode: 28) Error Code: 3 - Error writing file '/tmp/xxxxxxx (Errcode: 28) 8GB파일 mysql 덤프 시키는 과정에서 뜬 에러인데 이전 에러와 같은 디스크(임시파일) 용량 부족이다. http://plzu.tistory.com/549 특히 MySQL 임시 디렉토리 용량 /etc/my.cnf 에서 용량이 많은 임시 디렉토리를 추가 해주면 ok tmpdir=/tmp2
mysql Errcode: 28 해당 테이블에 문제가 있는 것이 아니라 해당 테이블을 불러 올때 (조금 크게 불러올때) 메모리나, 하드가 모자란 경우 발생된다. 특히 하드 용량 부족 ^^;
MySQL 서비스 등록 mysqld --install 서비스 이름 --defaults-file="환경파일" ex) mysqld --install MySQL5 --defaults-file="D:\SERVER_WEB\my.ini" 서비스 삭제는 "mysqld-nt --remove 서비스 이름"
MySQL 에서 euc_kr.conf 이 없다고 할 때 왜 기본적으로 euc_kr.conf가 없을까 흠.... 1. euc_kr.conf를 생성한다. # Configuration file for the euc_kr character set # ctype array (must have 257 elements) 00 20 20 20 20 20 20 20 20 20 28 28 28 28 28 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 48 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 84 84 84 84 84 84 84 84 84 84 10 10 10 10 10 10 10 81 81 81 81 81 81 01 01 01 01 01 01 01 01 01 01 01 01 01 0..
DB존재 파악하고 없으면 DB테이블 생성 많은 방법들이 있겠지만, 가장 널리 쓰이는 2가지 방법을 정리하면 1. SQL create table if not exists 'tablename' 2. Function function table_exist_check($table,$handle) { $result = mysql_query("SHOW TABLES LIKE '{$table}'",$handle); $row = mysql_fetch_assoc($result); if ( $row ) return true; return false; } table_check3('tablename',$dbconn);
mysql table 필드 타입 별 스토리지 사용량 및 최대값 Type Bytes Minimum Value Maximum Value TINYINT (Signed) 1 -128 127 (Unsigned) 0 255 SMALLINT (Signed) 2 -32768 32767 (Unsigned) 0 65535 MEDIUMINT (Signed) 3 -8388608 8388607 (Unsigned) 0 16777215 INT (Signed) 4 -2147483648 2147483647 (Unsigned) 0 4294967295 BIGINT (Signed) 8 -9223372036854770000 9223372036854770000 (Unsigned) 0 18446744073709500000