1、安装数据库服务器和客户端
sudo apt-get install mariadb-server mariadb-client
2、安装Mariadb信息查询
sudo apt install libmariadb-dev-compat
3、makefile设置(通过mysql_config查看)
CFLAGS +=-I/usr/include/mariadb -I/usr/include/mariadb/mysql -pthread -Wall
LDFLAGS +=-L/usr/lib/aarch64-linux-gnu/ -lmariadbclient -ldl -lm -pthread -lssl -lcrypto
标签:数据库,sudo,apt,usr,Ubuntu,mariadb,安装 From: https://www.cnblogs.com/linux-learn/p/16757464.html