title: How to install or get access to sqlite3 from adb shell
body: <p>I need a way to install or somehow get access to sqlite3 in the adb shell. I have rooted my device. </p>
  
  <p>I've tried to find an answer but the closed I could come is:
   <a href="https://stackoverflow.com/questions/3645319/why-do-i-get-a-sqlite3-not-found-error-on-a-rooted-nexus-one-when-i-try-to-ope">Why do I get a &quot;sqlite3: not found&quot; error on a rooted Nexus One when I try to open a database using the adb shell?</a></p>
  
  <p>But I don't think it's good idea to push my windows sqlite3.exe on a linux system?</p>
  
  <p>So is it possible to install the sqlite3 terminal browser somehow?</p>
  
  <p><strong>[SOLUTION]</strong></p>
  
  <p>From the different comments and some asking around at #android-dev (irc), I found a solution. First I copied the database file to my desktop. But fist I had to install BusyBox, because cp isn't included?!? After that ran I into the problem that I couldn't pull or push from anywhere but /sdcard/ . I could then use /sdcard/ as a "middle station" and pull/push my db.</p>
  
  <p>Then I got exhausted! I really had to have my sqlite terminal explore. Then I got the idea to start the emulator pull the sqlite binary from /system/xbin/sqlite3. Then remount /system with rw:</p>
  
  <pre><code># mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system
  </code></pre>
  
  <p>and push sqlite to the /sdcard/, and from there copy it to /system/xbin/ </p>
  
  <p>Now it works :D</p>