1、本地php+Apache服务器访问 其他ip的mysql数据库我用mysql-client访问,一切都是正常的。但是当用php访问的时候报错:Warning: mysqli_connect() [function.mysqli-connect]: (HY000/2003): Can't conn...
分类:
其他好文 时间:
2014-06-25 16:29:44
阅读次数:
187
假定我们有两张表,一张表为Product表存放产品信息,其中有产品价格列Price;另外一张表是ProductPrice表,我们要将ProductPrice表中的价格字段Price更新为Price表中价格字段的80%。 在Mysql中我们有几种手段可以做到这一点,一种是update table1 t...
分类:
数据库 时间:
2014-06-25 16:18:51
阅读次数:
162
一 sqlserver游标使用/*** 游标的使用 讲了这个多游标的优点,现在我们就亲自来揭开游标的神秘的面纱。 使用游标的顺序: 声名游标、打开游标、读取数据、关闭游标、删除游标。1.3.1声明游标 最简单游标声明:DECLARE CURSOR FOR;其中select语句可以是简单查询,也可以是...
分类:
数据库 时间:
2014-06-25 15:51:22
阅读次数:
229
Tsar是淘宝开发的一个非常好用的系统监控工具,在淘宝内部大量使用 它不仅可以监控CPU、IO、内存、TCP等系统状态,也可以监控Apache,Nginx/Tengine,Squid等服务器状态 值得一提的是、Tsar 支持将数据存储到 MySQL 中,也可以将数据发送到 Nagios 报警服务器㈠...
分类:
其他好文 时间:
2014-06-25 15:43:37
阅读次数:
338
I experienced this error while trying to alter one of my stored procedures remotely on a master server. After some research, I ended up getting inform...
分类:
数据库 时间:
2014-06-25 15:34:33
阅读次数:
471
MySQL 加入列,改动列,删除列ALTER TABLE:加入,改动,删除表的列,约束等表的定义。查看列:desc 表名;改动表名:alter table t_book rename to bbb; 加入列:alter table 表名 add column 列名 varchar(30); 删除列:...
分类:
数据库 时间:
2014-06-25 14:42:39
阅读次数:
264
mssql 子查询更新update log set uin= b.uinfrom log a,logs bwhere a.accountuin = b.accountuinmysql 不支持 update 子查询更新找了半天资料 终于搞定了...update `log` a inner join `...
分类:
数据库 时间:
2014-06-25 14:23:55
阅读次数:
271
今天在MySQL中用hibernate测试update语句发现以下问题: update语句竟然不去作用;表机构如下:create table student(sid int primary key , sname varchar(45) not null, ssex char(2) not nul....
分类:
系统相关 时间:
2014-06-25 13:58:02
阅读次数:
352
dpkg: error processing mysql-server (--configure): dependency problems - leaving unconfiguredstart:Jobfailedtostartinvoke-rc.d:initscriptmysql,action"...
分类:
数据库 时间:
2014-06-25 13:32:08
阅读次数:
277
如果MySQL数据库是自己安装的,可以用如下方法分别启动和停止MySQL。1. MySQL服务器的启动 $mysql_dir/bin/mysqld_safe & (其中&表示后台运行,也可以不加)2. MySQL服务器的停止 $mysql_dir/bin/mysqladmin -u root -.....
分类:
数据库 时间:
2014-06-25 09:32:40
阅读次数:
248