[Oracle 10g] java.sql.SQLException: IO 예외 상황: The Network Adapter could not establish the connection

Posted at 2009/06/09 17:38 // in DBMS // by 엔신
java.sql.SQLException: IO 예외 상황: The Network Adapter could not establish the connection
오라클을 설치 후 원격의 시스템과 연결이 아닌 localhost(127.0.0.1)에 연결하고자 할 때 리스너 설정이 잘못된 경우 위와 같은 에러 메시지가 발생할 수 있다. 그 외에도 여러가지 에러에 발생할 수 있겠지만, 본인의 경우를 중점으로 설명한다.(단기기억력으로 나중에 고생하기싫어요...)

리스너와 관련된 설정 파일은
C:\oracle\product\10.2.0\db_1\NETWORK\ADMIN 경로의
tnsnames.ora와 listener.ora 파일이다.
그러나 파일을 열어보고 수정하기에는 설정 파일의 문법을 모르기 때문에 가독성 면에서 좋지 못하다.
시작 -> 프로그램 > 오라클 메뉴로 가면 구성 및 이전 툴 메뉴에 Net Manager 단축아이콘이 존재한다.

Net Manager에서는 리스너와 2개의 서비스가 최소한 존재할 것이다.
2개의 서비스는 리스너의 두 항목과 일치하여야 정상적으로 서비스 이용이 가능한데, 이 부분이 서로 일치하지 않을 경우 위와 같은 에러 메시지를 접할 수 있다.

사용자 삽입 이미지
사용자 삽입 이미지
사용자 삽입 이미지
사용자 삽입 이미지

위 4개의 그림에서는 리스너중 주소1의 IPC가 EXTPROC1으로 되어 있지만, extproc_connection_data 서비스에서는 EXTPROC0으로 서로 일치하지 않는다. 이럴 경우 위와 같은 에러메시지를 접하게 되므로 리스너의 주소1을 EXTPROC0으로 수정하여 서비스와 서로 일치하게 만든다.

위의 경우에는 IPC의 값이 일치하지 않아 발생했을 때이고, 또 다른 경우는 TCP/IP가 일치하지 않아 발생할 수도 있다.

서비스 네임은 darkhi으로 설정하고, 호스트 이름 : darkhi-054fa49f, Port : 1521로 설정하고 리스너에서도 동일하게 설정하고 정작 접속할 때 jdbc:oracle:thin:@127.0.0.1:1521:PLSExtProc1과 같이 일치하지 않은 내용을 입력할 경우에도 문제가 발생할 수 있다. 그 외에도 여러가지 이므로 상황에 맞게 리스너 설정을 변경하여주면 된다.

인터넷에서 찾아본 결과, IP가 자동인 경우 문제가 된다고 하였는데, 127.0.0.1인 Loopback 장치를 사용하는데 IP를 자동으로 받아오든 말든 무슨 상관이 있겠나 싶다.(물론 그런 경우도 있겠지만, 여기서는 loopback 장치를 사용하였으므로)

위 경우가 항상 100% 해답은 아니라고 생각되며, 상황에 따라 다른 경우 상황에서도 위와 같은 오류가 발생할 수 있는 것 같다.

저장 메뉴는 오른쪽 상단의 파일 -> 네트워크 구성 저장 메뉴를 이용하면 된다.
또한 환경설정의 경우 오라클 서비스를 재시작하거나, 운영체제를 재시작하여 reload하여야 한다.

이올린에 북마크하기
2009/06/09 17:38 2009/06/09 17:38

mysql 설치 후 root 비밀번호 설정, db 생성

Posted at 2009/01/31 21:40 // in DBMS // by 엔신
/usr/local/mysql/bin/mysql_install_db 기본 디비생성(최초한번만 실행)
 ; 위 내용은 myysqld 처음 시작하면 자동으로 됨

/usr/local/mysql/bin/mysqladmin -u root password '암호'
 ; 루트 패스워드 설정법

# mysql -u root -p
 ; 데이터베이스에 접속한다

mysql> create database DB이름;
Query OK, 1 row affected (0.00 sec)
 ; 데이터베이스를 생성해준다.

mysql> GRANT ALL PRIVILEGES ON DB이름.* TO 사용자ID@localhost IDENTIFIED BY '비밀번호' WITH GRANT OPTION;
Query OK, 0 rows affected (0.00 sec)
 ; 생성한 데이터베이스를 관리할 사용자를 지정하고 비밀번호를 선언해준다.

# 명령어는 대소문자를 구별하지 않음.

이올린에 북마크하기
2009/01/31 21:40 2009/01/31 21:40

show variables 변경하기 5.0 기준 서버 변수 변경하기

Posted at 2008/03/21 21:46 // in DBMS // by 엔신
Variable Name Value Type Type
autocommit boolean SESSION
big_tables boolean SESSION
binlog_cache_size numeric GLOBAL
bulk_insert_buffer_size numeric GLOBAL | SESSION
character_set_client string GLOBAL | SESSION
character_set_connection string GLOBAL | SESSION
character_set_results string GLOBAL | SESSION
character_set_server string GLOBAL | SESSION
collation_connection string GLOBAL | SESSION
collation_server string GLOBAL | SESSION
concurrent_insert boolean GLOBAL
connect_timeout numeric GLOBAL
convert_character_set string GLOBAL | SESSION
default_week_format numeric GLOBAL | SESSION
delay_key_write OFF | ON | ALL GLOBAL
delayed_insert_limit numeric GLOBAL
delayed_insert_timeout numeric GLOBAL
delayed_queue_size numeric GLOBAL
error_count numeric SESSION
expire_logs_days numeric GLOBAL
flush boolean GLOBAL
flush_time numeric GLOBAL
foreign_key_checks boolean SESSION
ft_boolean_syntax numeric GLOBAL
group_concat_max_len numeric GLOBAL | SESSION
identity numeric SESSION
insert_id boolean SESSION
interactive_timeout numeric GLOBAL | SESSION
join_buffer_size numeric GLOBAL | SESSION
key_buffer_size numeric GLOBAL
last_insert_id numeric SESSION
local_infile boolean GLOBAL
log_warnings boolean GLOBAL
long_query_time numeric GLOBAL | SESSION
low_priority_updates boolean GLOBAL | SESSION
max_allowed_packet numeric GLOBAL | SESSION
max_binlog_cache_size numeric GLOBAL
max_binlog_size numeric GLOBAL
max_connect_errors numeric GLOBAL
max_connections numeric GLOBAL
max_delayed_threads numeric GLOBAL
max_error_count numeric GLOBAL | SESSION
max_heap_table_size numeric GLOBAL | SESSION
max_insert_delayed_threads numeric GLOBAL
max_join_size numeric GLOBAL | SESSION
max_relay_log_size numeric GLOBAL
max_seeks_for_key numeric GLOBAL | SESSION
max_sort_length numeric GLOBAL | SESSION
max_tmp_tables numeric GLOBAL
max_user_connections numeric GLOBAL
max_write_lock_count numeric GLOBAL
myisam_max_extra_sort_file_size numeric GLOBAL | SESSION
myisam_max_sort_file_size numeric GLOBAL | SESSION
myisam_repair_threads numeric GLOBAL | SESSION
myisam_sort_buffer_size numeric GLOBAL | SESSION
net_buffer_length numeric GLOBAL | SESSION
net_read_timeout numeric GLOBAL | SESSION
net_retry_count numeric GLOBAL | SESSION
net_write_timeout numeric GLOBAL | SESSION
optimizer_prune_level numeric GLOBAL | SESSION
optimizer_search_depth numeric GLOBAL | SESSION
query_alloc_block_size numeric GLOBAL | SESSION
query_cache_limit numeric GLOBAL
query_cache_size numeric GLOBAL
query_cache_type enumeration GLOBAL | SESSION
query_cache_wlock_invalidate boolean GLOBAL | SESSION
query_prealloc_size numeric GLOBAL | SESSION
range_alloc_block_size numeric GLOBAL | SESSION
read_buffer_size numeric GLOBAL | SESSION
read_only numeric GLOBAL
read_rnd_buffer_size numeric GLOBAL | SESSION
rpl_recovery_rank numeric GLOBAL
safe_show_database boolean GLOBAL
server_id numeric GLOBAL
slave_compressed_protocol boolean GLOBAL
slave_net_timeout numeric GLOBAL
slow_launch_time numeric GLOBAL
sort_buffer_size numeric GLOBAL | SESSION
sql_auto_is_null boolean SESSION
sql_big_selects boolean SESSION
sql_big_tables boolean SESSION
sql_buffer_result boolean SESSION
sql_log_bin boolean SESSION
sql_log_off boolean SESSION
sql_log_update boolean SESSION
sql_low_priority_updates boolean GLOBAL | SESSION
sql_max_join_size numeric GLOBAL | SESSION
sql_quote_show_create boolean SESSION
sql_safe_updates boolean SESSION
sql_select_limit numeric SESSION
sql_slave_skip_counter numeric GLOBAL
sql_warnings boolean SESSION
storage_engine enumeration GLOBAL | SESSION
table_cache numeric GLOBAL
table_type enumeration GLOBAL | SESSION
thread_cache_size numeric GLOBAL
time_zone string GLOBAL | SESSION
timestamp boolean SESSION
tmp_table_size enumeration GLOBAL | SESSION
transaction_alloc_block_size numeric GLOBAL | SESSION
transaction_prealloc_size numeric GLOBAL | SESSION
tx_isolation enumeration GLOBAL | SESSION
unique_checks boolean SESSION
wait_timeout numeric GLOBAL | SESSION
warning_count numeric SESSION

mysql>show variables;          // 서버 변수보기
mysql>SET GLOBAL max_allowed_packet = 1024 * 1024 * 32;      // 기본값은 16메가 인데... 32메가로 변경
mysql>SET SESSION max_allowed_packet = 1024 * 1024 * 5;       // 기본값은 1메가 인데... 5메가로 변경

위의 두개는 넉넉하게 사용하자..
백업받은 자료를 살릴때 17메가라면 에러난다... 넉넉하게 32메가로..
직접 쿼리로 데이터를 넣을때 1메가라면 좀 게시판에 무거운 내용들은 올라가지 않는다..넉넉하게 5메가로...

http://cafe.naver.com/okjsp.cafe?iframe_url=/ArticleRead.nhn%3Farticleid=135


동일한 제목으로 네이버 검색하면 나옴

max_allowed_packet 발생시 대처법

이올린에 북마크하기
2008/03/21 21:46 2008/03/21 21:46

MySQL 를 설치했는데 character set 의 변경

Posted at 2008/02/25 23:53 // in DBMS // by 엔신

안녕하세요. 신규로 4.1.7버전의 MySQL 를 설치했는데 character set 의 변경이 잘 되지 않아서 질문 올립니다.
아래에 버전 및 시도해본 방법을 적었습니다. 함 확인해보시고요 해결책 알려주시면 감사하겠습니다~


0. 버전
버전 : 4.1.7, source compile 해서 설치 (my.cnf 에서 수정하려고 configure 할때 character set 설정 하지 않았습니다.)


1. 현재 character 정보
mysql> show variables like 'char%';
+--------------------------+----------------------------------------+
| Variable_name | Value |
+--------------------------+----------------------------------------+
| character_set_client | latin1 |
| character_set_connection | latin1 |
| character_set_database | latin1 |
| character_set_results | latin1 |
| character_set_server | latin1 |
| character_set_system | utf8 |
| character_sets_dir | /usr/local/mysql/share/mysql/charsets/ |
+--------------------------+----------------------------------------+


2. 변경하려고 시도해본 방법
1) my.cnf 변경
[mysqld] 아래에
default-character-set=euckr
를 추가하고 mysql을 재시작하면 에러가 납니다.
/mysql/var/***.err 에서 에러를 확인하면 아래와 같습니다.

/usr/local/mysql/libexec/mysqld: Character set 'euckr' is not a compiled character set and is not specified in the '/usr/local/mysql/share/mysql/charsets/Index.xml' file


"Character set 'euckr' is not a compiled character set" 이라면 compile할때 euckr 이 빠졌다는 것인가요?

'/usr/local/mysql/share/mysql/charsets/Index.xml' file 에는 euckr 항목이 있습니다.

<charset name="euckr">
<family>Korean</family>
<description>EUC-KR Korean</description>
<alias>euc_kr</alias>
<alias>euc-kr</alias>
<collation name="euckr_korean_ci" id="19" order="Korean">
<flag>primary</flag>
<flag>compiled</flag>
</collation>
<collation name="euckr_bin" id="85">
<flag>binary</flag>
<flag>compiled</flag>
</collation>
</charset>


2) database의 character set을 직접 변경
mysql> ALTER DATABASE tv DEFAULT CHARACTER SET euckr;
ERROR 1115 (42000): Unknown character set: 'euckr'


3) 지원하는 character set 확인
설치한 mysql 서버에서 지원하는 character set을 확인해 보았습니다만 euckr 이 없네요.

mysql> SHOW CHARACTER SET;
+----------+-----------------------------+---------------------+--------+
| Charset | Description | Default collation | Maxlen |
+----------+-----------------------------+---------------------+--------+
| dec8 | DEC West European | dec8_swedish_ci | 1 |
| cp850 | DOS West European | cp850_general_ci | 1 |
| hp8 | HP West European | hp8_english_ci | 1 |
| koi8r | KOI8-R Relcom Russian | koi8r_general_ci | 1 |
| latin1 | ISO 8859-1 West European | latin1_swedish_ci | 1 |
| latin2 | ISO 8859-2 Central European | latin2_general_ci | 1 |
| swe7 | 7bit Swedish | swe7_swedish_ci | 1 |
| ascii | US ASCII | ascii_general_ci | 1 |
| hebrew | ISO 8859-8 Hebrew | hebrew_general_ci | 1 |
| koi8u | KOI8-U Ukrainian | koi8u_general_ci | 1 |
| greek | ISO 8859-7 Greek | greek_general_ci | 1 |
| cp1250 | Windows Central European | cp1250_general_ci | 1 |
| latin5 | ISO 8859-9 Turkish | latin5_turkish_ci | 1 |
| armscii8 | ARMSCII-8 Armenian | armscii8_general_ci | 1 |
| utf8 | UTF-8 Unicode | utf8_general_ci | 3 |
| cp866 | DOS Russian | cp866_general_ci | 1 |
| keybcs2 | DOS Kamenicky Czech-Slovak | keybcs2_general_ci | 1 |
| macce | Mac Central European | macce_general_ci | 1 |
| macroman | Mac West European | macroman_general_ci | 1 |
| cp852 | DOS Central European | cp852_general_ci | 1 |
| latin7 | ISO 8859-13 Baltic | latin7_general_ci | 1 |
| cp1251 | Windows Cyrillic | cp1251_general_ci | 1 |
| cp1256 | Windows Arabic | cp1256_general_ci | 1 |
| cp1257 | Windows Baltic | cp1257_general_ci | 1 |
| binary | Binary pseudo charset | binary | 1 |
| geostd8 | GEOSTD8 Georgian | geostd8_general_ci | 1 |
+----------+-----------------------------+---------------------+--------+


1)의 에러메시지에서 처럼 euckr character set 이 compile 되지 않았다는 것 같은데요,

그럼 어떻게 추가할수 있을까요.


이 글에 대한 댓글이 총 4건 있습니다.

안녕하세여

보니까 euckr 이 아니고 euc_kr 아닌가요 ?

euc_kr 로 한번 해보세여

윤명식(jazzlian)님이 2004-12-07 11:11:03에 작성한 댓글입니다.

정상적(?)으로 euckr을 지원하는 서버에서 확인해보면

mysql> show character set;
...

| euckr | EUC-KR Korean | euckr_korean_ci | 2 |

...

로 나옵니다.

버전에 따라 다른건가요? 제가 설치한것은 4.1.x 입니다.

오세영(osy530)님이 2004-12-07 11:48:48에 작성한 댓글입니다.

4.1에서는 euc_kr이 euckr로 변경되었습니다

오세윤님이 2004-12-07 13:43:22에 작성한 댓글입니다. Edit

별다른 해결책이 없는거 같아 새로 설치했습니다. ^^;;

configure 할때 characterset 옵션 주고 하니 잘 되네요.


참고로 한가지. 4.1 버전에서는 jdbc 설정도 변경해줘야 합니다.

이전버전에서 jdbc 설정했던 characterEncoding=EUC-KR로 하면 아래와 같은 에러가 납니다.

characterEncoding=euckr 로 하세요~


General error,  message from server: "Illegal mix of collations (euckr_korean_ci
,IMPLICIT) and (latin1_swedish_ci,COERCIBLE) for operation '='"



오세영(osy530)님이 2004-12-07 18:06:06에 작성한 댓글입니다.
이 댓글은 2004-12-07 18:06:26에 마지막으로 수정되었습니다.

http://blog.naver.com/hwangton?Redirect=Log&logNo=50001838485
이올린에 북마크하기
2008/02/25 23:53 2008/02/25 23:53

mysql 5에서 make 중 오류

Posted at 2008/02/24 15:11 // in DBMS // by 엔신
# make

(중략)

../depcomp: line 512: exec: g++: not found
make[2]: *** [my_new.o] Error 127
make[2]: Leaving directory `/root/mysql-5.0.45/mysys'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/mysql-5.0.45'
make: *** [all] Error 2


# g++
-bash: g++: command not found

g++가 존재하지 않는다. g++를 설치한다.


# yum install gcc-c++

후 confiure 다시해하고 make 해야됨

이올린에 북마크하기
2008/02/24 15:11 2008/02/24 15:11

MySQL 설치/사용시 나는 에러 유형별 대처방법

Posted at 2008/02/24 13:02 // in DBMS // by 엔신
[ MySQL 설치/사용시 나는 에러 유형별 대처방법 ]

1. ./configure 시에 에러가 날때..

증상 : checking for tgetent in -lncurses... no
checking for tgetent in -lcurses... no
checking for tgetent in -ltermcap... no
checking for termcap functions library... configure: error: No curses/termcap library found
[root@localhost mysql-4.0.13]# make
make: *** No targets specified and no makefile found. stop.

왜 이런 메세지가 뜨는건가요?

해결책 : gcc가 없던지 아니면 패스가 안잡혀있는 경우입니다.

증상2 : configure: error: no acceptable C compiler found in $PATH
바로위에 에러메세지가 뜨는데요.,,  설치를잘못한건가요?

[root@localhost mysql-4.0.13]make를 실행하니까..

make: *** No targets specified and no makefile found.  멈춤.
메세지가 뜨네요....

해결책2 : 리눅스에 gcc가 설치됐는지 확인해보세요.

rpm -qa|grep gcc

---------------------------------

2. 소스 설치시 NOTE: This is a MySQL binary distribution. 라는 메시지가 나오며

증상 : It's ready to run, you don't need to configure it! 나옵니다. 이유가?

해결책 : 바이너리를 받으셨네요. 컴파일이 필요없는.. 그러니깐 이미 컴파일한 겁니다.
걍 압축풀고 적당한 위치로 이동시키면 됩니다.

tar zxvf mysql-xx.xx.tar.gz
mv mysql-xx.xx /usr/local/
ln -s /usr/local/mysqlxx.xx /usr/local/mysql

---------------------------------

3. mysql을 실행하면 2번 에러가...

증상 : ERROR 2002: Can't connect to local MySQL server through socket '/var/lib/mysql/m
ysql.sock' (2) 무슨 에러인지요?

해결법 : 데몬 구동시 ./safe_mysqld --user=mysql & 한번 해보세요.

그래도 에러가 나면 ln -s /tmp/mysql.sock /var/lib/mysql/mysql.sock 해보세요.

----------------------------------

4. mysql.sock 중에 40번에러가 뭐져?

증상 : ERROR 2002: Can't connect to local MySQL server through socket '/var/lib/mysql/m
ysql.sock' (40)

해결법 : chown mysql.mysql -R /var/lib/mysql 를 하시기 바랍니다.

그리고 참고로 php에서의 mysql socket 은 /etc/php.ini 에서 경로를 수정할 수 있습니다.

--------------------------------

5. mysql 데몬이 죽어버릴때

증상: ./mysqld_safe & 실행했습니다.
    chown mysql .. <-- 비슷한 오류가 뜨면서 데몬이 죽어버립니다..

해결법 : 레드햇 리눅스라면 groupadd 와 useradd 에 '-r' 옵션을 사용해 보세요..

# useradd -r -d /usr/local/mysql mysql

이렇게 하면 500 보다 작은 UID, GID를 가진 mysql 그룹과
사용자가 생성됩니다.

-------------------------------

6. mysql 실행시 데몬 바로 죽음

증상 : 030527 22:33:39  mysqld started
030527 22:33:39  Can't start server: Bind on TCP/IP port: 주소가 이미 사용 중입니다
030527 22:33:39  Do you already have another mysqld server running on port: 3306 ?
030527 22:33:39  Aborting
030527 22:39:50  /usr/local/mysql/libexec/mysqld: Shutdown 이 완료됨!
030527 22:39:50  mysqld ended

해결법 : 3306 포트에 이미 다른 mysqld 가 실행되고 있습니다.

/mysql/scripts/mysql_config 을 열어서 포트번호 수정하세요.

-------------------------------

7. mysql-4.0.12 설치후 데몬이 안띄워지고 바로 죽네요..

증상 : 정상적으로 소스 설치하고 나서,,
   /usr/local/mysql/bin 에서 아래와 같이 실행하면,,, 데몬이 시작하자 마자 바로 죽습니다.
   ./safe_mysqld Starting mysqld daemon with databases from /usr/local/mysql/var
   mysqld ended

그래서 에러 메세지를 보기 위해 /usr/local/mysql/var 로 이동하여 도매인.err 파일을
열어보니,, 아래와 같은 메세지가 있더군요.

mysqld started
InnoDB: Started
Fetal error: Can't open privilege tables: Can't find file: ' ./mysql/host.frm'(errno: 13)'
Aborting

해결법 : mysql_install_db 스크립트를 실행해서 초기 테이블을 생성해야 합니다.

       ./mysql_install_db 하시면 됩니다.

------------------------------

8. mysql sock 에러 문제의 확실한 해결법

증상 : 접속하면 >/var/lib/mysql/mysql.sock 어쩌구 저쩌구 (111) 어쩌구 저쩌구..
머 이런 에러 나면서 접속 안되신 분들 많으실 겁니다.

해결법 : 문제는 간단합니다. 디렉토리 퍼미션 문제입니다.....

killall mysqld

chmod 755 -R /var/lib/mysql

chown mysql.mysql -R /var/lib/mysql

safe_mysqld --language=korean &

------------------------------

9. make 명령어를 실행하면 설치가 해제가 되거든요

증상 : make[2]: *** No rule to make target `ctype-euc_kr.lo', needed by `bmove_upp.lo'. 멈춤.

make[2]: 나감 `/usr/local/down/mysql-3.23.38/libmysql' 디렉토리

make[1]: *** [all-recursive] 오류 1

make[1]: 나감 `/usr/local/down/mysql-3.23.38' 디렉토리

make: *** [all-recursive-am] 오류 2

해결법 : 먼저 LD_LIBRARY_PATH에 모든 라이브러리 경로가 들어가 있어야 합니다.

이런 경우때문에 필요한 라이브러리를 찾지못해 에러가 납니다.

거의 필요한 패키지를 설치했는데도 에러가 나면

LD_LIBRARY_PATH를 확인해볼 필요가 있답니다.

------------------------------

10. mysql 설치시 gcc에러나는데 해결책 좀

증상 : 에러 내용과 커맨드는 아래와 같습니다.

# ./configure --prefix=/usr/local/mysql --with-charset=euc_kr

checking for c++... c++
checking whether the C++ compiler (c++   ) works... no
configure: error: installation or configuration problem: C++ compiler cannot create executables.

해결책 : red hat 8.0 설치시 gcc,gcc++등 여러가지 설치가 안되는게 많더군요.

rpm으로 찾아서 다 설치하고 나서 컴파일 하면 됩니다.

rpmfind.net에서 찾으실 수 있습니다. 에러 보고 하나하나 다 설치하시면 됩니다.

------------------------------

11. 인스톨 설치도중 103 에러

증상 : an error occured move data process: -103
compenent : server
mySQL 4.0 설치할 때 잘되다가 이것되문에 설치가 안되네요..
이전에 깔았던 mySQL 3.23 때문에 그런지.. 영.. 모르겠네요.

해결책 : mysql이 설치된 폴더를 완전시 삭제하신 후에 다시 받으셔서 설치해보세요.

-----------------------------

12. mysql설치 시 invalid user 오류가..

증상 : chown: mysql: invalid user
Starting mysqld daemon with databases from /usr/local/mysql/data
030417 11:42:35  mysqld ended

데몬실행시 이런 에러가 뜨네요...
어떻게 해결하면 되죠?

해결책 : mysql 이란 유져가 유효하지 않다라는 에러로
현재 mysql이란 계정이 존재하지 않기때문에 나는 에러입니다.

설치하신 후 mysql이란 그룹과 유저를 생성해주시고
/usr/local/mysql/ 아래 디렉토리에 대한 권한도 주셔야 제대로 동작할 것 입니다.

-----------------------------

13. mysql 4.0.12 설치 시 "Check your system clock" 오류

증상 : mysql 4.0.12를 설치하는데...
> ./configure --prefix=/usr/local/mysql --with-charset=euc_kr
이렇게 했는데 다음과 같은 메세지가 나옵니다.
checking build system type... i686-pc-linux
checking host system type... i686-pc-linux
checking target system type... i686-pc-linux
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... configure: error: newly created file is older than distributed files!
Check your system clock
왜 그런건지 알려주세요..

해결법 : mysql이 개발된 시간보다 현재시간이 늦어서(?) 생기는 문제입니다.

시간설정으로 간단히 해결할 수 있습니다.

인터넷(네트웍)이 되는 상황이라면
rdate -s time.nuri.net (잘못된 시간 설정을 올바르게 바꾸는 명령)를 하시고
(time.nuri.net <== 이부분은 다른서버를 이용하셔도 무방)
아니면 date 명령어로 시간을 현재시간으로 설정해주세요...

예) date 06111800 (6월 11일 저녁6시)

-----------------------------

14. 설치시 configure: error: no acceptable cc found in $PATH 에러

증상 : ./configure 하면 중간에
configure: error: no acceptable cc found in $PATH
이라는 글씨가 써지면서 멈춰버리더군요. 다른 버전을 설치해도 마찬가지입니다.

해결법 : cc 즉 c complier 가 없다는 말입니다

c 컴파일러가 PATH에 안잡혀 있을 수 있습니다. path를 추가하거나 gcc를 다시 설치하십시요.

-----------------------------

15. config시 ERROR: 1062 Duplicate entry 'localhost-root' for key 1

증상 : mysql 소스설치 config시
다음과 같은 에러가 나는데요..
rpm버전 삭제했는데 데몬이 살아 있나?
ps -ax | grep mysql 하면 암것도 안나오거든요.

ERROR: 1062 Duplicate entry 'localhost-root' for key 1
ERROR: 1062 Duplicate entry 'localhost-root' for key 1
030312 14:58:03 ./bin/mysqld: Shutdown Complete

해결책 : 캐시에 이전데몬이 살아있기 때문입니다.
kill 명령으로 프로세스를 완전히 죽이신 다음 다시 설치하시면 됩니다.

-----------------------------

16. configure 에러로 "error : No curses/termcap library found" 무슨 에러죠?

증상 : checking for termcap functions library...

configure: error : No curses/termcap library found

해결책 : libtermcap-devel-xxx 패키지가 필요해서 발생하는 에러입니다.

설치시디를 넣으시고 설치를 하시면 해결됩니다.


http://blog.daum.net/kanto235/13992741

이올린에 북마크하기
2008/02/24 13:02 2008/02/24 13:02