In bash, I have to insert a new record with a valid port number(1-65535) to MySQL, the exist MySQL table haves records with some random ports value already, how can I pick up a new random port number and it does’t conflict with the exist ports value in MySQL, any smart way to do this easily?
Share
you need to create a logic for that:
are not in your working table.