Import Sql and Search

install mariadb-server

sudo apt install -y mariadb-server
sudo systemctl start mariadb

设置数据库

sudo mysqladmin -uroot password 'test'
sudo mysql -uroot -p
SHOW DATABASES
CREATE DATABASE mydb

导入数据库并查询

sudo mysql -uroot -p mydb < mysql.sql
sudo mysql -uroot -p -e "SHOW TABLES FROM mydb"
sudo mysql -uroot -p -e "SHOW INDEX FROM zlib.books"
sudo mysql -uroot -p -e "select zlibrary_id, date_modified,title,extension from zlib.books  where title like '%linux%';" | sed 's/\t/,/g'

文档信息