Skip to content

CHICPRO

  • Life Log
  • Cycling Log
  • Photo Log
    • Portrait
    • Landscape
    • Flower
    • Etc
  • Coding Log
  • Information

phpMyAdmin 4 설정

2013-10-06 by 편리

MySQL을 쉽게 관리하기 위해서 phpMyAdmin을 사용하게 된다. 그런데 phpMyAdmin 4을 사용하면서 blowfish_secret 설정문제라든가 storage 설정 문제라든가 하면서 로그인할 때마다 알림이 표시돼서 오늘은 그걸 해결해보고자 삽질을 했다. 그 문제들을 해결하지 않아도 사용하는데 전혀 문제가 없는데도 말이다. 쉬어야 하는데 쉬면 자꾸 이런 삽질만 하는 것 같아서 쉬는 게 없어야 하나? 하는 생각이 들기도 한다.

아래 코드는 phpMyAdmin에 포함된 설치 스크립트를 이용해 생성한 것이다. 설정 저장을 위한 DB 테이블도 생성을 했다. DB 생성은 phpMyAdmin에 포함된  create_tables.sql 파일을 import해서 완료했다.

<?php
/* Servers configuration */
$i = 0;

/* Server: phpmyadmin [1] */
$i++;
$cfg['Servers'][$i]['verbose'] = 'phpmyadmin';
$cfg['Servers'][$i]['host'] = 'localhost';
$cfg['Servers'][$i]['port'] = '';
$cfg['Servers'][$i]['socket'] = '';
$cfg['Servers'][$i]['connect_type'] = 'tcp';
$cfg['Servers'][$i]['extension'] = 'mysqli';
$cfg['Servers'][$i]['auth_type'] = 'cookie';
$cfg['Servers'][$i]['user'] = '';
$cfg['Servers'][$i]['password'] = '';
$cfg['Servers'][$i]['pmadb'] = 'phpmyadmin';
$cfg['Servers'][$i]['controlhost'] = 'localhost';
$cfg['Servers'][$i]['controluser'] = 'phpmyadmin';
$cfg['Servers'][$i]['controlpass'] = 'password';
$cfg['Servers'][$i]['bookmarktable'] = 'pma__bookmark';
$cfg['Servers'][$i]['relation'] = 'pma__relation';
$cfg['Servers'][$i]['userconfig'] = 'pma__userconfig';
$cfg['Servers'][$i]['table_info'] = 'pma__table_info';
$cfg['Servers'][$i]['column_info'] = 'pma__column_info';
$cfg['Servers'][$i]['history'] = 'pma__history';
$cfg['Servers'][$i]['recent'] = 'pma__recent';
$cfg['Servers'][$i]['table_uiprefs'] = 'pma__table_uiprefs';
$cfg['Servers'][$i]['tracking'] = 'pma__tracking';
$cfg['Servers'][$i]['table_coords'] = 'pma__table_coords';
$cfg['Servers'][$i]['pdf_pages'] = 'pma__pdf_pages';
$cfg['Servers'][$i]['designer_coords'] = 'pma__designer_coords';

/* End of servers configuration */

$cfg['DefaultLang'] = 'ko';
$cfg['ServerDefault'] = 1;
$cfg['UploadDir'] = '';
$cfg['SaveDir'] = '';
$cfg['blowfish_secret'] = 'xxxxxxxx';
?>

phpMyAdmin 설정 파일인 config.inc.php 파일을 생성하기 위해서는 phpMyAdmin의 setup 폴더에 접속하면 된다. 먼저 phpMyAdmin이 설치된 폴더안에 config 폴더를 만들고 퍼미션을 쓰기 권한(예 707)이 있도록 수정한 후 설치 스크립트를 실행하면 config.inc.php 파일이 config 폴더 안에 생성된다. 이 파일을 phpMyAdmin 루트 폴더 즉 config 폴더의 상위 폴더로 이동시키면 된다.

추가로 blowfish_secret 코드를 생성하기 위해서는 http://www.question-defense.com/tools/phpmyadmin-blowfish-secret-generator 에 접속해도 된다.

Post navigation

Previous Post:

[EOS 7D] 꽃

Next Post:

Nexus 5 이렇게 나오면 질러줄 것 같은데..

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Recent Posts

  • php 배열 연산에서 + 와 array_merge 의 차이
  • pcntl_fork 를 이용한 다중 프로세스 실행
  • 아이폰 단축어를 이용하여 주중 공휴일엔 알람 울리지 않게 하기
  • 구글 캘린더 전체일정 재동기화
  • OpenLiteSpeed 웹서버에 HTTP 인증 적용
  • OpenLiteSpeed 웹어드민 도메인 연결
  • WireGuard를 이용한 VPN 환경 구축
  • Ubuntu 22.04 서버에 OpenLiteSpeed 웹서버 세팅
  • 맥 vim 세팅
  • 우분투 시스템 터미널쉘 zsh 로 변경

Recent Comments

  • 편리 on 업무관리용 그누보드 게시판 스킨
  • 임종섭 on 업무관리용 그누보드 게시판 스킨
  • 캐논 5D 펌웨어 | Dslr 펌웨어 업그레이드 방법 82 개의 베스트 답변 on 캐논 EOS 30D 펌웨어 Ver 1.0.6 , EOS 5D 펌웨어 Ver 1.1.1
  • Top 5 캐논 5D 펌웨어 Top 89 Best Answers on 캐논 EOS 30D 펌웨어 Ver 1.0.6 , EOS 5D 펌웨어 Ver 1.1.1
  • 편리 on 워드프레스 애니메이션 gif 파일을 mp4로 변환하여 출력하기
  • 임팀장 on 워드프레스 애니메이션 gif 파일을 mp4로 변환하여 출력하기
  • 편리 on Notepad++ NppFTP 플러그인 수동 설치
  • paul-j on Notepad++ NppFTP 플러그인 수동 설치
  • YS on Windows 10 iCloud 사진 저장 폴더 변경
  • 편리 on Docker를 이용한 Centos7 + httpd + php 5.4 개발환경 구축

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org
© 2025 CHICPRO | Built using WordPress and SuperbThemes