Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/m9rco/simpleeloquent
This is a simplified version of the Eloquent ⚡️
https://github.com/m9rco/simpleeloquent
Last synced: 27 days ago
JSON representation
This is a simplified version of the Eloquent ⚡️
- Host: GitHub
- URL: https://github.com/m9rco/simpleeloquent
- Owner: m9rco
- License: mit
- Created: 2017-12-19T03:12:41.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2017-12-20T06:28:56.000Z (about 7 years ago)
- Last Synced: 2024-11-17T18:42:03.910Z (about 1 month ago)
- Language: PHP
- Size: 79.1 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# SimpleEloquent ORM
[![Build Status](https://img.shields.io/travis/PuShaoWei/SimpleEloquent.svg?style=flat-square)](https://travis-ci.org/PuShaoWei/SimpleEloquent)
[![Coverage Status](https://img.shields.io/codecov/c/github/PuShaoWei/SimpleEloquent.svg?style=flat-square)](https://codecov.io/github/PuShaoWei/SimpleEloquent)
[![Scrutinizer](https://img.shields.io/scrutinizer/g/PuShaoWei/SimpleEloquent.svg?style=flat-square)](https://scrutinizer-ci.com/g/PuShaoWei/SimpleEloquent/?branch=master)
[![Latest Stable Version](https://img.shields.io/packagist/v/marco/simple-eloquent.svg?style=flat-square&label=stable)](https://packagist.org/packages/marco/SimpleEloquent)
[![License](https://img.shields.io/packagist/l/marco/simple-eloquent.svg?style=flat-square)](https://packagist.org/packages/marco/SimpleEloquent)## Installation
Use the following command to install
```bash
composer require marco/simple-eloquent
```## Application step
> Really don't have too much time delay in the docker mysql on the mirror, so I gave in, manual, please...
Running with docker-compos
Step1: Start the container
```
docker-compose up --build -d
```Step2: Connected to the master, and run the following command to create a user used to synchronize data
```
GRANT REPLICATION SLAVE ON *.* to 'backup'@'%' identified by '123456';
```Step3: See master status, remember the File, the value of the Position, if you don't have to check the data, please check the first and the second step, the configuration problems. I found out that master-bin.000017, 312
```
show master status;
```Step4: Connect the slave, run the following command to connect the master
```
change master to master_host='smart_master',master_user='backup',master_password='123456', master_log_file='master-bin.000004',master_log_pos=320;
```Step5: Start the slave
```
start slave;
```Step6: Check the slave status.
```
show slave status\G
```
If you see `Waiting for master send event` indicates success, you are now in the main library on the modification, synchronization to from the library.## About
This is a simplified version of the Eloquent
## Correct the mistakes
If you find something wrong, you can initiate a [issue](https://github.com/PuShaoWei/dhildish/issues)or [pull request](https://github.com/PuShaoWei/dhildish/pulls),I will correct it in time
## Contributors
Marco
## License
MIT