• Home
  • Archive
  • Tools
  • Contact Us

The Customize Windows

Technology Journal

  • Cloud Computing
  • Computer
  • Digital Photography
  • Windows 7
  • Archive
  • Cloud Computing
  • Virtualization
  • Computer and Internet
  • Digital Photography
  • Android
  • Sysadmin
  • Electronics
  • Big Data
  • Virtualization
  • Downloads
  • Web Development
  • Apple
  • Android
Advertisement
You are here:Home » How to Install SQLLine on Ubuntu (For Big Data Tools)

By Abhishek Ghosh August 21, 2018 11:13 am Updated on August 21, 2018

How to Install SQLLine on Ubuntu (For Big Data Tools)

Advertisement

SQLLine is a Java console based for connecting to databases to execute SQL commands. This is a helper tutorial for other guides. Here is How to Install SQLLine on Ubuntu For Using With Big Data Tools. SQLLine depends on Java Virtual Machine, JLine console reader, JDBC driver (any JDBC compliant driver can be used). Of course we can use the same way of installation on Windows 10 Bash and Android bah with Termux.

 

Steps on How to Install SQLLine on Ubuntu

 

There is probably an apt version of sqlline, probably that is backdated. You should check what your application wants. There is a Python SQLLine :

Vim
1
https://bitbucket.org/lalinsky/python-sqlline

How to Install SQLLine on Ubuntu

We are showing Java SQLLine.

Advertisement

---

Install Java virtual machine :

Vim
1
2
3
4
5
6
apt-get update && apt-get upgrade
apt-get install software-properties-common
Step 2: Add the Java repository
add-apt-repository ppa:webupd8team/java
apt-get update
sudo apt-get install oracle-java8-installer

java7 or java9 are releases are not recommended for development. Verify that Java and the Java compiler have been properly installed:

Vim
1
2
java -version
javac -version

To set the variable for your system:

Vim
1
echo "JAVA_HOME=$(which java)" | sudo tee -a /etc/environment

Reload your system’s environment variables:

Vim
1
source /etc/environment

Verify the variable was set correctly:

Vim
1
echo $JAVA_HOME

Install Apache Maven following our previous guide.

Create a directory named sqllinedir and work with Jline, sqlline from that directory. Install Jline from :

Vim
1
https://github.com/jline/jline3

These are the needed commands :

Vim
1
2
3
4
5
mkdir /opt/sqllinedir
cd /opt/sqllinedir
git clone git://github.com/jline/jline3.git
cd jline3
./build rebuild

Download your database specific JDBC driver files into that sqllinedir directory. For example, MySQL JDBC driver can found on MySQL’s site :

Vim
1
https://www.mysql.com/products/connector/

Te above step will change according to your need to use SQLLine. Final step is installing SQLLine itself. The SQLLine we are showing is fork of Marc Prud’hommeaux’s original SQLLine project on SourceForge. It is somewhat modernized :

Vim
1
2
3
git clone git://github.com/julianhyde/sqlline.git
cd sqlline
mvn package

Other matters related to SQLLine remains same. The old SourcForge reference of all commands of SQLLine is still a good place to start with :

Vim
1
http://sqlline.sourceforge.net/#sect_command_all

Probably we could omit some steps with the new forked version. However, some of the tools assumes they are installed.

Tagged With how to use sqlline , ubuntu sqlline oracle
Facebook Twitter Pinterest

Abhishek Ghosh

About Abhishek Ghosh

Abhishek Ghosh is a Businessman, Surgeon, Author and Blogger. You can keep touch with him on Twitter - @AbhishekCTRL.

Here’s what we’ve got for you which might like :

Articles Related to How to Install SQLLine on Ubuntu (For Big Data Tools)

  • Nginx WordPress Installation Guide (All Steps)

    This is a Full Nginx WordPress Installation Guide With All the Steps, Including Some Optimization and Setup Which is Compatible With WordPress DOT ORG Example Settings For Nginx.

  • OpenShift OctoPress Auto install Script

    OpenShift OctoPress Auto install Script is an Advanced Script to Run OctoPress on Free OpenShift PaaS Practically Without Any Knowing Ruby or Git.

  • WordPress & PHP : Different AdSense Units on Mobile Devices

    Here is How To Serve Different AdSense Units on Mobile Devices on WordPress With PHP. WordPress Has Function Which Can Be Used In Free Way.

  • Dictionary of DLL, VXD, OCX files

    In this tutorial we are offering a small dictionary of the DLL, VXD, OCX and related to so they can see what each of them belongs.

performing a search on this website can help you. Also, we have YouTube Videos.

Take The Conversation Further ...

We'd love to know your thoughts on this article.
Meet the Author over on Twitter to join the conversation right now!

If you want to Advertise on our Article or want a Sponsored Article, you are invited to Contact us.

Contact Us

Subscribe To Our Free Newsletter

Get new posts by email:

Please Confirm the Subscription When Approval Email Will Arrive in Your Email Inbox as Second Step.

Search this website…

 

Popular Articles

Our Homepage is best place to find popular articles!

Here Are Some Good to Read Articles :

  • Cloud Computing Service Models
  • What is Cloud Computing?
  • Cloud Computing and Social Networks in Mobile Space
  • ARM Processor Architecture
  • What Camera Mode to Choose
  • Indispensable MySQL queries for custom fields in WordPress
  • Windows 7 Speech Recognition Scripting Related Tutorials

Social Networks

  • Pinterest (24.3K Followers)
  • Twitter (5.8k Followers)
  • Facebook (5.7k Followers)
  • LinkedIn (3.7k Followers)
  • YouTube (1.3k Followers)
  • GitHub (Repository)
  • GitHub (Gists)
Looking to publish sponsored article on our website?

Contact us

Recent Posts

  • Hybrid Multi-Cloud Environments Are Becoming UbiquitousJuly 12, 2023
  • Data Protection on the InternetJuly 12, 2023
  • Basics of BJT TransistorJuly 11, 2023
  • What is Confidential Computing?July 11, 2023
  • How a MOSFET WorksJuly 10, 2023
PC users can consult Corrine Chorney for Security.

Want to know more about us?

Read Notability and Mentions & Our Setup.

Copyright © 2023 - The Customize Windows | dESIGNed by The Customize Windows

Copyright  · Privacy Policy  · Advertising Policy  · Terms of Service  · Refund Policy