I want to add the following line to /etc/my.cnf
server-id=1789051
The line may or may not be there. If it is there, it is usually server-id=1 If my IP is 192.178.90.51 then the server id should be 1789051
I want to know if a shell script or a command can do it.