VMware Openstack 기반의 Fedora 클라우드 기반 - phpMyAdmin 오류 #2002
같은 VPN에서 VMWare Open 상에서 Fedora 26 클라우드 기반 이미지의 두 개의 개별 인스턴스를 실행하고 있습니다.기본적으로는 이 이미지의 방화벽은 비활성화되어 있습니다.
Security Group은 다음과 같이 설정됩니다.http://imgur.com/a/qKp8Y
하나는 Apache with phpMyAdmin을 실행하고 다른 하나는 mariaDB를 실행하고 있습니다.리모트 서버의 mariaDB 데이터베이스에 접속하도록 phpMyAdmin을 설정하려고 했지만 로그인 시도 시 다음 오류가 계속 나타납니다.
#2002 - Permission denied - 서버가 응답하지 않습니다(또는 로컬서버의 소켓이 올바르게 설정되어 있지 않습니다).
mysql -u root -h 10.2.152.103 -p"를 사용하여 로컬컴퓨터의 데이터베이스 서버에 직접 접속을 확립하고 포트 3306으로 telnet 접속을 시도했습니다.이것들은 모두 문제없이 동작합니다.따라서 마리아가 아닌 phpMyAdmin이 문제라는 결론을 내렸습니다.DB/mySQL.
해결책을 찾기 위해 스택 오버플로를 많이 찾아봤지만 소용이 없었습니다.
다음은 /etc/phpMyAdmin/에 있는 config.inc.php 파일에 포함되어 있습니다.
<?php
/**
* phpMyAdmin configuration file, you can use it as base for the manual
* configuration. For easier setup you can use "setup/".
*
* All directives are explained in Documentation.html and on phpMyAdmin
* wiki <http://wiki.phpmyadmin.net>.
*/
/*
* This is needed for cookie based authentication to encrypt password in
* cookie
*/
$cfg['blowfish_secret'] = 'rltXmgKdQLiLWrZHzEFSKoUc50LxzgCY'; /* YOU MUST FILL IN THIS FOR COOKIE AUTH! */
/**
* Server(s) configuration
*/
$i = 0;
// 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 ''. If you want more than one server, just copy following section
// (including $i incrementation) serveral times. There is no need to define
// full server array, just define values you need to change.
$i++;
$cfg['Servers'][$i]['host'] = '10.2.152.103'; // MySQL hostname or IP address
$cfg['Servers'][$i]['port'] = '3306'; // MySQL port - leave blank for default port
$cfg['Servers'][$i]['socket'] = '/var/lib/mysql/mysql.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'] = 'mysqli'; // The php MySQL extension to use ('mysql' or 'mysqli')
$cfg['Servers'][$i]['compress'] = FALSE; // Use compressed protocol for the MySQL connection
// (requires PHP >= 4.3.0)
$cfg['Servers'][$i]['controluser'] = ''; // MySQL control user settings
// (this user must have read-only
$cfg['Servers'][$i]['controlpass'] = ''; // access to the "mysql/user"
// and "mysql/db" tables).
// The controluser is also
// used for all relational
// features (pmadb)
$cfg['Servers'][$i]['auth_type'] = 'cookie'; // Authentication method (config, http or cookie based)?
$cfg['Servers'][$i]['user'] = ''; // MySQL user
$cfg['Servers'][$i]['password'] = ''; // MySQL password (only needed
// with 'config' auth_type)
$cfg['Servers'][$i]['only_db'] = ''; // If set to a db-name, only
// this db is displayed in left frame
// It may also be an array of db-names, where sorting order is relevant.
$cfg['Servers'][$i]['hide_db'] = ''; // Database name to be hidden from listings
$cfg['Servers'][$i]['verbose'] = ''; // Verbose name for this host - leave blank to show the hostname
$cfg['Servers'][$i]['pmadb'] = ''; // Database used for Relation, Bookmark and PDF Features
// (see scripts/create_tables.sql)
// - leave blank for no support
// DEFAULT: 'phpmyadmin'
$cfg['Servers'][$i]['bookmarktable'] = ''; // Bookmark table
// - leave blank for no bookmark support
// DEFAULT: 'pma_bookmark'
$cfg['Servers'][$i]['relation'] = ''; // table to describe the relation between links (see doc)
// - leave blank for no relation-links support
// DEFAULT: 'pma_relation'
$cfg['Servers'][$i]['table_info'] = ''; // table to describe the display fields
// - leave blank for no display fields support
// DEFAULT: 'pma_table_info'
$cfg['Servers'][$i]['table_coords'] = ''; // table to describe the tables position for the PDF schema
// - leave blank for no PDF schema support
// DEFAULT: 'pma_table_coords'
$cfg['Servers'][$i]['pdf_pages'] = ''; // table to describe pages of relationpdf
// - leave blank if you don't want to use this
// DEFAULT: 'pma_pdf_pages'
$cfg['Servers'][$i]['column_info'] = ''; // table to store column information
// - leave blank for no column comments/mime types
// DEFAULT: 'pma_column_info'
$cfg['Servers'][$i]['history'] = ''; // table to store SQL history
// - leave blank for no SQL query history
// DEFAULT: 'pma_history'
$cfg['Servers'][$i]['verbose_check'] = TRUE; // set to FALSE if you know that your pma_* tables
// are up to date. This prevents compatibility
// checks and thereby increases performance.
$cfg['Servers'][$i]['AllowRoot'] = TRUE; // whether to allow root login
$cfg['Servers'][$i]['AllowDeny']['order'] // Host authentication order, leave blank to not use
= '';
$cfg['Servers'][$i]['AllowDeny']['rules'] // Host authentication rules, leave blank for defaults
= array();
$cfg['Servers'][$i]['AllowNoPassword'] // Allow logins without a password. Do not change the FALSE
= FALSE; // default unless you're running a passwordless MySQL server
$cfg['Servers'][$i]['designer_coords'] // Leave blank (default) for no Designer support, otherwise
= ''; // set to suggested 'pma_designer_coords' if really needed
$cfg['Servers'][$i]['bs_garbage_threshold'] // Blobstreaming: Recommented default value from upstream
= 50; // DEFAULT: '50'
$cfg['Servers'][$i]['bs_repository_threshold'] // Blobstreaming: Recommented default value from upstream
= '32M'; // DEFAULT: '32M'
$cfg['Servers'][$i]['bs_temp_blob_timeout'] // Blobstreaming: Recommented default value from upstream
= 600; // DEFAULT: '600'
$cfg['Servers'][$i]['bs_temp_log_threshold'] // Blobstreaming: Recommented default value from upstream
= '32M'; // DEFAULT: '32M'
//2nd server (is not actually running, just wanted to see if the drop down menu would come up should I add a second server and if changes to the config are actually applied)
$i++;
/* Authentication type */
$cfg['Servers'][$i]['auth_type'] = 'cookie';
/* Server parameters */
$cfg['Servers'][$i]['host'] = '127.0.0.1';
$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;
/*
* End of servers configuration
*/
/*
* Directories for saving/loading files from server
*/
$cfg['UploadDir'] = '/var/lib/phpMyAdmin/upload';
$cfg['SaveDir'] = '/var/lib/phpMyAdmin/save';
/*
* Disable the default warning that is displayed on the DB Details Structure
* page if any of the required Tables for the relation features is not found
*/
$cfg['PmaNoRelation_DisableWarning'] = TRUE;
?>
다른 정보나 파일/구성 정보가 있으면 알려주세요.어떤 도움이라도 대단히 감사합니다.
감사합니다!
문제는 해결됐습니다.
데이터베이스 서버 보안 그룹을 수정하고 올바른 원격 보안 그룹(웹 서버의 보안 그룹)에 다음 규칙을 추가해야 했습니다.이미지
언급URL : https://stackoverflow.com/questions/45163304/fedora-cloud-base-on-vmware-openstack-phpmyadmin-error-2002
'it-source' 카테고리의 다른 글
MySQL - 지속적 연결과 연결 풀링 (0) | 2022.11.29 |
---|---|
MariaDB의 기본 포트 번호는 무엇입니까? (0) | 2022.11.20 |
한 열에 따라 중복 항목에서 첫 번째 행 가져오기 마리아DB (0) | 2022.11.20 |
목록을 되돌리거나 거꾸로 루프하려면 어떻게 해야 하나요? (0) | 2022.11.20 |
ES6 클래스에서 정적 상수를 선언하시겠습니까? (0) | 2022.11.20 |