If i insert a record in database

if i insert a record in piwik_log_visit
i copy a record ,and just modify the location_ip,whether my unique visitors will increase?

Generally, it shouldn’t as the idvisitor would be the same for both.

If you want to generate fake visits, look at misc/generateVisits.php. I believe there’s also a link under the API link.