I will try to explain my problem the best I can:
I was given a working site and asked for a replication to another hosting. My first thought was that it was too simple. So first I tried to make it work via XAMPP:
After this I opened it on my browser and it worked perfect! (localhost/mysite)
So, now it worked, I tried connecting to my hosting phpmyadmin:
And here is where i got stuck. The site stopped working and I can't figured out why. The database was imported with a new name, but on my database connection i put the values correct (copy-paste to avoid troubles) but the site won't open. The problem I have with this site is that has some sort of configuration (i assume javascript) where the site gets stuck on "loading" until it connects to the database. So i don't know where to use mysqli functions to get an error and try to know where is my mistake.
I think thats all. I hope someone can help me with this!
Solved! I believe the problem was that i tried to connect to "localhost" using the hosting Phpmyadmin and not the localhost one. I've uploaded the site to the new hosting and it worked. Thanks anyways to everyone, it made me think differently to get the problem solved.