Sun Microsystems Inc. will pay $1 billion for Swedish software company MySQL AB, whose open-source database is used for some of the most widely visited Web sites in the world, the company announced ...