여기서는 원격 서버 및 클라이언트 컴퓨터에서 나는 phpMyAdmin 설치했거나 로카리. Phpmyadmin 이 서버와 클라이언트 액세스 통해 이를 관리할 수 있습니까? 가능하지?
아래에 있는 /etc/phpmyadmin/config.inc.php 추가하기만 데이터베이스에구성원을 '선' file:
$i++;
$cfg['Servers'][$i]['host'] = 'HostName:port'; //provide hostname and port if other than default
$cfg['Servers'][$i]['user'] = 'userName'; //user name for your remote server
$cfg['Servers'][$i]['password'] = 'Password'; //password
$cfg['Servers'][$i]['auth_type'] = 'config'; // keep it as config
. "현재 서버:" 경험할 수 있습니다. 모두 함께 드롭다운하십시오 및 원-부트 너희는너희가 제공한 "127.0.0.1" 와 "$ cfg [& # 39, Servers& # 39;] [$ i] [# 39, & # 39, host&]" cam 스위치를 서버 간에.
자세한 내용은: http://sforsuresh.in/access-remote-mysql-server-using-local-phpmyadmin/
Phpmyadmin 구성 할 수 있지만, 변경하십시오 수행할 수도 있고, 읽기 (read) 이 포스트: http://www.danielmois.com/article/Manage_remote_databases_from_localhost_with_phpMyAdmin
어떤 이유로든 https://partner. 죽는다는 다음 단계를 사용할 수 있습니다.
[# 39, & # 39, Servers&] '$ cfg 찾기 - [$ i] [# 39, & # 39, host&]' 즉 변수 및 또는 원격 서버에 IP 호스트 이름을 [# 39, & # 39, Servers&] '$ cfg 찾기 - [$ i] [# 39, & # 39, port&]' 변수를 설정하고, 이를 원격의 mysql 포트. 일반적으로 이 3306 '는' [# 39, & # 39, Servers&] '$ cfg 찾기 - [$ i] [# 39, & # 39, user&] [# 39, & # 39, Servers&]' 와 '$ cfg [$ i] [# 39, & # 39, password&]' 이 변수 및 원격 서버에 대한 사용자 이름과 암호 설정
적절한 서버 구성, 보다 느린 연결 수 없이 로컬 연결 예를 들어, 아마도 약간 빠른 it& # 39 의 IP 주소를 사용할 수 없도록 서버 IP 주소와 호스트 이름을 대신 호스트 이름을 찾아볼 필요가 없습니다.
또한 해당 원격입니다 database& 너희에게베풀어진 # 39, s 는 일반 텍스트 사용자 이름과 암호를 저장됩니까 연결할 때 이 같은 조치를 취할 수 있도록, 그래서 아무도 이 구성 파일 액세스하려면 합니다. 또한 사용자 이름과 암호를 입력할 수 있는 그대로 둘 수 있으며, 이는 com/go/4e6b330a_kr 프롬프트될 로그인할 때마다 수 많은 안전합니다.
Mysql 서버에 로컬 인스턴스에서는 phpMyAdmin 에서 가능한 것은 분명 액세스하려면 등 다른 대답을 할 것이라고 지적했다. 및 하는 작동합니까 합니다 재구성합니다 원격입니다 server& # 39 의 원격 접속 서버, MySQL 수락하려면 허용하고 있는 포트 번호에 대한 방화벽을 통해 트래픽으로부터 MySQL 듣고 있는지. 나는 약간 다른 관련 솔루션을 포지셔닝하십시오 SSH 터널링.
다음 명령은 ssh 터널링할 앞으로 전개될 모든 요청이 설정되었습니다 로컬 컴퓨터와 3307 포트 (port 3306 원격 시스템에서:
ssh -NL 3307:localhost:3306 root@REMOTE_HOST
프롬프트될 때 원격 시스템에서 루트 사용자의 비밀번호를 입력해야 합니다. 이 터널은 이 열립니다. # 39, ll, you& 백그라운드에서 실행하십시오 하려면 '-f' 를 추가해야 합니다 암호없는 SSH 인수 및 설정되었습니다 사이에 로컬 시스템과 원격 시스템.
$cfg['Servers'][$i]['verbose'] = 'Remote Server 1';// Change this to whatever you like.
$cfg['Servers'][$i]['host'] = '127.0.0.1';
$cfg['Servers'][$i]['port'] = '3307';
$cfg['Servers'][$i]['connect_type'] = 'tcp';
$cfg['Servers'][$i]['extension'] = 'mysqli';
$cfg['Servers'][$i]['compress'] = FALSE;
$cfg['Servers'][$i]['auth_type'] = 'cookie';
$i++;
내가 좀 더 깊이 작성했습니까 블로그 포스트 에 대한 추가 지원을 하는 경우, 바로 이러한.
다음 블로그 게시물 할 수 있어 매우 쉽게. https://wadsashika.wordpress.com/2015/01/06/manage-remote-mysql-database-locally-using-phpmyadmin/
$i++;
$cfg['Servers'][$i]['host'] = 'hostname/Ip Adress';
$cfg['Servers'][$i]['port'] = '';
$cfg['Servers'][$i]['socket'] = '';
$cfg['Servers'][$i]['connect_type'] = 'tcp';
$cfg['Servers'][$i]['extension'] = 'mysql';
$cfg['Servers'][$i]['compress'] = FALSE;
$cfg['Servers'][$i]['auth_type'] = 'config';
$cfg['Servers'][$i]['user'] = 'username';
$cfg['Servers'][$i]['password'] = 'password';
는 이 com/go/4e6b330a_kr 제꿈의 알아 보겠습니다.
$i++ :- Incrementing variable for each server
$cfg[‘Servers’][$i][‘host’] :- Server host name or IP adress
$cfg[‘Servers’][$i][‘port’] :- MySQL port (Leave a blank for default port. Default MySQL port is 3306)
$cfg[‘Servers’][$i][‘socket’] :- Path to the socket (Leave a blank for default socket)
$cfg[‘Servers’][$i][‘connect_type’] :- How to connect to MySQL server (‘tcp’ or ‘socket’)
$cfg[‘Servers’][$i][‘extension’] :- php MySQL extension to use (‘mysql’ or ‘msqli’)
$cfg[‘Servers’][$i][‘compress’] :- Use compressed protocol for the MySQL connection (requires PHP >= 4.3.0)
$cfg[‘Servers’][$i][‘auth_type’] :- Method of Authentication
$cfg[‘Servers’][$i][‘username’] :- Username to the MySQL database in remote server
$cfg[‘Servers’][$i][‘password’] :- Password to the MySQL database int he remote server
이 구성 부품을 추가한 후 재시작하여 너회가 서버 및 이제 phpMyAdmin 홈 페이지 보일 것으로 변경 및 it 분야에서 서버를 선택합니다.
이제 원격 데이터베이스 사용자 이름과 암호를 입력하면 해당 데이터베이스 서버 및 액세스하세요 선택할 수 있습니다.
크리스토퍼언덕 라고 스케쳐내 오토메이티드 명시된 대로 a 꼭 이래야겠어요 엽니다열기 서버에 대한 보안 솔루션을 터널링할 SSH 를 권합니다.
다음은 길일 windows를 에 대한 사용자:
퍼티 (Putty 웹 사이트] 에서 [2] 와 배치하십시오 가용 스루풋 및 다운로드 폴더 내의 파일을 선택할 수 있습니다 (내 C:\Putty '예')
윈도우 콘솔 및 cd 를 열어보려면 가용 스루풋 폴더: 'cd C:\Putty'
오픈 SSH 터널 및 재지정합니다 포트 3307:
i '가용 스루풋 뻦 3307 로컬호스트 3306 username@server_ip path_to_your_private_key.ppk'
여기서:
마지막으로 PhpMyAdmin 설정할 수 있습니다.
라인을 추가:
$i++;
$cfg['Servers'][$i]['verbose'] = 'Remote Dev server';
$cfg['Servers'][$i]['host'] = 'localhost';
$cfg['Servers'][$i]['port'] = '3307';
$cfg['Servers'][$i]['connect_type'] = 'tcp';
$cfg['Servers'][$i]['extension'] = 'mysqli';
$cfg['Servers'][$i]['compress'] = FALSE;
$cfg['Servers'][$i]['auth_type'] = 'cookie';
열어보려면 않으려면 콘솔입니다 원격 서버에 연결할 수 있도록 할 때마다 그냥 만드시겠습니까 배치 파일 (2) 에 저장하여 명령줄이 .bat 파일).
[2]: http://www.chiark.greenend.org.uk/ ~ sgtatham/putty/download.html
즉, 하나의 파일을 수정할 필요가 당신뿐이요 PHPMyAdmin 폴더에서는 "콘피g.inc프프" 지저스트 아래 추가 흐름선 데이터베이스에구성원을 "콘피g.inc프프."
파일 위치: /var/lib/phpmyadmin/config.inc.php '또는' '/etc/phpmyadmin/config.inc.php'
어쩌면 당신은 don& # 39, 이 명령을 사용하여 해당 파일을 편집할 수 있는 권한이 t just give 사용 권한
sudo chmod 777 /var/lib/phpmyadmin/config.inc.php
또는 (이 두 개의 서로 다른 시스템을 위치 확인 할 수 있습니다)
sudo chmod 777 /etc/phpmyadmin/config.inc.php
그 후 해당 파일을 복사하여 붙여넣습니다 콘피g.inc프프 '코드'
$i++;
$cfg['Servers'][$i]['auth_type'] = 'cookie';
$cfg['Servers'][$i]['verbose'] = 'Database Server 2';
$cfg['Servers'][$i]['host'] = '34.12.123.31';
$cfg['Servers'][$i]['connect_type'] = 'tcp';
$cfg['Servers'][$i]['compress'] = false;
$cfg['Servers'][$i]['AllowNoPassword'] = false;
저회가 적절하게 사용하면 서버로 세부내용에서
첫째, 기존 구성용 백업하도록 할 수 있습니다.
sudo cp /etc/phpmyadmin/config.inc.php ~/
sudo cp /usr/share/doc/phpmyadmin/examples/config.manyhosts.inc.php \
/etc/phpmyadmin/config.inc.php
sudo nano /etc/phpmyadmin/config.inc.php
검색:
$hosts = array (
"foo.example.com",
"bar.example.com",
"baz.example.com",
"quux.example.com",
);
사용자의 ip 및 추가 또는 호스트 어레이입니다 세이브 (있는 나노기술 ctrl+x 를 누름에 Y) 와 종료하십시오. 수행되
sudo nano /etc/phpmyadmin/config.inc.php
검색:
/* Server parameters */
if (empty($dbserver)) $dbserver = 'localhost';
$cfg['Servers'][$i]['host'] = $dbserver;
if (!empty($dbport) || $dbserver != 'localhost') {
$cfg['Servers'][$i]['connect_type'] = 'tcp';
$cfg['Servers'][$i]['port'] = $dbport;
}
및 대체하십시오:
$cfg['Servers'][$i]['host'] = '192.168.1.100';
$cfg['Servers'][$i]['port'] = '3306';
Mysql 서버 ip 교체할 수 있는 렘버 192.168.1.100 자신의 이름으로.
지금은 저의 잘못된 영어 (구글 번역 %s/dbase/ext_table. 비난을 d)
'의' /etc/http/conf.d/phpMyAdmin.conf 삭제하시겠습니까 함목과 완료하십시오
위, 아래 파일을 전체
<! - begin 스니핏: js 숨기십시오: 거짓값 콘솔: 거짓값 바벨. > 거짓값 -;
<Directory /usr/share/phpMyAdmin/>
AddDefaultCharset UTF-8
<IfModule mod_authz_core.c>
# Apache 2.4
<RequireAny>
#ADD following line:
Require all granted
Require ip 127.0.0.1
Require ip ::1
</RequireAny>
</IfModule>
<IfModule !mod_authz_core.c>
# Apache 2.2
#CHANGE following 2 lines:
Order Allow,Deny
Allow from All
Allow from 127.0.0.1
Allow from ::1
</IfModule>
</Directory>
끝 - < 스니핏 >;!
그런 다음,
mysql 의 아래 실행하십시오 명령 프롬프트
'& # 39 의 모든 .을 root@localhost 허가합니다 식별됩니다 root@< password>', & # 39;;;
'모든 %& # 39 의 허가합니다 .을 root@& # 39;; & # 39, & # 39, 'password> 식별됩니다 root@<;
참고: [허용하시겠습니까 IP 액세스하려면 고정되었는지 PhpMyAdmin] (https://www.digitalocean.com/community/questions/allow-all-ip-to-access-my-secured-phpmyadmin)