Skip to content

qwertys318/mysql_queue

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

mysql_queue

Preparation

Execute by root prepare.sql

Create queue:
CALL sp_create_queue('QUEUE_NAME');

Create user, grant privileges:

CREATE USER consumer@localhost IDENTIFIED BY 'PASSWORD';
GRANT EXECUTE ON queue.* TO consumer@localhost;
FLUSH PRIVILEGES;

Using

Create message:
CALL sp_create_message('QUEUE_NAME', 'QUEUE_MESSAGE');

Consuming:
CALL sp_get_message('QUEUE_NAME');
Enclose in while(true)

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published