摘要:
vim默认配置的是utf-8编码,偶尔需要编辑gbk的文件,文件被创建后则需要转码,在水木论坛上看到有人贴出方法:gbk->utf-8:set fenc=utf-8utf-8->gbk:set fenc=gbk另外,查看文件编码的语句为::echo fenc 阅读全文
摘要:
使用SET PASSWORD语句修改root密码:shell> mysql -u rootmysql> SET PASSWORD FOR ''@'localhost' = PASSWORD('newpwd');mysql> SET PASSWORD FOR ''@'host_name' = PASSWORD('newpwd');设置匿名账户密码:shell> mysql -u rootmysql> UPDATE mysql.user SET Password = PAS 阅读全文