2012-01-01 4 views
1

나는 joomla 1.5가있는 웹 사이트에서 작업하고 있습니다. 따라서 데이터베이스를 가져 오기 위해 phpMyAdmin이 필요하지만 불행히도 ftp 계정 (예 : ftp.eXXXX.com) 만 있습니다. 내 FTP로 phpMyAdmin을 업로드하고 나는이 설정 한 :웹 서버의 phpmyadmin 설치

및 구성의 호스트에 대해 나는 시도 : www.mywebsite.com ftp.eXXXX.com 하지만 내가 가진이 :

#2005 - Unknown MySQL server host 'http://www.mywebsite.com' (1) 

어떻게 데이터베이스를 호스팅 할 수 있습니까 ?? 당신이 http://을 떠나고 싶어 확실히 것이다 있도록

<?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.html and on phpMyAdmin 
* wiki <http://wiki.phpmyadmin.net>. 
* 
* @package phpMyAdmin 
*/ 

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

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

/* 
* First server 
*/ 
$i++; 
/* Authentication type */ 
$cfg['Servers'][$i]['auth_type'] = 'config'; 
/* Server parameters */ 
$cfg['Servers'][$i]['host'] = '????????????'; 
$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]['user'] = 'root'; 
$cfg['Servers'][$i]['password'] = ''; 
$cfg['Servers'][$i]['AllowNoPassword'] = true; 

/* 
* phpMyAdmin configuration storage settings. 
*/ 

/* User used to manipulate with storage */ 
// $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]['tracking'] = 'pma_tracking'; 
// $cfg['Servers'][$i]['designer_coords'] = 'pma_designer_coords'; 
// $cfg['Servers'][$i]['userconfig'] = 'pma_userconfig'; 
/* 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; 

/** 
* Use graphically less intense menu tabs 
* default = false 
*/ 
//$cfg['LightTabs'] = true; 

/** 
* disallow editing of binary fields 
* valid values are: 
* false allow editing 
* 'blob' allow 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 Documentation.html 
* or here: http://wiki.phpmyadmin.net/pma/Config 
*/ 
?> 
+0

분명히 "http://www.mywebsite.com"은 서버 이름 인 경우 "http://www.eXXX.com"이어야합니다. – Verbeia

+0

"mywebsite.com"과 "eXXX.com"을 시도하고 localhost가 작동하지 않으므로 mysql 서버 이름을 지정해야합니다. – DInfo

답변

3

일반적으로 값 'localhost'또는 '127.0.0.1'(어떤 경우에는 더 낫습니다)을 넣으면 정상적으로 작동하지만 서버가 다른 호스트의 물리적으로 DB에 대한 액세스를 제공하면 대개 사용자의 주소가 제공됩니다 (cPanel과 같은) 관리자 패널을 열고 그 값을 [ 'host'] = '...'; 또한 $ cfg [ 'Servers'] [$ i] [ 'connect_type'] = 'socket'; 이 경우

+0

$ cfg [ 'Servers'] [$ i] [ 'connect_type'] = '어떻게 소켓을 사용할 수 있습니까?' – DInfo

+0

공급자가 소켓으로 액세스 할 수있는 권한을 부여 했습니까? 이전에 말했듯이 대개 같은 호스트에 mysql이 있기 때문에 $ cfg [ 'Servers'] [$ i] [ 'host'] = '127.0.0.1'; –

+0

죄송합니다. 다른 의견을 읽었을 때 동일한 호스트에 SQL 서버가 없으므로 $ cfg [ 'Servers'] [$ i] [ 'host'] = '10 .0.217.122 '; $ cfg [ 'Servers'] [$ i] [ 'user'] = '루트'; $ cfg [ 'Servers'] [$ i] [ 'password'] = 'XXXXX'; 괜찮을 수 있습니다 ... 그렇지 않으면 'root'대신 다른 액세스에 사용하는 동일한 사용자 이름을 넣으십시오. –

1

음, MySQL의는 HTTP 프로토콜이 아닙니다. 일반적으로 호스트를 "localhost"으로 설정하면 정상적으로 작동합니다.

+0

시도해보십시오 : # 2002 - 서버가 응답하지 않습니다 (또는 로컬 MySQL 서버의 소켓이 올바르게 구성되지 않았습니다.) – DInfo

+0

사용중인 서버에 * MySQL이 있습니까? 그렇다면 아마 phpMyAdmin도있을 것입니다. –

+0

아니요 서버에 phpMyadmin이 없다면 나에게 ftp 계정과 다음을 제공합니다. SQL 서버 : 10.0.217.122 및 패스 XXXXX는 있지만 사용자 이름이 없으며 누구에게 연락 할 수 있습니까? – DInfo