CLI Databases Documentation
MDB CLI Databases Documentation
This guide will take you step by step on how to create and use databases using CLI
Create database - MySQL
Create database
1. Run the following command in the terminal:
2. Choose mysql8
3. You will be asked to create new user. Hit Enter to accept.
4. Provide username
, password
, database name
and description.
CLI will display your username, password, database name and connections string.
Note: Your final username and database name may differ from your inputs. MDB GO may add some characters to randomize username and database name.
5. Your database is ready to use.
Connect
PHP
Node.js
Connect to MySQL using PHP
Connect to your database using PHP
Check following examples where you will find 3 different ways to connect to database using PHP using:
- MySQLi - object-oriented
- MySQLi - procedural
- PDO (PHP Data Objects)
Each use case consist sample code for:
- Database connection
- Table creation
- Data insertion
- Data selection (SELECT statement)
- Table deletion
Video tutorial:
PHPMyAdmin access
MDB GO allows you to access your database using Graphical User Interface (GUI) - PHPMyAdmin.
1. In order to use it navigate to: phpmyadmin.mdbgo.com
2. Provide your username
and password
for the database you want to connect.
Note: You can check your username in your databases panel. If you forget your password you can also reset it here.
Video tutorial:
Create database - Mongo
Create database
1. Run the following command in the terminal:
2. Choose mongodb
3. You will be asked to create new user. Hit Enter to accept.
4. Provide username
, password
, database name
and description.
CLI will display your username, password, database name and connections string.
Note: Your final username and database name may differ from your inputs. MDB GO may add some characters to randomize username and database name.
5. Your database is ready to use.
Connect
Node.js
Reset database password - GUI
If you forget password your database you can easily set a new one.
1. Navigate to: databases panel
2. Find database which you want to update and click Edit
button next to it
3. Provide a new password (and re-type new password), then submit.
Video tutorial:
Reset database password - CLI
If you forget password your database you can easily set a new one.
1. Open terminal and type the following command:
2. Choose a database from the list
3. Provide a new password (and re-type new password), then submit.