MySQLdb 学习简要记录import MySQLdbdb = MySQLdb.connect(host='localhost',user='root',passwd='root',db=pydb,charset='utf8')cur = db.cursor()cur.execute('selec...
分类:
数据库 时间:
2015-01-06 15:12:43
阅读次数:
228
mysql添加用户、删除用户、授权、修改密码等MySql中添加用户,新建数据库,用户授权,删除用户,修改密码1.新建用户。 //登录MYSQL @>mysql -u root -p @>密码 //创建用户 mysql> mysql> insert into mysql.user(Host,User,...
分类:
数据库 时间:
2015-01-06 13:32:34
阅读次数:
194
具体出错信息如下:[root@blockstorage ~]# rabbitmqctl change_password guest RABBIT_PASSChanging password for user "guest" ...Error: unable to connect to node .....
分类:
其他好文 时间:
2015-01-06 13:27:04
阅读次数:
184
##scp -- secure copy (remote file copy program) scp = cp + ssh,通过ssh协议将与远程主机互相拷贝文件。 * 使用方法 scp 选项 file_source file_target 对于远程路径,要使用user@remote_ip:file的形式(当然...
分类:
其他好文 时间:
2015-01-06 12:16:30
阅读次数:
185
Java获取当前路径和读取文件
1、利用System.getProperty()函数获取当前路径:
System.out.println(System.getProperty("user.dir"));//user.dir指定了当前的路径
2、使用File提供的函数获取当前路径:
File directory = new File("");//设定为当前文件夹
System.ou...
分类:
编程语言 时间:
2015-01-06 11:58:44
阅读次数:
422
git init # 初始化本地git仓库(创建新仓库)git config --global user.name "xxx" # 配置用户名git conf...
分类:
其他好文 时间:
2015-01-06 11:35:57
阅读次数:
119
测试模拟环境:在www.1905.com网站中执行两个用户的登陆退出操作需要的文件有:1、User的实例类:public class User { private String username; private String password; public String get...
分类:
数据库 时间:
2015-01-06 11:32:24
阅读次数:
201
一:meta信息(1) width-viewport的宽度height-viewport的高度 initial-scale-初始的缩放比例 minimum-scale-允许用户缩放到的最小比例 maximum-scale-允许用户缩放到的最大比例 user-scalable-用户是否可以手...
分类:
移动开发 时间:
2015-01-06 11:23:51
阅读次数:
149
一 :在系统表中查询该表的约束键名称select * from user_constraints where table_name = 'TB_INFOSTAT_TRAINCONFERENCE'二:在系统表中查询该约束的关联表和关联字段select b.table_name,b.column_nam...
分类:
数据库 时间:
2015-01-06 11:22:48
阅读次数:
136
如果你过分珍爱自己的羽毛,不使它受一点损伤,那麽你将失去两只翅膀,永远不再能够凌空飞翔。——雪莱
本讲内容:图形用户界面(Graphical User Interface,简称 GUI)
从上面图片我们可以知道,swing是awt(在window与linux会出现不同的图片大小)的升级即java.swing.JFrame继承java.awt.Frame
J...
分类:
其他好文 时间:
2015-01-06 10:09:12
阅读次数:
215