I want to make bash alias to run mysql query via ssh
ssh [email protected] "mysql wp-theme -e 'DELETE * FROM wp_options where option_name like \'%_transient%\''";
but problem is with part \'%_transient%\' where i tried to escape '
I got error
bash: -c: line 0: unexpected EOF while looking for matching `''
bash: -c: line 1: syntax error: unexpected end of file
ssh [email protected] "mysql wp-theme -e 'SELECT * FROM wp_options where option_name like \\'%_transient%\\';'"