Skip to content

This is a simplified version of the Eloquent ⚡️

License

Notifications You must be signed in to change notification settings

360kids/SimpleEloquent

 
 

Repository files navigation

SimpleEloquent ORM

Build Status Coverage Status Scrutinizer Latest Stable Version License

Installation

Use the following command to install

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 issueor pull request,I will correct it in time

Contributors

Marco

License

MIT

About

This is a simplified version of the Eloquent ⚡️

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 99.2%
  • Other 0.8%