MySQL Download URL
https://dev.mysql.com/get/Downloads/MySQL-5.6/mysql-5.6.46-linux-glibc2.12-x86_64.tar.gz
- Uninstall any existing version of MySQL
sudo rm /var/lib/mysql/ -R
#!/bin/bash | |
# | |
# Install Oracle JDK 8 for use with SDKMAN | |
# | |
set -eu | |
# This URL can be discovered using https://sites.google.com/view/java-se-download-url-converter | |
DOWNLOAD_URL="https://javadl.oracle.com/webapps/download/GetFile/1.8.0_331-b09/165374ff4ea84ef0bbd821706e29b123/linux-i586/jdk-8u331-linux-x64.tar.gz" | |
TARBALL="jdk-8u331-linux-x64.tar.gz" |
// month can be [1,2,3,4,5,6,7,8,9,10,11,12] | |
int quarter = (month - 24) / 3 + 8; | |
// month can be [0-11] ,just as calendar.get(Calendar.MONTH) | |
int quarter = (month-1) / 3+1 |