Solaris

phpmyadmin & MySql 복구방법 설치시 오류문구 해결법

알 수 없는 사용자 2008. 2. 29.
728x90
config.sample.inc.php 파일명을 config.inc.php로 변경 시켜 밑에 내용처럼 수정 추가 합니다.
* 작업후 config.inc.php 삭제 하심이 보안관리상 *

1) 수정할 곳은 1군데 밑에처럼 영문 아무거나 입력 하시면 됨니다(ex cookie)
$cfg['blowfish_secret'] = ''; /* YOU MUST FILL IN THIS FOR COOKIE AUTH! */
$cfg['blowfish_secret'] = 'cookie'; /* YOU MUST FILL IN THIS FOR COOKIE AUTH! */

위처럼 수정 하지 않을시
http://도메인/phpMyAdmin/index.php 으로 접속 하면
밑에처럼 오류 문구가 뜹니다.
The configuration file now needs a secret passphrase (blowfish_secret).

2) 추가할 내용은
$cfg['DefaultConnectionCollation'] = 'utf8_general_ci';

위처럼 추가 하지 않을시
http://도메인/phpMyAdmin/index.php 으로 접속 하면
밑에처럼 오류 문구가 뜹니다.
#1272 - Unknown collation: 'utf8_unicode_ci'

3) 밑에 config.inc.php내용은 현재 쓰고 있는 내용이니 참고 하세요.


<?php
/* vim: set expandtab sw=4 ts=4 sts=4: */
/**
* phpMyAdmin sample configuration, you can use it as base for
* manual configuration. For easier setup you can use scripts/setup.php
*
* All directives are explained in Documentation.html and on phpMyAdmin
* wiki <http://wiki.cihar.com>.
*
* @version $Id: config.sample.inc.php 10142 2007-03-20 10:32:13Z cybot_tm $
*/

/*
* This is needed for cookie based authentication to encrypt password in
* cookie
*/
$cfg['blowfish_secret'] = 'cookie'; /* YOU MUST FILL IN THIS FOR COOKIE AUTH! */

/*
* Servers configuration
*/
$i = 0;

/*
* First server
*/
$i++;

/* Authentication type */
$cfg['Servers'][$i]['auth_type'] = 'cookie';
/* Server parameters */

$cfg['Servers'][$i]['host'] = 'localhost';
$cfg['Servers'][$i]['connect_type'] = 'tcp';
$cfg['Servers'][$i]['compress'] = false;

/* Select mysqli if your server has it */

$cfg['Servers'][$i]['extension'] = 'mysql';

/* User for advanced features */
// $cfg['Servers'][$i]['controluser'] = '';
// $cfg['Servers'][$i]['controlpass'] = '';
/* Advanced phpMyAdmin features */
// $cfg['Servers'][$i]['pmadb'] = 'phpmyadmin';
// $cfg['Servers'][$i]['bookmarktable'] = 'pma_bookmark';
// $cfg['Servers'][$i]['relation'] = 'pma_relation';
// $cfg['Servers'][$i]['table_info'] = 'pma_table_info';
// $cfg['Servers'][$i]['table_coords'] = 'pma_table_coords';
// $cfg['Servers'][$i]['pdf_pages'] = 'pma_pdf_pages';
// $cfg['Servers'][$i]['column_info'] = 'pma_column_info';
// $cfg['Servers'][$i]['history'] = 'pma_history';
// $cfg['Servers'][$i]['designer_coords'] = 'pma_designer_coords';

$cfg['DefaultConnectionCollation'] = 'utf8_general_ci';

/*
* End of servers configuration
*/

/*
* Directories for saving/loading files from server
*/
$cfg['UploadDir'] = '';
$cfg['SaveDir'] = '';

?>



config.inc.php 없을때 오류 화면
config.sample.inc.php 파일명을 config.inc.php로 변경



blowfish_secret 오류 화면시 밑에처럼 수정
$cfg['blowfish_secret'] = 'cookie'; /* YOU MUST FILL IN THIS FOR COOKIE AUTH! */



화면처럼 나오는 원인은 localhost나 아이피 주소를 적지 않고 주소를 썼을경우
$cfg['Servers'][$i]['host'] = 'http://www.ijalbaba.com/xxx/index.php';

변경 예)
$cfg['Servers'][$i]['host'] = 'localhost';
$cfg['Servers'][$i]['host'] = '127..x.x.x';



화면처럼 utf8_unicode_ci 오류시 밑에 내용추가
$cfg['DefaultConnectionCollation'] = 'utf8_general_ci';



로그인 화면


위 그림처럼 에러가 나올시...
php.ini 파일에서 밑에 3개 파일 주석을 제거후 밑에 처럼 파일복사 합니다.

mysql 확장모듈을 불러올 수 없습니다.PHP 환경설정을 검사하십시오.
복사 -> windows/system32/php_mysql.dll

The mbstring PHP extension was not found and you seem to be using multibyte charset.
Without mbstring extension phpMyAdmin is unable to split strings correctly and it may result in unexpected results.
복사 -> windows/system32/php_mbstring.dll

mcrypt 확장모듈을 불러올 수 없습니다.PHP 환경설정을 검사하십시오.
복사 -> windows/system32/php_mcrypt.dll

728x90

댓글