Storage long text in MySQL


Packet Too Large A communication packet is a single SQL statement sent to the MySQL server, a single row that is sent to the client, or a binary log event sent from a master replication server to a slave. The largest possible packet that can be transmitted to or from a MySQL 5.5 …

Continue reading

[note] PHP exec Docker run

For example: use this docker container to convert pdf file to html

  PHP use shell_exec function to exec docker run, there is some notes: Assign a container name with the –name option Automatically clean up the container and remove the file system when the container exits, you can add the –rm flag The input device is not a TTY. …

Continue reading