CharlieC3
3/23/2017 - 9:06 PM

Connect to MySQL database

Connect to MySQL database

#!/bin/bash

mysql -u [username] -p -h [database url or IP]

# It will prompt for password

# Connect to a table
CONNECT [table name]

show tables;