Why would you need putty for linux when you have terminal. Except if you mean to use putty to ssh into a linux server from a windows computer which would be
mysql -u username -p
use databaseName;
"Your mysql query"
ect
There are ways to bypass wine detection but you need to do some research on your own. I don't think that you will get an answer to that here , since SD #26 is ment to protect the server from people who use wine to ban evade, it's supposed to work that way...