How to Install SQLite 3.8.2 on Ubuntu 14.04 and commands for creating database and tables

Installation steps

1. type in the following command –

sudo apt-get install sqlite3 libsqlite3-dev

2. After installation check installation, sqlite terminal will give you a prompt and version info –

naved@neo:~$ sqlite3

SQLite version 3.8.2 2013-12-06 14:53:30
Enter ".help" for instructions
Enter SQL statements terminated with a ";"
sqlite>

3. To quit –

sqlite> .quit

4. Go to desired folder and create database –

naved@neo:~$ sqlite3 database_name.db

It’ll create database_name.db in the folder you’ve given the command.

5. To check whether the database has been created give the following command in sqlite3 terminal –

sqlite> .databases

Advertisements

4 thoughts on “How to Install SQLite 3.8.2 on Ubuntu 14.04 and commands for creating database and tables

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s