I'm trying to use Xampp with my site to test changes offline. The database connection set as localhost works fine for the site on my domain. I can see that as the database and website are in the same place this would work.
I am presuming localhost needs to be changed when using xammp, to the IP address where the database is. I tried changing localhost to the Shared Ip Address listed in my cpanel but this didn't work. Am I doing the right thing?
I also tried setting the username and password in the xampp admin to the ones used for my site. This gives me an access violation popup, so not sure what to do there.
Can anyone point me in the right direction to get this working?
Are you trying to connect to your live (remote) database but viewing your development site in Xampp? If so you may need to allow your IP address within the cpanel area of the remote server. By default Mysql will only allow connections from localhost, you will need to specify your Ip address as an allowed connection. This is a mysql security feaure.