Install Squirrel Sql Ubuntu

To install a pre-built phoenix, use these directions:

Apr 30, 2020 SQuirrel SQL Client is a free and open source SQL client software app filed under database software and made available by Colin Bell for Windows. The review for SQuirrel SQL Client has not been completed yet, but it was tested by an editor here on a PC and a list of features has been compiled; see below. Download SQuirreL SQL Client for free. A Java SQL client for any JDBC compliant database. SQuirreL SQL Client is a graphical SQL client written in Java that will allow you to view the structure of a JDBC compliant database, browse the data in tables, issue SQL commands etc.

  • Download and expand the latest phoenix-[version]-bin.tar.
  • Add the phoenix-[version]-server.jar to the classpath of all HBase region server and master and remove any previous version. An easy way to do this is to copy it into the HBase lib directory (use phoenix-core-[version].jar for Phoenix 3.x)
  • Restart HBase.
  • Add the phoenix-[version]-client.jar to the classpath of any Phoenix client.

Getting Started


Wanted to get started quickly? Take a look at our FAQs and take our quick start guide here.

Command Line

A terminal interface to execute SQL from the command line is now bundled with Phoenix. To start it, execute the following from the bin directory:

To execute SQL scripts from the command line, you can include a SQL file argument like this:

For more information, see the manual.

Loading Data

In addition, you can use the bin/ to load CSV data or execute SQL scripts. For example:

Other alternatives include:

  • Using our map-reduce based CSV loader for bigger data sets
  • Mapping an existing HBase table to a Phoenix table and using the UPSERT SELECT command to populate a new table.
  • Populating the table through our UPSERT VALUES command.

SQL Client

If you’d rather use a client GUI to interact with Phoenix, download and install SQuirrel. Since Phoenix is a JDBC driver, integration with tools such as this are seamless. Here are the setup steps necessary:

  1. Remove prior phoenix-[oldversion]-client.jar from the lib directory of SQuirrel, copy phoenix-[newversion]-client.jar to the lib directory (newversion should be compatible with the version of the phoenix server jar used with your HBase installation)
  2. Start SQuirrel and add new driver to SQuirrel (Drivers -> New Driver)
  3. In Add Driver dialog box, set Name to Phoenix, and set the Example URL to jdbc:phoenix:localhost.
  4. Type “org.apache.phoenix.jdbc.PhoenixDriver” into the Class Name textbox and click OK to close this dialog.
  5. Switch to Alias tab and create the new Alias (Aliases -> New Aliases)
  6. In the dialog box, Name: any name, Driver: Phoenix, User Name: anything, Password: anything
  7. Construct URL as follows: jdbc:phoenix: zookeeper quorum server. For example, to connect to a local HBase use: jdbc:phoenix:localhost
  8. Press Test (which should succeed if everything is setup correctly) and press OK to close.
  9. Now double click on your newly created Phoenix alias and click Connect. Now you are ready to run SQL queries against Phoenix.

Through SQuirrel, you can issue SQL statements in the SQL tab (create tables, insert data, run queries), and inspect table metadata in the Object tab (i.e. list tables, their columns, primary keys, and types).


The best place to see samples are in our unit tests under src/test/java. The ones in the endToEnd package are tests demonstrating how to use all aspects of the Phoenix JDBC driver. We also have some examples in the examples directory.

Install MySQL Server on the Ubuntu operating system

Authored by: Jered Heeschen

MySQL is an open-source relational database that is free and widely used. It isa good choice if you know that you need a database but don’t know much aboutall the available options.

This article describes a basic installation of a MySQL database server onthe Ubuntu operating system. You might need to install other packages to letapplications use MySQL, like extensions for PHP. Check your applicationdocumentation for details.

Install MySQL

Install the MySQL server by using the Ubuntu operating system package manager:

The installer installs MySQL and all dependencies.

If the secure installation utility does not launch automatically after theinstallation completes, enter the following command:

This utility prompts you to define the mysql root passwordand other security-related options, including removing remote accessto the root user and setting the root password.

Squirrel Sql Download

Allow remote access

If you have iptables enabled and want to connect to the MySQL database fromanother machine, you must open a port in your server’s firewall (the defaultport is 3306). You don’t need to do this if the application that uses MySQLis running on the same server.

Run the following command to allow remote access to the mysql server:

Start the MySQL service

After the installation is complete, you can start the database service byrunning the following command. If the service is already started, a messageinforms you that the service is already running:

Launch at reboot

To ensure that the database server launches after a reboot, run the followingcommand:

Configure interfaces

MySQL, by default is no longer bound to ( listening on ) any remotely accessible interfaces.Edit the “bind-address” directive in /etc/mysql/mysql.conf.d/mysqld.cnf:

Restart the mysql service.

Start the mysql shell

Install Squirrel Sql Ubuntu

There is more than one way to work with a MySQL server, but this articlefocuses on the most basic and compatible approach, the mysql shell.

  1. At the command prompt, run the following command to launch the mysqlshell and enter it as the root user:

  2. When you’re prompted for a password, enter the one that you set atinstallation time, or if you haven’t set one, press Enter to submit nopassword.

    The following mysql shell prompt should appear:

Set the root password

If you logged in by entering a blank password, or if you want to change the rootpassword that you set, you can create or change the password.

  1. For versions earlier than MySQL 5.7, enter the following command in the mysql shell, replace password withyour new password:

    For version MySQL 5.7 and later, enter the following command in the mysql shell, replacing password withyour new password:

  2. To make the change take effect, reload the stored user information with the following command:

    Note: We’re using all-caps for SQL commands. If you type thosecommands in lowercase, they’ll work. By convention, the commands arewritten in all-caps to make them stand out from field names and otherdata that’s being manipulated.

If you need to reset the root password later, see Reset a MySQL root password.

View users

MySQL stores the user information in its own database. The name of the databaseis mysql. Inside that database the user information is in a table, adataset, named user. If you want to see what users are set up in the MySQLuser table, run the following command:

The following list describes the parts of that command:

  • SELECT tells MySQL that you are asking for data.
  • User, Host, authentication_string tells MySQL what fields you want it tolook in. Fields are categories for the data in a table. In this case, youare looking for the username, the host associated with the username, andthe encrypted password entry.
  • FROM mysql.user ' tells MySQL to get the data from the mysqldatabase and the user table.
  • A semicolon (;) ends the command.

Note: All SQL queries end in a semicolon. MySQL does not process a queryuntil you type a semicolon.


User hosts

The following example is the output for the preceding query:

Users are associated with a host, specifically, the host from which they connect.The root user in this example is defined for localhost, for the IP addressof localhost, and the hostname of the server.You usually need to set a user for only one host, the one from which youtypically connect.

If you’re running your application on the same computer as the MySQLserver, the host that it connects to by default is localhost. Any newusers that you create must have localhost in their host field.

If your application connects remotely, the host entry that MySQL looks foris the IP address or DNS hostname of the remote computer (the one from whichthe client is coming).

Anonymous users

In the example output, one entry has a host value but no username or password.That’s an anonymous user. When a client connects with no username specified,it’s trying to connect as an anonymous user.

You usually don’t want any anonymous users, but some MySQL installationsinclude one by default. If you see one, you should either delete the user(refer to the username with empty quotes, like ' ‘) or set a password for it.

Create a database

There is a difference between a database server and a database, even thoughthose terms are often used interchangeably. MySQL is a database server, meaning ittracks databases and controls access to them. The database stores the data, andit is the database that applications are trying to access when they interactwith MySQL.

Some applications create a database as part of their setup process, but othersrequire you to create a database yourself and tell theapplication about it.

Install Squirrel Sql Ubuntu Debian

To create a database, log in to the mysql shell and run the following command,replacing demodb with the name of the database that you want to create:

After the database is created, you can verify its creation by running a query tolist all databases. The following example shows the query and example output:

Add a database user

When applications connect to the database using the root user, they usually have more privileges than they need. You can add users that applications can use to connect to the new database. In the following example, a user named demouser is created.

Install Squirrel Sql Ubuntu Commands

  1. To create a new user, run the following command in the mysql shell:

  2. When you make changes to the user table in the mysql database, tellMySQL to read the changes by flushing the privileges, as follows:

  3. Verify that the user was created by running a SELECT query again:

Grant database user permissions

Right after you create a new user, it has no privileges. The user can log in,but can’t be used to make any database changes.

  1. Give the user full permissions for your new database by running thefollowing command:

  2. Flush the privileges to make the change official by running the followingcommand:

  3. To verify that those privileges are set, run the following command:

    MySQL returns the commands needed to reproduce that user’s permissions ifyou were to rebuild the server. USAGE on *.* means the usersgets no privileges on anything by default. That command is overridden by thesecond command, which is the grant you ran for the new database.


If you’re just creating a database and a user, you are done. The conceptscovered here should give you a solid start from which to learn more.

Install Squirrel Sql Ubuntu Installer

Related articles

Install Sql Server 2019 On Ubuntu

©2020 Rackspace US, Inc.

Except where otherwise noted, content on this site is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License