Add persistent server connections

Registered by George Ormond Lorch III

Consider using named pipes to open and maintain open connections to servers rather than constantly invoking mysql -e.

Example can be seen here:
https://bugs.launchpad.net/percona-xtrabackup/+bug/1119451

function open_persistent_mysql_pipe()
{
 local pipe=$(mktemp -u)
 mkfifo -m 600 $pipe
 eval "$1=$pipe"
 (tail -f $pipe) | ${MYSQL} ${MYSQL_ARGS} &
}

function close_persistent_mysql_pipe()
{
 local pipe=$1
 echo "exit" > $pipe
 rm $pipe
}

Blueprint information

Status:
Not started
Approver:
None
Priority:
Undefined
Drafter:
None
Direction:
Needs approval
Assignee:
None
Definition:
Discussion
Series goal:
None
Implementation:
Unknown
Milestone target:
None

Related branches

Sprints

Whiteboard

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.