Path to Database - Very specific Issue

August 17, 2014 807 views

The Cliche statement: I'm new.

Basically, I'm migrating from an "easy" host (Where they so all the magic and you enjoy). I really like this system much better because you have a better understanding of what goes on behind the scenes.

Now here's where the issue is - I'm not exactly sure where my database even is. By that I mean, the URL/Location that the database can be accessed from for querying.

Before, it was located at mysql.{sitename}.com. There, I could link to the database for querying AND access PHPMyAdmin via my browser.

Now, I've installed PHPMyAdmin here, which can be accessed via {ip-address}/phpmyadmin

The question: What do I need to do in order to access my database AND PHPMyAdmin from mysql.{sitename}.com? I'm aware of how rewrite rules work and such, but again, the environment I worked in previously shielded you from the technical stuff.

At the time I'm still waiting for my previous host to cope withthe fact that my URL no longer points towards their servers, so I'll have to stick the IP until then.

1 Answer

localhost for any applications on your server (like WordPress).

In phpMyadmin when you create your users, you set where that user has permission to access the database from. So the user you create for your WordPress site will be set for localhost

You might create other users that can access the database from other places, like if you needed ODBC connections on your computer at home, you would put your home IP for that user.

Have another answer? Share your knowledge.