文章分类 -  linux架站笔记(ubuntu server 11.04)

Ubuntu下重置MySQL的root密码
摘要:sudo vi /etc/mysql/my.cnf,在[mysqld]段中加入一行“skip-grant-tables”sudo service mysql restart,重启mySQL服务sudo mysql -u root -p mysql,用空密码进入mysql管理命令行(进入mysql,或者用use mysql指令)update user set password=PASSWORD(“123″) where user=’root’;,把密码重置为123(注意,如果是表中没有的用户名,使用insert)quit,退出数据库管理sudo vim /etc/mysql/my.cnf,把刚才 阅读全文
posted @ 2012-02-26 22:58 渊蓝之蓝 阅读(6852) 评论(0) 推荐(0) 编辑
iptables
摘要:Saving iptables 保存设置If you were to reboot your machine right now, your iptables configuration would disapear. Rather than type this each time you reboot, however, you can save the configuration, and have it start up automatically. To save the configuration, you can useiptables-saveandiptables-restor 阅读全文
posted @ 2012-02-25 15:55 渊蓝之蓝 阅读(1331) 评论(0) 推荐(0) 编辑