Quantcast
Channel: GlobStudio » mysql
Browsing latest articles
Browse All 7 View Live

ECShop清理两个月未下单的代理用户

把两个月未下单的代理用户的等级积分设为0,为普通用户 update ecs_users u set u.rank_points=0 where user_id not in (select user_id from ecs_order_info o where (UNIX_TIMESTAMP()-o.shipping_time<60 * 24 * 60 * 60))

View Article



删除wordpress中标题重复的文章

建了一个网站,www.wangdianzhu.info,文章主要是采集来的,有一些文章被重复采集了,需要删除标题重复的记录 ok,记录一下 create table my_tmp as select min(ID) as col1 from wp_posts group by post_title; delete from wp_posts where ID not in (select col1...

View Article

Votcc源码学习笔记

Votcc源码学习笔记 源码获取:hg clone https://code.google.com/p/vitess/ 我使用hg获取的时候失败,改为http://code.google.com/p/vitess/就可以了 先来看下vtocc的特性: Feature List  A Python DBAPI 2.0 compliant client interface (vt_occ2.py)....

View Article

mysql创建函数失败:ERROR 1418 (HY000)

Mysql创建函数失败,报错:ERROR 1418 (HY000): This function has none of DETERMINISTIC, NO SQL, or READS SQL DATA in its declaration and binary logging is enabled (you *might* want to use the less safe...

View Article

全国城市数据库(含区县)

下载地址  

View Article


mysql命令行客户端忽略注释的解决方法

今天遇到一个问题,使用Linux下的MySQL命令行客户端发送测试请求,发现/*注释*/被skip了,服务端收到的没有注释了 而我的服务端是需要处理注释并根据注释中的特定内容做一些处理的。 MySQL命令行客户端默认是skip-comments的,需要注释的话,在执行mysql的时候加上–comments即可  

View Article

树莓派(raspberry pi)上配置Nginx + PHP + MySQL

1, 安装 鉴于raspberrypi上gcc编译速度非常非常的慢,放弃从源码编译,直接安装 pacman -S php php-cgi php-fpm php-curl php-gd php-mcrypt mysql mysql-clients nginx 2,MySQL的配置 启动mysql: /etc/rc.d/mysqld start 我用的SD卡只有2G,所以我挂载了一个移动硬盘:...

View Article
Browsing latest articles
Browse All 7 View Live




Latest Images