简体   繁体   中英

Is there any way to send email from mysql

Is there is way to send email when query executed manually in mysql server. Can we do this in mysql trigger please advise me how do we get email when some query run in mysql

please don't try to do that...

MySQL is a pure Database it's not its business to send eMails. MySQL has no eMail functionality ether.

i'd recommend creating a new table and write a tuple in that table when the procedure is used.

Then poll that table (with a java application or so) and send the mail

MySQL is just a database solution, where you can store and retrieve data. For query, you may use a server side scripting like PHP. Then using php, while doing a query, you may send emails. Set up email in your server to send to an id while mysql data is retrieved.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM