Hello,
My goal is to develop automation using bash on MemSQL database. To do this - I have installed MemSQL through docker desktop on my MAC and to create database and tables I used Single Store Studio. Now to run the bash script, I will use my MAC terminal and mySQL client. I installed MySQL client but when I do try to connect to memsql database, it is connecting to MySQL database by default. How do I connect to MemSQL database through SQL client? Is there any other way to run bash script on MemSQL database?
mysql --default-auth=mysql_native_password -h 127.0.0.1 -u root -p -P 3306
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 22
Server version: 8.0.26 Homebrew
Copyright (c) 2000, 2021, 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 ‘\h’ for help. Type ‘\c’ to clear the current input statement.
show databases;
±-------------------+
| Database |
±-------------------+
| information_schema |
| mysql |
| performance_schema |
| sys |
±-------------------+
4 rows in set (0.01 sec)