I have both MySQL and MariaDB on my computer, originally I only used MySQL, but recently I have a program using MariaDB. so I used the following script to extract the data