Is there any mail packages available in mysql?
I am using phpmyadmin tool to manage mysql Db.
I want to send email using stored-procedures in mysql.
No there is not and You should not do this because it can affect mysql performance.
My advice is to write a simple script that send e-mails according to data from table.
Related
I have 2 rest APIs the first one will return an id I can use to get more data from the second one. I want to push the result of the second api to my sql database in phpMyAdmin. what is the best way to do this? should I be writing a script in another programming language? I plan on pushing at least a hundred results.
What language do you use to interact with your rest APIs? Assuming it is a server-side language of some sort, such as PHP, then you would create a database connection in PHP (look up PDO, MySQLi), then you could write a MySQL command such as INSERT INTO to write your data to the MySQL Database.
PHPMyAdmin plays no role, except that it gives you web-based database management for doing things manually (such as view, write, modify, etc).
can we connect our python script to interact with the database whose url is known.If yes then how we would do that?? and will we be able to interact with the datbase??
I am going to start working on automating a process whic right now is done manually in my company by accessing a datbase and using it for extracting values or data.
Now this is my first day and i don't know from where to start.All that i know is right now i am having a url to database and the database consists of a "query section" where i will feed what i want to search using different fields of the database query page and will get a list matching my search.
i have to use this list in my GUI that i have to develop. for this purpose i need to know how to access a database using its url and how to interact with it.My database is developed using JavaScript
i am a beginner.Please folks help me with this.
You should specify your database first. e.g mysql
then you can use a ORM like SQLALCHEMY to ease the process for you and in that case this is how you address the db, something like:
"mysql://{}:{}#{}:{}"
.format("YOUR_SQL_USERNAME","YOUR_SQL_PASSWORD", "YOUR_SQL_HOST", "YOUR_SQL_PORT")
I'm searching a way to send emails via MySql, similar to using dbmail in SQL Server.
I am writing a query to be emailed every week but for the life of me I cannot find any information on sending emails using only MySQL. All solutions I've come across uses php to send the actually email, which I don't think I'd want seeing as I want to schedule it to send an email every week.
Is it possible to send emails via mySQL?
Is there a better way to implement this?
Any help is appreciated.
Thanks.
Development Tools: WAMP Server, MySQL Workbench
You could create a batch/Powershell script that executes on a schedule (using the Windows scheduling assistant).
Whilst this isn't the way I'd perhaps do it (Maybe a PHP Cron Job for example) - it is certainly a way of doing it without PHP
Is there a reason you don't want to use PHP?
Thanks,
To Schedule events on MySQL you can flow this tutorial.
http://www.sitepoint.com/how-to-create-mysql-events/
To send e-mail you can use MySQL UDF (https://github.com/mysqludf)
Here is a tutorial
http://dailypaper.in/technical/how-to-send-email-from-a-mysql-trigger-in-linux/
hope this can help you
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.
at an application I'm working on users can forward their email-accounts to an address from our system (something like email#userid.amazingstuff.com ). It doesn't matter here why they should do this, but I need some professional advice on the best way to approach this.
The basic idea is that our mailserver receives the incoming (forwarded) mails and a mailpoller (which runs in a loop) downloads the mails from the mailserver, processes them (get the text, assigns them to an account, etc.) and saves them via an "IncomingMail" ActiveRecord Model.
But I'm not sure how the poller should connect the server? Via Imap / Pop? Or should I store the mails on the mailserver with MySQL and connect to the DB directly? Or is this a bad idea?
I need a fast, reliable and scaleable system.
Thanks for your advice!
Update
I think a DB like MySQL is always faster than parsing a file system. It should also be easily scaleable. I'm no thinking about using DBMail (http://www.dbmail.org/). Has anyone any experience using this solution? Or any further hints / comments?
Thanks!
Pop should work, check out some example code here:
http://www.ruby-doc.org/stdlib/libdoc/net/pop/rdoc/classes/Net/POP3.html