[MongoDB] How to create new database.

This is the manual how to create new database for developing on ZTI database server. Remote to ZTI database server. Login to mongo$ mongo Authen to with admin account.> use admin;> db.auth(‘<admin_username>’, ‘<admin_password>’);1 Create new database. > use <db_name>;> db.createUser( { user: “<username>”, pwd: “<password>”, roles: [ { role: “readWrite”, db: “<db_name>” } ] });> […]

Teerakorn Bounoy

April 6, 2023

[MariaDB, MySQL] How to create new database.

This is the manual how to create new database for developing on ZTI database server. Remote to ZTI database server. Login to mariadb $ mysql -u root -p Create new database with command > create database <db_name>;> create user ‘<username>‘@’localhost’ identified by ‘<password>‘;> create user ‘<username>‘@’%’ identified by ‘<password>‘;> grant all on <db_name>.* to ‘<username>‘ […]

Teerakorn Bounoy

April 6, 2023