Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]

Community Articles

Find and share helpful community-sourced technical articles.
Announcements
Share your experience with Cloudera on G2 and get a $25 Amazon Gift card.
Hi, I'm CLEO! Something exciting is coming to the Community. Stay Tuned!
Labels (1)
avatar
Expert Contributor

jline-sqlline-mysql-connector.tar.gz

Step1:

Download the attached tar file and untar it

tar -xvf jline_sqlline__mysql_connector.tar

Step2:

Syntax:

[root]# java -Djava.ext.dirs=/path/to/jline_sqlline__mysql_connector/ sqlline.SqlLine

Example:

[root@mi3 sqlline]# java -Djava.ext.dirs=/root/sqlline/jline-1.0/ sqlline.SqlLine

sqlline version 1.0.2 by Marc Prud'hommeaux

Step3:

Syntax:

sqlline> !connect jdbc:mysql://<mysql hostname>:<port>/<db> <username> <password>

Example:

sqlline> !connect jdbc:mysql://hostabc:3306/hue hue hue

Connecting to jdbc:mysql://mi1.openstacklocal:3306/hue

Connected to: MySQL (version 5.1.73)

Driver: MySQL-AB JDBC Driver (version mysql-connector-java-5.1.17-SNAPSHOT ( Revision: ${bzr.revision-id} ))

Autocommit status: true

Transaction isolation: TRANSACTION_REPEATABLE_READ

0: jdbc:mysql://mi1.openstacklocal:3306/hue>

29,382 Views
Comments
avatar
Visitor

Bless you!!