How to install MySQL directly on BeagleBone ?


I would like to install directly MySQL on my BeagleBone and not MariaDB, I try : sudo apt-get install mysql-server mysql-client, but when I try: sudo mysql -u root, I get :

Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is 2
Server version: 10.1.26-MariaDB-0+deb9u1 Debian 9.1

Copyright © 2000, 2017, Oracle, MariaDB Corporation Ab and others.

Type ‘help;’ or ‘\h’ for help. Type ‘\c’ to clear the current input statement.

MariaDB [(none)]>

But I need to work with MySQL and not MariaDB with nodejs.

Thanks in advance.

I try to use MySQL on my application knowing that nodejs his Backend and I don’t know if it is compatible with mariaDB while I am newbie on that.

MariaDB is from the developers of MySQL after Oracle purchased MySQL

MariaDB is a community-developed fork of the MySQL relational database
management system intended to remain free under the GNU GPL.
Development is led by some of the original developers of MySQL, who
forked it due to concerns over its acquisition by Oracle
Corporation.[5] Contributors are required to share their copyright
with the MariaDB Foundation.[6]

MariaDB intends to maintain high compatibility with MySQL, ensuring a
drop-in replacement capability with library binary equivalency and
exact matching with MySQL APIs and commands.[7] It includes the XtraDB
storage engine for replacing InnoDB,[8] as well as a new storage
engine, Aria, that intends to be both a transactional and
non-transactional engine perhaps even included in future versions of


Thanks, I’ll check it out.

That means that I can do var mysql = require(“mysql”); on my express server ?



But I need to work with MySQL and not MariaDB with nodejs.

Why? MariaDB is a fork of MySQL, it should be software-compatible. What is the difference that makes it impossible for you to use it?