1 dbtype=$dbtype; 14 $this->host=$host; 15 $this->user=$user; 16 $this->pwd=$pwd; 17 $this->dbname=$dbname; 18 }...
分类:
Web程序 时间:
2014-07-12 00:19:40
阅读次数:
246
摘自:http://www.iteye.com/topic/418151mysql数据库远程访问设置方法1、修改localhost更改 "mysql" 数据库里的 "user" 表里的 "host" 项,从"localhost"改成"%"mysql>use mysql;mysql>update us...
分类:
数据库 时间:
2014-07-09 20:50:33
阅读次数:
219
/* *创建新用户 * *用命令行工具或ide登录root用户。(命令:mysql -u root -p) */-- 执行sql语句插入用户,要用PASSWORD方法统一加密,不然没法用。INSERT INTO mysql.user(HOST,USER,PASSWORD,ssl_cipher,x50...
分类:
数据库 时间:
2014-07-09 20:37:33
阅读次数:
231
上一篇文章我已经新建了一个SaAdmin的APP,现在开始在这APP下面来code1、修改setting.py的数据库连接:DATABASES={
‘default‘:{
‘ENGINE‘:‘django.db.backends.mysql‘,
‘NAME‘:‘QjshAdmin‘,
‘USER‘:‘root‘,
‘PASSWORD‘:‘lihuipeng‘,
‘HOST‘:‘localhost‘,
‘PORT‘:‘3306‘,
}
}新..
分类:
其他好文 时间:
2014-07-09 09:02:47
阅读次数:
276
如果你想玩linux,这可能是你的第一步。内容:介绍virualbox+ubuntuserver搭建虚拟工作环境。共享文件夹的创建本文会跳过virualbox与ubuntuserver的安装,如果您需要,请google之。提醒:ubuntu版本为:ubuntuserver13.10,即非桌面板virualbox版本为4.3.12本文中Host为windows必要..
分类:
其他好文 时间:
2014-07-09 08:25:35
阅读次数:
211
今天查看资料,对log_archive_dest_n和standby_archive_dest的关系有点模糊了,做个简单的测试,缕清关系、加深记忆。
首先看一下我们的实验环境,10grac,双节点:node1和node2
SQL> host hostname
node1
SQL> select * from v$version;
BANNER
-----------------------...
分类:
数据库 时间:
2014-07-08 20:11:47
阅读次数:
278
支持标前缀
1)查询不等于且有等于
$this->db->get_where('host',array('host'=>'ddd','id !='=>0))->row();
2)2表相交
return $this->db
->select('f.*,count(s.id) as subtotal')
->f...
分类:
数据库 时间:
2014-07-08 20:05:19
阅读次数:
241
#!/bin/bash
HOST_NAME="localhost"
PORT=3306
USERNAME="root"
PASSWORD="root"
DBNAME="test"
TABLENAME="tb_test"
today=`date +%Y-%m-%d`
#删除数据
delete_sql="delete from ${TABLENAME} whe...
分类:
数据库 时间:
2014-07-08 15:40:54
阅读次数:
325
最近需要弄个CLI命令接口程序,初步设想是需要支持历史命令翻阅,tab键命令补全这样的一个东西。经查阅相关资料,深耕百度一番!(google最近不太正常)
实在恼火。发现readline果真是个好东西,于是将其先编译成arm平台。
./configure CC=arm-linux-gcc --host=arm-linux CROSS_COMPILE=arm-linux-gcc
配置,起初...
分类:
其他好文 时间:
2014-07-08 13:01:43
阅读次数:
210
以基本的学生选课为例,建立选课数据库,学生、班级、选课信息三张表,并分别对表进行插删改操作:importMySQLdb
try:
conn=MySQLdb.connect(host=‘localhost‘,user=‘root‘,passwd=‘root‘,db=‘xuanke‘,port=3306)
cur=conn.cursor()
cur.execute("CREATEDATABASExuanke")
..
分类:
数据库 时间:
2014-07-08 08:05:43
阅读次数:
479