mariadb

maven 配置

1
2
3
4
5
<dependency>
<groupId>org.mariadb.jdbc</groupId>
<artifactId>mariadb-java-client</artifactId>
<version>2.4.1</version>
</dependency>

jdbc设置

字段
driver-class-name org.mariadb.jdbc.Driver
url jdbc:mariadb://localhost:3306/test

Linux下MySQL表名不区分大小写的设置方法

  1. 用root登录,打开并修改 /etc/my.cnf;在[mysqld]节点下,加入一行: lower_case_table_names=1。
  2. 重启mysql服务

[^]: lower_case_table_names=1 参数缺省地在 Windows 中这个选项为 1 ,在 Unix 中为 0

db.createUser({ user: ‘root’, pwd: ‘Admin123#’, roles: [ { role: “root”, db: “admin” } ] });

db.auth(‘root’,’Admin123#’);

db.createUser({ user: ‘hdh’, pwd: ‘Admin123#’, roles: [ { role: “readWrite”, db: “hdh” } ] });

sc delete MongoDB

mongod –dbpath=D:\Doc\MongoDb\data –logpath=D:\Doc\MongoDb\logs\MongoDB.log –install –serviceName “MongoDB”