Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sschonss/database-st
https://github.com/sschonss/database-st
Last synced: 26 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/sschonss/database-st
- Owner: sschonss
- Created: 2023-08-28T12:37:09.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-08-28T12:44:40.000Z (over 1 year ago)
- Last Synced: 2024-11-13T02:13:37.557Z (3 months ago)
- Size: 1000 Bytes
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Database
## Installation
### Requirements
- Docker
- Docker Compose
- Git
- Linux (recommended Ubuntu 20.04 or higher)### Installation
1. Clone the repository
```bash
git clone
```2. Go to the project directory
```bash
cd
```3. Configure the docker-compose.yml file
```bash
sudo nano docker-compose.yml
```4. Run the docker-compose.yml file
```bash
sudo docker-compose up -d
```### Usage
1. Open DataGrip or any other database management tool
2. Connect to the database
- Host: `localhost` or ip address
- Port: `3306` (default) or port specified in docker-compose.yml file
- User: `root` (default) or user specified in docker-compose.yml file
- Password: `root` (default) or password specified in docker-compose.yml file3. Aceess the database
- Database: `database` (default) or database specified in docker-compose.yml file
4. Create a new table
```sql
CREATE TABLE `table` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`username` varchar(255) NOT NULL,
`password` varchar(255) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
```