sed command for inserting text inside single quote

Something like sed -i "s;export MYSQL_ADMIN=.*;export MYSQL_ADMIN='abc1';" /path/to/file.ext

-i modify file in place s means substitute,

First block is what you are matching as an regular expression - the .* matches everything to the end of the line, this ensures you don't keep any text on that line after the substitue - and second block is what you are replacing with that match.

Always check the file after each run of sed if there is no error and check what changed.

To get the single quotes to print you may have to do ""'"" like ""'""abc1""'""