How To Install "ruby-mysql2" Package on Ubuntu

Quick Install Instructions of ruby-mysql2 on Ubuntu Server. It’s Super Easy! simply click on Copy button to copy the command and paste into your command line terminal using built-in APT package manager.

See below for quick step by step instructions of SSH commands, Copy/Paste to avoid miss-spelling or accidently installing a different package.


Quick Install Steps:
Step 1
sudo apt-get update -y
Step 2
sudo apt-get install -y ruby-mysql2
Step 3
Check the system logs to confirm that there are no related errors. You can use ZoomAdmin to check the logs, manager servers, host multiple websites and apps on your servers and more. The apps run in docker containers, to learn more
see ZoomAdmin Features for list of features and demo videos. And you can start with the Free Plan.
Execute the commands above step by step. You can simply hit the copy button to copy the command and paste into the command line interface.
Note: -y flag means to assume yes and silently install, without asking you questions in most cases.

simple, fast MySQL library for Ruby
This is an API module that allows Ruby programs to interface with MySQL databases. Usually, it will be pulled in automatically by packages providing Ruby programs which need this capability, you only need to install it directly if you intend to write such programs yourself. You may want to prefer the ruby-mysql2 package over the ruby-mysql package, since benchmarks have shown it to be faster, it is non-blocking and it supports UTF-8 database encoding. simple, fast MySQL library for Ruby
This is an API module that allows Ruby programs to interface with MySQL databases. Usually, it will be pulled in automatically by packages providing Ruby programs which need this capability, you only need to install it directly if you intend to write such programs yourself. You may want to prefer the ruby-mysql2 package over the ruby-mysql package, since benchmarks have shown it to be faster, it is non-blocking and it supports UTF-8 database encoding.

Detailed Instructions:
Step 1
Run update command to update package repositories and get latest package information.
sudo apt-get update -y
Step 2
Run the install command with -y flag to quickly install the packages and dependencies.
sudo apt-get install -y ruby-mysql2
Step 3
Check the system logs to confirm that there are no related errors. You can use ZoomAdmin to check the logs, manager servers, host multiple websites and apps on your servers and more. The apps run in docker containers, to learn more
see ZoomAdmin Features for list of features and demo videos. And you can start with the Free Plan.