Skip to content

3. Commands

telan edited this page Oct 12, 2019 · 1 revision

The laravel-binlog can only run in cli environment, and this package provides convenient artisan commands to manage it.

php artisan mysql:binlog {start|stop|restart|infos}

Command Description
start Start Laravel Binlog, list the processes by ps aux|grep binlog
stop Stop Laravel Binlog
restart Restart Laravel Binlog
infos Show PHP and Swoole basic miscs infos(including PHP version, Swoole version, Laravel version, server status and PID)

Now, you can run the following command to start the Laravel Binlog server.

$ php artisan mysql:binlog start

You can show your basic infos by running

$ php artisan mysql:binlog infos
+-----------------+-------------------------------------------------------------+
| Name            | Value                                                       |
+-----------------+-------------------------------------------------------------+
| PHP Version     | 7.3.5                                                       |
| Swoole Version  | 4.3.4                                                       |
| Laravel Version | 5.8.28                                                      |
| Server Status   | Offline                                                     |
| PID             | None                                                        |
+-----------------+-------------------------------------------------------------+
Clone this wiki locally