- 博客(8)
- 收藏
- 关注
原创 sudo: sorry, you must have a tty to run sudo
<br />需要远程到机器上去执行sudo -u 的命令,遇到如下错误:<br />sudo: sorry, you must have a tty to run sudo<br /> <br />解决办法:<br />在/etc/sudoers文件中做如下修改:<br /> 注释掉:Defaults requiretty所在的行。即:
2010-12-31 15:48:00 1998
原创 gdb info 3
<br />mysql> show tables; +----------------+ | Tables_in_test | +----------------+ | cindy | | test | +----------------+ 2 rows in set (0.00 sec) mysql> drop table cindy; (gdb) bt #0 trx_undo_assign_undo (trx=0x10959828, typ
2010-12-30 00:00:00 1053
原创 gdb info2
<br /> mysql> create table test.cindy(id int); (gdb) b trx_undo_assign_undo Breakpoint 1 at 0x788be0: file trx/trx0undo.c, line 1775. (gdb) b trx_undo_set_state_at_prepare Breakpoint 2 at 0x785590: file trx/trx0undo.c, line 1903. (gdb)
2010-12-27 23:50:00 850
转载 __attribute__
<br />http://hi.baidu.com/cygnusnow/blog/item/8b82000f871fcf2f6159f3de.html<br /> <br /> GNU C的一大特色(却不被初学者所知)就是__attribute__机制。__attribute__可以设置函数属性(Function Attribute)、变量属性(Variable Attribute)和类型属性(Type Attribute)。<br />__attribute__书写特征是:__attribute_
2010-12-27 20:53:00 472
原创 GDB info
<br />(gdb) b trx_undo_page_init Breakpoint 1 at 0x842d384 (gdb) b trx_doublewrite_init Breakpoint 2 at 0x8428064 (gdb) b dict_init Breakpoint 3 at 0x839d9a4 (gdb) r --skip-grant --datadir=/mnt/bigdisk/xn/data/ ..... [New Thread -1208382576 (LWP 28
2010-12-26 17:12:00 997
转载 perl expect 实现非交互式远程登录
<br />http://bbs.linuxsky.org/thread-8294-1-1.html
2010-12-17 16:30:00 1096
原创 数据库系统的故障恢复(理论)
<br />Recovery:<br /><br />1.Failure types: <br /> transaction failure, system failure, disk failure.<br />2.Log-based recoverylog record structuresDeferred database modification: redo logs<br /> 1) .Log record structures<br />
2010-12-14 16:17:00 1718 3
转载 Performance tuning tools
<br />MySQL Performance tuning tools:<br /><br /> 1. GDB<br /> 2. oprofile<br /> 3. tcprstat<br /> 4. ad-hoc slow-query-log<br /> 5. New Relic
2010-12-02 14:25:00 555
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人