1、访问局域网的其他mysql服务器: 我参考了 http://www.cnblogs.com/hcbin/archive/2010/04/23/1718379.html 然后自己写了命令:use mysql; grant all privileges on xingyu_db.* to 'root'@'192.168.8.64' identified by 'Ipadroid@1';
flush privileges; ——刷新一下,让权限生效。
由于这样localhost就被替换掉了,于是在本机上也只能用其局域网地址了:
mysql -h 192.168.8.64 -u root -p; 【加了-h , 默认是localhost】
2、MySQL命令行格式化输出: http://blog.163.com/yang_jianli/blog/static/16199000620129150645784/
<!--StartFragment -->
select financing_wx_id,financing_total_money from financing where financing_wx_id='odeVOuLZCj4uG2jCMMwPvEyHKWvs';
update financing set financing_total_money=3 where financing_wx_id='odeVOuLZCj4uG2jCMMwPvEyHKWvs';
update financing set financing_total_money=3 where financing_wx_id='odeVOuLZCj4uG2jCMMwPvEyHKWvs';