Archive for December, 2004

MySQL 4.1 开始客户端协议验证方式变化

Tuesday, December 28th, 2004

今天给Debian更新了MySQL, PHP和PHPMyAdmin。开始空密码的时候用PHPMyAdmin登录还OK,不过当我用PHPMyAdmin改了密码之后再登陆就进不去了:
Client does not support authentication protocol requested
by server; consider upgrading MySQL client
可是我用的MySQL, PHP, PMA都是最新版的呀?
Google了一下,从MYSQL的网站得知:
MySQL 4.1 and up uses an authentication protocol based on a password hashing algorithm that is incompatible with that used by older clients. If you upgrade the server to 4.1, attempts to connect to it with an older client may fail [...]

当rsync遇到ssh不是标准端口时…

Monday, December 27th, 2004

If ssh port is not 22, how does rsync specify this in command line?
rsync要借助ssh来运行,那么当ssh的端口不是默认的22怎么办?多谢万能的google,我很方便的找到了答案: 把选项中的
-e ssh
换成
-e ’ssh -p 12345′
这里12345是ssh的端口号。

还我彩色ls

Saturday, December 25th, 2004

Debian安装好之后发现ls不是彩色的… 察看了一下.bashrc里面确实有设置 alias ls=’ls –color=auto’ 郁闷。偶尔发现如果再执行一次bash就正常了。我想可能是和这几个初始文件的执行顺序有关系吧,google了一下查到了一些资料:
Re: I’m really confused by bash, .bashrc, .bash_profile, .profile, etc,
Each of these files are read by bash at different times: .bash_profile is executed when you login. Stuff you put in there might be your PATH and other important environment variables. .bashrc is used for non login shells. I’m not sure [...]