关于黑暗世界的魔法

2016-03-18  本文已影响35人  李天火

mysql的破解


Reset the root password
Stop mysqld.service
. Issue the following command:
mysqld_safe --skip-grant-tables &
Connect to the mysql server. Issue the following command:
mysql -u root mysql
Change root password:

mysql> use mysql;
mysql> UPDATE mysql.user SET Password=PASSWORD('MyNewPass') WHERE User='root';
mysql> FLUSH PRIVILEGES;
mysql> exit

Start mysqld.service
.

gem install失败的解决方法


ruby淘宝源

JSP页面获取Struct2的Action类的属性


假设在Action类里有这么一个变量

private String str = "Hello jsp and struts2";

还必须有str的get方法。在JSP页面我们要引入

<%@page import="org.apache.struts2.ServletActionContext"%>

然后

<%String str = request.getAttribute("str");System.out.println(str);

结果将输出: Hello jsp and struts2%>

linux下汇编链接问题


ld: i386 architecture of input file `sm.o' is incompatible with i386:x86-64 output

链接命令改写为

ld -m elf_i386 -o eatsyscall eatsyscall.o 
上一篇下一篇

猜你喜欢

热点阅读