在web服务器上安装phpmyadmin
我正在使用joomla 1.5开发一个网站,因此要导入数据库,我需要phpMyAdmin,但不幸的是,我在服务器上只有ftp帐户,例如(ftp.eXXXX.com)。我将phpMyAdmin上载到ftp,并进行了以下配置: 关于我尝试的配置中的主机:www.mywebsite.com ftp.eXXXX.com 但我明白了:在web服务器上安装phpmyadmin,phpmyadmin,Phpmyadmin,我正在使用joomla 1.5开发一个网站,因此要导入数据库,我需要phpMyAdmin,但不幸的是,我在服务器上只有ftp帐户,例如(ftp.eXXXX.com)。我将phpMyAdmin上载到ftp,并进行了以下配置: 关于我尝试的配置中的主机:www.mywebsite.com ftp.eXXXX.com 但我明白了: #2005 - Unknown MySQL server host 'http://www.mywebsite.com' (1) 如何托管数据库 <?php /*
#2005 - Unknown MySQL server host 'http://www.mywebsite.com' (1)
如何托管数据库
<?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
*/
?>
好吧,MySQL不是一个HTTP协议,所以您肯定想省去HTTP://。通常,将主机设置为“localhost”就可以了。好吧,MySQL不是一个HTTP协议,所以您一定要省去HTTP://。通常情况下,将主机设置为“localhost”就可以了。通常设置值“localhost”或“127.0.0.1”(我想这在任何情况下都会更好)就可以了,但是如果您的服务器在另一台主机上提供对DB的物理访问,它通常会在您的管理面板中为您提供地址(如cPanel)你把这个值放在['host']='…';此外,您可能需要将$cfg['Servers'][$i]['connect_type']='socket';在这种情况下,通常将值“localhost”或“127.0.0.1”(我想这在任何情况下都更好)设置为正常,但如果您的服务器提供对另一台主机上的DB的物理访问,它通常会在您的管理面板(如cPanel)中为您提供地址,然后您将该值设置在['host']='…';此外,您可能需要将$cfg['Servers'][$i]['connect_type']='socket';在这种情况下我尝试了一下:#2002-服务器没有响应(或者本地MySQL服务器的套接字配置不正确),您确定您使用的服务器甚至有MySQL吗?如果是这样,它可能也会有phpMyAdmin。不,服务器上没有phpMyAdmin,他们给我ftp帐户,这是:sql server:10.0.217.122和pass XXXXX,但没有用户名,并且与给我这个的人失去联系,知道吗?输入IP地址作为主机
值。您已经有了密码-我假设用户名与您的FTP用户名相同。然后联系您的主机提供商。我尝试了一下并:#2002-服务器没有响应(或者本地MySQL服务器的套接字配置不正确),您确定您使用的服务器甚至有MySQL吗?如果是这样,它可能也会有phpMyAdmin。不,服务器上没有phpMyAdmin,他们给我ftp帐户,这是:sql server:10.0.217.122和pass XXXXX,但没有用户名,并且与给我这个的人失去联系,知道吗?输入IP地址作为主机
值。您已经有密码-我假设用户名与您的FTP用户名相同。然后与您的主机提供商联系。$cfg['Servers'][$I]['connect\u type']='socket'不起作用如何使用它?您确定您的提供商提供了通过socket访问的功能吗?如前所述,通常它们在同一台主机上有mysql,因此您只需编写$cfg['Servers'][$I]['host']='127.0.0.1';很抱歉,正如我刚刚从您的另一条评论中看到的,您没有在同一台主机上安装SQL server,因此$cfg['Servers'][$I]['host']='10.0.217.122'$cfg['Servers'][$i]['user']='root'$cfg['Servers'][$i]['password']='XXXXX';我可以帮你。。。否则,请尝试使用与您用于其他访问的用户名相同的用户名,而不是“root”。先生,我尝试使用root和ftp的相同用户名,但此用户的访问被拒绝。我可以联系此ip地址的服务器吗??或者任何想法??如果您可以访问该网络中的任何主机,我可以提出一些建议,但我非常确定您没有ssh访问这些主机的权限。你也尝试过在配置中从mysqli到mysql的扩展吗?$cfg['Servers'][$i]['connect\u type']='socket'不起作用我如何使用它?你确定你的提供商给了你通过socket访问的能力吗?如前所述,通常它们在同一台主机上有mysql,因此您只需编写$cfg['Servers'][$I]['host']='127.0.0.1';很抱歉,正如我刚刚从您的另一条评论中看到的,您没有在同一台主机上安装SQL server,因此$cfg['Servers'][$I]['host']='10.0.217.122'$cfg['Servers'][$i]['user']='root'$cfg['Servers'][$i]['password']='XXXXX';我可以帮你。。。否则,请尝试使用与您用于其他访问的用户名相同的用户名,而不是“root”。先生,我尝试使用root和ftp的相同用户名,但此用户的访问被拒绝。我可以联系此ip地址的服务器吗??或者任何想法??如果您可以访问该网络中的任何主机,我可以提出一些建议,但我非常确定您没有ssh访问这些主机的权限。你也试过将配置中的“扩展名”从mysqli改为mysql吗?如果这是服务器名,当然应该是。我试过“mywebsite.com”和“eXXX.com”,localhost不起作用,所以我必须有一个mysql服务器名。如果是服务器名,当然应该是。我试过“mywebsite.com”和“eXXX.com”,localhost不起作用,所以我必须有一个mysql服务器的名字