The best technique is to use the same connection and define the live site with additional connections. That way your same page would work in both environments. Usually you can use "Localhost" for the live site, but if you open your phpMyAdmin the correct server name will show on the top of the browser window.