Config.sample.inc.php

config.sample.inc.php

1 내용[ | ]

PHP
Copy
<?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 setup/
 *
 * All directives are explained in documentation in the doc/ folder
 * or at <http://docs.phpmyadmin.net/>.
 *
 * @package PhpMyAdmin
 */

/*
 * This is needed for cookie based authentication to encrypt password in
 * cookie
 */
$cfg['blowfish_secret'] = 'a8b7c6d'; /* 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 mysql if your server does not have mysqli */
$cfg['Servers'][$i]['extension'] = 'mysqli';
$cfg['Servers'][$i]['AllowNoPassword'] = false;

/*
 * phpMyAdmin configuration storage settings.
 */

/* User used to manipulate with storage */
// $cfg['Servers'][$i]['controlhost'] = '';
// $cfg['Servers'][$i]['controluser'] = 'pma';
// $cfg['Servers'][$i]['controlpass'] = 'pmapass';

/* Storage database and tables */
// $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]['table_uiprefs'] = 'pma__table_uiprefs';
// $cfg['Servers'][$i]['tracking'] = 'pma__tracking';
// $cfg['Servers'][$i]['designer_coords'] = 'pma__designer_coords';
// $cfg['Servers'][$i]['userconfig'] = 'pma__userconfig';
// $cfg['Servers'][$i]['recent'] = 'pma__recent';
/* Contrib / Swekey authentication */
// $cfg['Servers'][$i]['auth_swekey_config'] = '/etc/swekey-pma.conf';

/*
 * End of servers configuration
 */

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

/**
 * Defines whether a user should be displayed a "show all (records)"
 * button in browse mode or not.
 * default = false
 */
//$cfg['ShowAll'] = true;

/**
 * Number of rows displayed when browsing a result set. If the result
 * set contains more rows, "Previous" and "Next".
 * default = 30
 */
//$cfg['MaxRows'] = 50;

/**
 * disallow editing of binary fields
 * valid values are:
 *   false    allow editing
 *   'blob'   allow editing except for BLOB fields
 *   'noblob' disallow editing except for BLOB fields
 *   'all'    disallow editing
 * default = blob
 */
//$cfg['ProtectBinary'] = 'false';

/**
 * Default language to use, if not browser-defined or user-defined
 * (you find all languages in the locale folder)
 * uncomment the desired line:
 * default = 'en'
 */
//$cfg['DefaultLang'] = 'en';
//$cfg['DefaultLang'] = 'de';

/**
 * default display direction (horizontal|vertical|horizontalflipped)
 */
//$cfg['DefaultDisplay'] = 'vertical';


/**
 * How many columns should be used for table display of a database?
 * (a value larger than 1 results in some information being hidden)
 * default = 1
 */
//$cfg['PropertiesNumColumns'] = 2;

/**
 * Set to true if you want DB-based query history.If false, this utilizes
 * JS-routines to display query history (lost by window close)
 *
 * This requires configuration storage enabled, see above.
 * default = false
 */
//$cfg['QueryHistoryDB'] = true;

/**
 * When using DB-based query history, how many entries should be kept?
 *
 * default = 25
 */
//$cfg['QueryHistoryMax'] = 100;

/*
 * You can find more configuration options in the documentation
 * in the doc/ folder or at <http://docs.phpmyadmin.net/>.
 */
?>

2 같이 보기[ | ]

  • CentOS phpMyAdmin 설치 (yum)
    위에 서술되어 있는대로 설치하였는데 http://서버주소/phpMyAdmin 이 브라우저에서 페이지를 표시할 수 없다는 메세지가 나오네요...ㅠㅠ 새로운 서버에 centos 6.7을 설치하였고 MySql도 설치 하였습니다. 또한 워드프레스도 지침대로 설치하였는데 위와 같은 결과가 Shinch25
  • CentOS phpMyAdmin 설치 (yum)
    로컬에서만 접속되는 보안설정이 있네요. '(Optional) 외부접속 허용 및 확인' 문단을 추가했습니다. 참고하세요.J Jmnote
  • CentOS phpMyAdmin 설치 (yum)
    감사합니다. 브라우저문제는 해결이 되었는데 "설정파일 생성 및 확인" 과 같이 http://서버주소/phpMyAdmin /setup 을 실행하여 변경없이 화면 그대로 저장을 하였습니다. 브라우저에서 phpMyAdmin/index.php 를 샐행하여 사용자명은 root로 하고 패스워드는 Shinch25
  • CentOS phpMyAdmin 설치 (yum)
    config.inc.php 파일은 별 문제가 없는 것 같습니다. 마지막 문단에 추가했듯이 http://zetawiki.com/wiki/MySQL_ERROR_1045_접근_거부 문서를 참고하시면 될 것 같네요.J Jmnote
  • CentOS phpMyAdmin 설치 (yum)
    감사합니다. 모두 해결되어 phpadmin 작동이 정상으로 되었습니다. 실무 안해본지 20년이 되어가다보니 명령어도 많이 잊어 버렸고...ㅠㅠ 암튼 감사드리며 워드프레스 공부하며 모르는 것 염치 없지만 또 물어 보겠습니다. Shinch25
  • CentOS phpMyAdmin 설치 (yum)
    아파치 웹서버와 tomcat를 연동 한 상태에서 위와 같이하면 phpmyadmin을 사용할수 있나요???? Tndyd5390
  • CentOS phpMyAdmin 설치 (yum)
    기존 아파치 설정을 알 수 없어서 자세한 것을 말씀드리기는 어렵고요. 아파치 설정에 80포트 외의 포트번호를 지정하여 VirtualHost를 추가하고 phpmyadmin 디렉토리를 기입하여 사용하면 될 것 같네요.J Jmnote
  • CentOS phpMyAdmin 설치 (yum)
    댓글 수정기능도 필요할 듯합니다 Ijeff
  • CentOS phpMyAdmin 설치 (yum)
    무튼 "브라우저에서 http://서버주소/phpMyAdmin 으로 접속 확인" 이 과정에서 UI가 아닌 php소스코드가 출력됩니다 버그인 것 같습니다. 불특정하게 한줄이상 쓰면 문장이 계속 짤립니다 Ijeff
  • CentOS phpMyAdmin 설치 (yum)
    '사전작업' 수정했습니다. PHP 소소코드가 그대로 출력되는 것은 1) PHP 설치가 안된 경우, 2) PHP모듈이 Apache와 연동되지 않은 경우, 둘 중 하나인데 1)일 것 같습니다.J Jmnote
  • CentOS phpMyAdmin 설치 (yum)
    댓글 잘리는 문제는 글자수를 표시하고 제한을 해야겠네요.J Jmnote
  • CentOS phpMyAdmin 설치 (yum)
    감사합니다. "http://서버주소/phpMyAdmin/setup 접속" 부분 일부 추가합니다 Ijeff