我对这两个数据库都有完全访问权限,但显然 MySQL 转储文件不会干净地导入 Postgres。从 MySQL 迁移到 Postgres 有什么好的分步操作吗?
主页
/
user-2741
Chris R's questions
Chris R
Asked:
2009-07-15 07:24:29 +0800 CST
我知道这与编程没有直接关系,但我很难过,因为 Emacs 是我的主要编程工具......
我正在尝试设置 Tramp 以连接到我的测试主机。我正在使用/ssh:host:.bashrc
或使用它来调用它,/scp:host:.bashrc
但是这两者迟早都会遇到同样的问题。
他们只能在进程楔入之前第一次尝试发送 perl 脚本,我被迫从客户端终止 ssh 会话。
例如:
tramp: Opening connection for username@host using scp...
tramp: Waiting 60s for local shell to come up...
tramp: Sending command `ssh host -l username -e none || exit'
tramp: Waiting for prompts from remote shell
tramp: Waiting 60s for prompt from remote shell on host host
tramp: Found remote shell prompt on `host'
tramp: Waiting 30s for remote `/bin/sh' to come up...
tramp: Setting up remote shell environment
tramp: Determining coding system
tramp: Waiting 30s for `HISTFILE=$HOME/.tramp_history; HISTSIZE=1; export HISTFILE; export HISTSIZE'
tramp: Waiting 30s for `set +o vi +o emacs'
tramp: Waiting 30s for `unset MAIL MAILCHECK MAILPATH'
tramp: Waiting 30s for `unset CDPATH'
tramp: Setting shell prompt
tramp: Remote `/bin/sh' groks tilde expansion, good
tramp: Finding command to check if file exists
tramp: Finding a suitable `ls' command
tramp: Checking remote `/bin/ls' command for `-n' option
tramp: Testing remote command `/bin/ls' for -n...okay
tramp: Using remote command `/bin/ls' for getting directory listings
tramp: Sending the Perl script `tramp_file_attributes'...
tramp-wait-for-output: Process has died
此跟踪正在使用该scp
方法。该ssh
方法如下所示:
tramp: Opening connection for username@host using ssh...
tramp: Waiting 60s for local shell to come up...
tramp: Sending command `ssh host -l username -e none || exit'
tramp: Waiting for prompts from remote shell
tramp: Waiting 60s for prompt from remote shell on host host
tramp: Found remote shell prompt on `host'
tramp: Waiting 30s for remote `/bin/sh' to come up...
tramp: Setting up remote shell environment
tramp: Determining coding system
tramp: Waiting 30s for `HISTFILE=$HOME/.tramp_history; HISTSIZE=1; export HISTFILE; export HISTSIZE'
tramp: Waiting 30s for `set +o vi +o emacs'
tramp: Waiting 30s for `unset MAIL MAILCHECK MAILPATH'
tramp: Waiting 30s for `unset CDPATH'
tramp: Setting shell prompt
tramp: Remote `/bin/sh' groks tilde expansion, good
tramp: Finding command to check if file exists
tramp: Finding a suitable `ls' command
tramp: Checking remote `/bin/ls' command for `-n' option
tramp: Testing remote command `/bin/ls' for -n...okay
tramp: Using remote command `/bin/ls' for getting directory listings
tramp: Sending the Perl `mime-encode' implementations.
tramp-wait-for-output: Process has died
如您所见,最后发生的事情是尝试发送 Perl 脚本。该进程正在死去,因为我在另一个 shell 中杀死它,否则 emacs 永远不会从这里回来。
我正在FreeBSD 6.2-RELEASE-p5
从 OSX 10.5.7 连接,如果有什么不同的话,2.0.58-pre
在 Carbon Emacs 22.3.1 版本中使用 Tramp。
Chris R
Asked:
2009-07-01 07:57:20 +0800 CST
我想从我的 OS X 机器上提供一个基于 CGI 的 Mercurial 存储库,但我一辈子都找不到 hgweb.cgi 文件,我认为这是该过程的第 1 步。
我的 Mercurial 安装来自 OSX 二进制包安装,并且位于/usr/local
. python库安装在/Library/Python/2.5/site-packages/mercurial
:
(~): find /Library/Python/2.5/site-packages/mercurial -name hgweb*
/Library/Python/2.5/site-packages/mercurial/hgweb
/Library/Python/2.5/site-packages/mercurial/hgweb/hgweb_mod.py
/Library/Python/2.5/site-packages/mercurial/hgweb/hgweb_mod.pyc
/Library/Python/2.5/site-packages/mercurial/hgweb/hgweb_mod.pyo
/Library/Python/2.5/site-packages/mercurial/hgweb/hgwebdir_mod.py
/Library/Python/2.5/site-packages/mercurial/hgweb/hgwebdir_mod.pyc
/Library/Python/2.5/site-packages/mercurial/hgweb/hgwebdir_mod.pyo
给定此设置,我需要做什么来为一个或多个存储库提供服务?