启动配置

1
2
3
4
5
6
7
8
9
10
11
[mysqld]
prot=13306
hread_concurrency=8
max_connections=100 #允许的并行客户端连接数目。
wait_timeout=60 #等待超时时间
connect_timeout=3 #连接超时
interactive_timeout=120 #活动连接超时
long_query_time=1 #长查询时间
log-slow-queries=mysqlslowquery.log #记录慢查询
log_bin_trust_function_creators=1
lower_case_table_names=1

操作方式

使用CMD命令(这里需要使用管理员身份) 进入到mariadb 解压bin目录

初始化数据库

  1. 运行 mysql_install_db.exe 生成Data目录和相关数据库信息

1.安装服务

例如 D:\software\mariadb-10.5.4-winx64\bin

执行下面的命令:

1
mysqld.exe --install mariadb

安装成功以后会显示:

1
Service successfully installed.

2.启动服务器

mariadb 对应的是你 安装时的服务名

启动服务命令:

1
net start mariadb

停止服务命令:

1
net stop mariadb