【发布时间】:2016-01-15 23:34:45
【问题描述】:
这听起来像是一个非常愚蠢的问题,但我不知道该怎么做?
我在我的 Windows 机器上运行 putty,我知道如果我想将数据库导入到远程网站,我只需启动 putty 并输入主机名以及我的用户名和密码。登录 ssh 然后创建数据库,然后像这样导入数据库:mysql production < production_2015.sql
我不明白如何通过 ssh 连接到我的计算机上的本地主机。我有 phpMyAdmin,我可以选择继续像这样上传,但就像 phpMyAdmin 中的所有内容一样,它存在严重的延迟问题。
我觉得问这个问题很愚蠢,但这是我尝试过的事情。打开腻子并在主机名所在的位置添加 localhost。我还尝试将 IP 127.0.0.1 添加到腻子中主机/ ip 所在的位置。我经常遇到网络错误或连接被拒绝。在这一点上,我什至不确定您是否会这样做。我觉得这是一个超级简单的问题,但我无法将我的大脑包裹在答案上。
这是我的 phpMyAdmin config.inc 文件:
$i++;
/* Authentication type */
$cfg['Servers'][$i]['verbose'] = 'mysql wampserver';
//$cfg['Servers'][$i]['auth_type'] = 'cookie';
$cfg['Servers'][$i]['auth_type'] = 'config';
$cfg['Servers'][$i]['user'] = 'root';
$cfg['Servers'][$i]['password'] = 'me';
/* 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'] = true;
任何帮助将不胜感激。
【问题讨论】: