MySQL 을 각기 다른 버전으로 2개 사용할때 phpmyadmin 사용법. 및 제로보드 설치법
MySQL 을 현재 3.23 을 사용중이었는데, 제로보드XE 설치를 위해,
MySQL 4.1버전을 하나 더 설치하였습니다. 4.1버전은 /tmp/mysql4.sock 를 작성하도록 작업해 놓았으며,
3.2 버전은 /tmp/mysql.sock 를 참조하도록 해놓았습니다.
phpmysql 을 2군데다 설치 한 다음 네임서버 작업까지 끝내놓은 상태인데, 문제는
mysql 4.1 버전이 떠야할 phpmyadmin 이 계속 기존것이 3.2버전이 뜨더군요. 물론 config.inc.php 파일은 다음과 같이 수정했습니다.
// The $cfg['Servers'] array starts with $cfg['Servers'][1]. Do not use $cfg['Servers'][0].
// You can disable a server config entry by setting host to ''.
$i++;
$cfg['Servers'][$i]['host'] = 'localhost'; // MySQL hostname or IP address
$cfg['Servers'][$i]['port'] = '3307'; // MySQL port - leave blank for default port
$cfg['Servers'][$i]['socket'] = '/tmp/mysql4.sock'; // Path to the socket - leave blank for default socket
$cfg['Servers'][$i]['connect_type'] = 'tcp'; // How to connect to MySQL server ('tcp' or 'socket')
$cfg['Servers'][$i]['extension'] = 'mysql'; // The php MySQL extension to use ('mysql' or 'mysqli')
$cfg['Servers'][$i]['compress'] = FALSE; // Use compressed protocol for the MySQL connectin
다음과 같이 변경된 포트와 변경 sock 파일을 넣어줬습니다. 그래도 마찬가지로 계속 기존것이 뜨네요..
아파치상에 설정파일 수정후 재구동 작업도 완료했습니다. 어떻게 해야 할지 알려주세요..
2번째는 제로보드를 설치하려 하는데, 3307번포트로 접근해서 설치를 하고 싶습니다. 물론 mysql.sock 위치는 다르지만요..
혹 다른 부분 수정해야 되는 부분이 있는지 부탁드립니다..ㅠㅠ..
댓글 달기