Mysql 登录密码忘记。 解决方法 (1) 用命令编辑 /ect/mysql/mysql.cnf 找到 skip-grant-tables #添加这一句。 (2) 重启mysql 服务 service mysql restart (3)重新进入mysql 命令行敲入 mysql mysql use mysql; mysql update mysql.user set ...
Sed 是 stream editor 简称. 1. 替换 sed 's/day/night/' old new 2 斜杠(/)作为分隔符 s 后面的字符常用做分隔符. 通常我们会使用斜杠(/). 当然你可以使用任何的符号. 例如我们将目录/usr/local/bin 换为 /common/bin . 你需要使用反斜杠()来引用斜杠. s ...