随笔分类 -  Mysql/Postgresql/Sqlite

[mysql] 查看mysql执行时间
摘要:mysql的 profiling不是默认打开的查看profiling是否找开mysql> show variables like "%pro%";+---------------------------+-------+| Variable_name | Value |+---------------------------+-------+| profiling | OFF || profiling_history_size | 15 || protocol_version | 10 || sla... 阅读全文

posted @ 2014-01-09 15:00 bluefrog 阅读(2044) 评论(0) 推荐(0)

[postgresql] postgresql 安装
摘要:APT安装sudo apt-get install postgresql postgresql-client-common(注: 我的机器会卡死在 "正在设置 postgres92 (9.2.0-b1) ...")源码安装wget http://ftp.postgresql.org/pub/source/v9.2.0beta1/postgresql-9.2beta1.tar.bz2tar -xvf postgresql-9.2beta1.tar.bz2cd postgresql-9.2beta1./configuresudo make && make ins 阅读全文

posted @ 2012-05-24 20:58 bluefrog 阅读(533) 评论(0) 推荐(0)

[mysql]将mysql输入内容保存文件
摘要:SELECT * FROM tablename INTO OUTFILE "/tmp/tablename.log" 阅读全文

posted @ 2012-05-11 17:56 bluefrog 阅读(292) 评论(0) 推荐(0)

ubuntu下使用apt-get安装LAMP
摘要:# -- mysql -----sudo apt-get install mysql-serversudo apt-get install mysql-client # 检测Mysql是否正常mysql-uusername -ppassword # -- apache -------sudo apt-get install apache2# 检测Apache是否正常# 浏览器上输入http://127.0.0.1 看apache是否启动# phpsudo apt-get install php5sudo apt-get install libapache2-mod-auth-mysqlsud. 阅读全文

posted @ 2011-07-31 23:32 bluefrog 阅读(1718) 评论(0) 推荐(0)

[转]调优您的 LAMP 应用程序的 5 种简单方法
摘要:Fromhttp://blog.csdn.net/heiyeshuwu/archive/2011/03/13/6246584.aspx简介Wikipedia、Facebook 和 Yahoo! 等主要 web 属性使用 LAMP 架构来为每天数百万的请求提供服务,而 Wordpress、Joomla、Drupal 和 SugarCRM 等 web 应用程序软件使用其架构来让组织轻松部署基于 web 的应用程序。该架构的优势在于其简单性。而 .NET 这样的堆栈和 Java™ 技术可能使用大量硬件、昂贵的软件栈和复杂的性能调优,LAMP 堆栈可以运行于商品硬件之上,使用开源软件栈。由于软件栈是一 阅读全文

posted @ 2011-03-15 18:18 bluefrog 阅读(398) 评论(0) 推荐(0)