update dashboard set data = replace(data,'$host','$ip') update dashboard set data = replace(data,'instance','ip')
update dashboard set data = replace(data,'instance="$host"','ip="$ip",port="$port"') where slug like 'mysql%' and plugin_id='pmm-app';
replace函數
: http://www.mysqltutorial.org/mysql-string-replace-function.aspxmysql