测试批量插入mysql
<?php
set_time_limit(0);
$st= microtime(true);
$con = mysql_connect("localhost","root","111");
if (!$con)
{
die('Could not connect: ' . mysql_error());
}
mysql_select_db("test", ...
分类:
数据库 时间:
2014-10-29 17:10:38
阅读次数:
186
root的教材此处省略,步骤如下:
打开 cmd或者terminal
输入 'adb
shell'
su
chmod
777 /data /data/data /data/data/com.application.pacakage /data/data/com.application.pacakage/
此时打开 DDMS发现原来无法展开的data目录现在可以展开...
分类:
其他好文 时间:
2014-10-29 17:02:19
阅读次数:
260
该脚本的功能是卸载android手机中安装的所有第三方应用,主要是使用adb shell pm、adb uninstall 命令,所以使用的前提是需要配好adb的环境变量,下面上代码: 1 #!/usr/bin/env python 2 3 import os 4 5 def uninstall.....
分类:
移动开发 时间:
2014-10-29 16:40:50
阅读次数:
160
再看开发过程中,经常要通过内存的使用量来优化程序。查看应用程序的命令:adb shell procrank显示如下: PID Vss Rss Pss Uss cmdline 190 79560K 74736K 49624K 43604K system_server14335 ...
分类:
移动开发 时间:
2014-10-29 14:29:34
阅读次数:
334
android模拟器使用PC串口调试1.模拟器可以使用PC的串口 启动模拟器并加载PC串口 命令如下: 运行 emulator @模拟器名称 -qemu -serial COM12.查看串口是否被加载 启动后使用 adb shell 命令打开命令行 cd dev 查看会发现ttyS0 ttyS1 t...
分类:
移动开发 时间:
2014-10-29 14:29:14
阅读次数:
335
Remote Connect to Amazon EC2 Instance...
分类:
其他好文 时间:
2014-10-29 13:09:04
阅读次数:
185
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)据说这个问题的原因很多,当然,我自己这个问题我是清楚的,就是mysql.sock的位置所致,一个...
分类:
数据库 时间:
2014-10-29 12:44:42
阅读次数:
208
使用logcat命令查看和跟踪系统日志缓冲区的命令logcat的一般用法是:[adb] logcat [] ... [] ... 下文介绍过滤器和命令选项,详细内容可参见Listing of logcat Command Options。 可以在开发机中通过远程shell的方式使用logcat...
分类:
数据库 时间:
2014-10-29 12:43:52
阅读次数:
189
开发当中经常看到 log 如洪水般瞬间刷满了屏幕,对自己有用的信息都被淹没了,影响心情也影响效率。下面是几个我所知道的过滤方法。1. 只显示需要的输出,白名单最方便的当然是通过管道使用 grep 过滤了,这样可以使用 grep 强大的正则表达式匹配。简单的匹配一行当中的某个字符串,例如 MyApp:...
分类:
数据库 时间:
2014-10-29 12:36:16
阅读次数:
285
level1level2level3…记录1记录1记录1…记录2…记录3…记录2记录1…记录2…记录3…记录3记录1…记录2…记录3…记录2记录1记录1…记录2…记录3…记录2记录1…记录2…记录3…记录3记录1…记录2…记录3…记录3记录1记录1…记录2…记录3…记录2记录1…记录2…记录3….....
分类:
数据库 时间:
2014-10-29 12:34:54
阅读次数:
248