摘要: 转自:http://blog.csdn.net/flyinmind/article/details/7740540项目中用到erlang,同时也用到mysql。惯例,google。但是,按照网上说的做,有些出入,行不通,需要自己摸索,下面记录我摸索的东西。1、下载erlang-mysql-driver;下载地址:https://github.com/dizzyd/erlang-mysql-driver2、解压到mysql目录,不罗嗦了;3、编译要先配置erlang路径,在/etc/profile中,将erlang的bin路径写入比如PATH=$PATH:/home/erlang/bin否则提示 阅读全文
posted @ 2013-12-05 15:59 宁静的天空 阅读(3626) 评论(0) 推荐(2)
摘要: 一、show processlist:查询数据库连接的状态二、show slave status;三、数据库连接的超时时间show global variables like '%timeout%';set global wait_timeout=10;set global interactive_timeout=10;四、查询表的信息。## 获取数据库下的全部的表的名字。SELECT table_name FROM information_schema.tables WHERE table_schema='ygzj' and table_type =' 阅读全文
posted @ 2013-12-05 08:37 宁静的天空 阅读(238) 评论(0) 推荐(0)