新建properties配置文件内容如下:jdbc.driverClassName=com.mysql.jdbc.Driverjdbc.url=jdbc\:mysql\://localhost\:3306/book_mybatis?user\=root&password\=root&useUnico...
分类:
其他好文 时间:
2014-08-04 20:57:37
阅读次数:
263
1.更改root密码1 use mysql;2 update user set password=password('petecc') where user='root';2.root远程登录1 update user set host='%' where host='localhost';2 fl...
分类:
数据库 时间:
2014-08-04 17:21:07
阅读次数:
259
oninput 是HTML5的标准事件,对于检测textarea, input:text, input:password 和 input:search 这几个元素通过用户界面发生的内容变化非常有用,在内容修改后立即被触发,不像 onchange 事件需要失去焦点才触发。oninput事件在主流浏览器...
分类:
其他好文 时间:
2014-08-04 17:11:27
阅读次数:
256
Mybatis为什么要提供别名?
Mybatis最基础的Demo中体现要做的事情是非常简单的,如果使用原生的JDBC来实现数据库表与对象之间的映射的话,我们应该怎么做呢?首先,使用ClassForName在静态代码块中注册一个驱动类。然后,使用静态类DriverManager来获取一个数据库的连接对象,当然在这一步我们需要提供URL,username以及password等用于连接数据库以及鉴权的...
分类:
其他好文 时间:
2014-08-04 14:28:47
阅读次数:
211
安装服务:mysql\bin\mysqld install删除服务:mysql\bin\mysqld remove启动(暂停)服务:net start(stop) mysql修改密码:mysql>set password =password('你的密码');mysql>flush privilege...
分类:
数据库 时间:
2014-08-04 13:45:57
阅读次数:
203
交换机密码破解:1、进入特权模式设置一个enable 密码 Switch(config)#enable password 123 2、保存 Switch#copy running-config st...
分类:
其他好文 时间:
2014-08-04 13:40:17
阅读次数:
215
利用expect的,首先查看expect,命令:which expect#!/usr/bin/expect -fspawn ssh 用户名@ip地址expect "assword:"send "password\r"interact自动输入密码,切换目录#!/usr/bin/expect -fspa...
分类:
其他好文 时间:
2014-08-04 10:37:46
阅读次数:
319
Oracle建立表空间和用户 建立表空间和用户的步骤:用户建立:create user username identified by "password";授权:grant create session to username; grant create tabl...
分类:
数据库 时间:
2014-08-03 17:51:45
阅读次数:
286
Mysql中的用户 user 每一个user都对应了不同的用户地址和权限
创建Mysql用户共有三种方式1、create user 2、grant 3、操作mysql.user表
1、CREATE USER 'username'@'host' IDENTIFIED BY 'password';
例子: CREATE USER 'aa'@'localhost' IDENTIFIED...
分类:
数据库 时间:
2014-08-03 15:15:45
阅读次数:
389
#!/usr/bin/expect -fspawn telnet 172.16.1.80expect "login" { send "admin\n" expect { "Password" { send "admin\n" } ...
分类:
Web程序 时间:
2014-08-02 20:51:24
阅读次数:
269