Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to install sqlite on Debian

I need to install SQLite on my Debian VPS server. Can someone help me out? Kindly give me steps because I'm a newbie here and have no idea.

Thank you

like image 482
user1521233 Avatar asked Jul 12 '12 15:07

user1521233


People also ask

How do I run SQLite on Linux?

If you are using Linux or a Mac, open a terminal window instead a command prompt. Open a command prompt (cmd.exe) and 'cd' to the folder location of the SQL_SAFI. sqlite database file. run the command 'sqlite3' This should open the SQLite shell and present a screen similar to that below.


2 Answers

$ sudo apt-get install sqlite3
like image 114
Igor Chubin Avatar answered Sep 24 '22 09:09

Igor Chubin


I understand from your comments above that you wish to use sqlite with PHP. Although, this is an old question, here is how to do it for future reference.

PHP can communicate with SQLite databases with the help of the pdo-sqlite extension. On the current Debian, you need to install the package php5-sqlite. This will install and activate the module in your php.ini:

sudo aptitude install php5-sqlite

You can communicate with SQLite databases from the command line with the tools provided in the package sqlite or sqlite3. You can install these similarly. Note that these tools do not provide any PHP extensions.

like image 26
Eric Spreen Avatar answered Sep 21 '22 09:09

Eric Spreen