BEGIN /*计算用户提成总金额*/ declare amountPrice,pays,rates,goodsPrice DECIMAL(10,2) DEFAULT 0; DECLARE flag int,getUserId; #if(userlevel=1) then SELECT member_id into getUserId from 33hao_member where openid=open_id declare cur cursor for select commission1_…
开启Mysql远程访问的所有方法 http://superyjcqw.blog.163.com/blog/static/16105830520117111040436/ Mysql默认是不可以通过远程机器访问的,通过下面的配置可以开启远程访问.其实就是两个办法,最终都是为了修改 user 表中 root 对应的 host 字段为 %1. update user set host=’%’ where user=’root’;flush privileges;这种方法不用理会root的密码,经过实际…