Hi, It is better to do it by Query based on client soft and IP authorization on your mysql server. It will be very secure and also no overhead on your MySql Server , because the client program will only accept queries from your Web Site , Securely and also only its IP and management Key and Finger Print and independent from your Main MySql , so your Sql Server will never get hacked .