WAGO Ethernet PLC's can communicate directly with a MySQL database. It does not require any middleware like an OPC server or modbus driver. Here's a video tutorial showing how it's done. WAGO PLC's use a development software called CodeSys. I have many tutorials on this powerful IEC 61131 software on my youtube channel if you'de like to learn more.