Installing MySQL Shell on Unix/Linux Using Generic Binaries

1. Download a MySQL Shell Linux - Generic Compressed TAR Archive from https://dev.mysql.com/downloads/shell/.

2. Unpack the compressed tar file to a chosen installation directory; for example, unpack it in /usr/local/.

$> cd /usr/local

$> sudo tar -xvf /usr/local/mysql-shell-8.0.28-linux-glibc2.12-x86-64bit.tar.gz

MySQL Shell is unpacked to /usr/local/mysql-shell-8.0.28-linux-glibc2.12-x86-64bit.

3. To avoid typing the MySQL Shell bin directory path each time you want to use MySQL Shell, add the MySQL Shell bin directory path to your PATH variable:

$> export PATH=$PATH:/usr/local/mysql-shell-8.0.28-linux-glibc2.12-x86-64bit/bin

3. Start MySQL Shell

$> mysqlsh

MySQL Shell 8.0.28

Copyright (c) 2016, 2022, Oracle and/or its affiliates.

Oracle is a registered trademark of Oracle Corporation and/or its affiliates.

Other names may be trademarks of their respective owners.

Type '\help' or '\?' for help; '\quit' to exit.

 MySQL  JS > 


Comments

Popular Posts