最新版本整合进大安装包了,6.0以下有单独的client dev mysql connect c 6.0 或者直接apt 安装
sudo apt install libmysqlclient-dev
最新版本整合进大安装包了,6.0以下有单独的client dev mysql connect c 6.0 或者直接apt 安装
sudo apt install libmysqlclient-dev
mac_addr=`ifconfig |grep ether |head -n 1 | grep -o "[a-f0-9A-F]\\([a-f0-9A-F]\\:[a-f0-9A-F]\\)\\{5\\}[a-f0-9A-F]"` | |
$MAC_ADDR=$mac_addr|sed -e 's/[\:]//g' |tr '[a-z]' '[A-Z] |
use mysql; | |
select host, user from user; | |
grant all on uic.* to root@'%' identified by '123456' with grant option; | |
grant all on falcon_portal.* to root@'%' identified by '123456' with grant option; | |
grant all on dashboard.* to root@'%' identified by '123456' with grant option; | |
grant all on graph.* to root@'%' identified by '123456' with grant option; | |
grant all on alarms.* to root@'%' identified by '123456' with grant option; | |
flush privileges; |
Run sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories && apk update &&\ | |
apk add tzdata && cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \ | |
&& echo "Asia/Shanghai" > /etc/timezone \ | |
&& apk del tzdata |
CC := g++ | |
C_FLAGS := -std=c++14 -Wall -Wextra | |
BIN := . | |
SRC := . | |
INCLUDE := include | |
LIB := lib | |
LIBRARIES := |
import os | |
rootdir = "./input_files" | |
paths = os.listdir(rootdir) | |
for path in paths: | |
path = os.path.join(rootdir,path) | |
if os.path.isfile(path): | |
#... |
#include <stdio.h> | |
#include <stdlib.h> | |
#include "rbtree.h" | |
#define rb_parent(r) ((r)->parent) | |
#define rb_color(r) ((r)->color) | |
#define rb_is_red(r) ((r)->color==RED) | |
#define rb_is_black(r) ((r)->color==BLACK) |
find_package(Boost REQUIRED COMPONENTS regex filesystem) #要使用的boost库 | |
if(NOT Boost_FOUND) | |
message("Not found Boost") | |
endif() | |
include_directories(${Boost_INCLUDE_DIRS}) | |