码迷,mamicode.com
首页 >  
搜索关键字:DBName    ( 955个结果
php 连接mysql(查询 增删改)
1、连接数据库方法: 3.事务 try { $dbh = new PDO('mysql:host=localhost;dbname=test', 'root', 'root'); $dbh->query('set names utf8;'); $dbh->setAttribute(PDO::ATTR ...
分类:数据库   时间:2017-04-30 01:07:46    阅读次数:273
php原生代码从数据库里取记录
db.php里<?php //数据库连接信息 $cfg_dbhost=‘47.89.50.68‘; $cfg_dbname=‘weipan‘; $cfg_dbuser=‘admin‘; $cfg_dbpwd=‘Cd132501‘; ?>include‘db.php‘; $con=mysql_connect(‘localhost‘,‘root‘,‘‘);//数据库信息 mysql_select_db(‘shop‘);//数据库名 mysql_query("setn..
分类:数据库   时间:2017-04-29 16:16:35    阅读次数:234
我的DBDA类
host,$this->uid,$this->pwd,$this->dbname); //执行sql语句 $reslut = $db->query($sql); //从结果集对象里面取数据 if($type==1) { return $reslut->fetch_all(); } else { re... ...
分类:数据库   时间:2017-04-28 09:21:14    阅读次数:205
Yii 1.1.17 实战入门(三)
数据库连接 1、配置连接参数 在database.php里面开启: 'db' => array( 'connectionString' => 'mysql:host=127.0.0.1;dbname=blog', 'emulatePrepare' => true, // PDO扩展 'usernam ...
分类:其他好文   时间:2017-04-23 14:23:17    阅读次数:174
解决:Reading table information for completion of table and column names
mysql -A不预读数据库信息(use dbname 更快)—Reading table information for completion of table and column names You can turn off this feature to get a quicker star ...
分类:其他好文   时间:2017-04-22 13:05:59    阅读次数:174
linux mysql 数据按表明备份备份
1、按表名称备份#!/bin/bash#user#数据库用户dbuser="root"#数据库密码dbpassword="chenyong"#时间date=$(date+%Y%m%d)#数据库名称dbname=sungrowv3#备份数据保存的路劲url=/home/test/sql/#指定数据库的所以表tables=$(mysql-u$dbuser-p$dbpassword-ss-e"use$dbname;showtable..
分类:数据库   时间:2017-04-17 15:08:05    阅读次数:175
PDO数据库操作类
1 _host = $conf['host']; 33 $this->_port = $conf['port']; 34 $this->_user = $conf['user']; 35 $this->_pass = $conf['passwd']; 36 $this->_dbName =... ...
分类:数据库   时间:2017-04-16 21:07:04    阅读次数:288
fetch——row
hostname,$this->username,$this->mima,$this->dbname); $fanhui=$obj->query($str); if($t==0) { return $fanhui; } else ... ...
分类:其他好文   时间:2017-04-12 03:59:27    阅读次数:119
jmeter中通过jdbc方式连接mysql数据库的配置参考
jmeter中通过jdbc方式连接mysql数据库的配置参考: Database URL=jdbc:mysql://ip:port/dbname?useUnicode=true&characterEncoding=UTF-8 JDBC Driver class=com.mysql.jdbc.Driv ...
分类:数据库   时间:2017-04-08 21:38:04    阅读次数:210
MySQL 5.6数据导入报 GTID 相关错误
用命令行mysql-uroot-p--default-character-set=<character>-f<dbname><<backup.sql>方式会报如下错误:ERROR1839(HY000)atline24:@@GLOBAL.GTID_PURGEDcanonlybesetwhen@@GLOBAL.GTID_MODE=ON.可以通过source方式导入解决。$mysql-uroot-p$use<dbname..
分类:数据库   时间:2017-04-06 01:43:25    阅读次数:851
955条   上一页 1 ... 45 46 47 48 49 ... 96 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!