How to Create and Access a Database

In this article, we will teach you how to use our databases in WitherHosting to function with your minecraft plugins.
In this article, we will be getting a database made for a plugin called Plan | Player Analytics

Creating a database
First, go to witherpanel.com, and then go to the databases section in your panel.



Now, click on New Database. This will create a database with a username and password for it.



Make sure to set a name of your choice, and then click on Create Database.



A database should be made with information. Click on the eye icon to further reveal a window which contains information that is needed.
It will show the username, password as well as other important info.



Accessing Your Database
Let us now go to https://db.witherhosting.com/ , we will be greeted with a login page. In this, we put in our username from the database info, the password from the database info, then choose our Server, and click on Go, to login and manage our databases.



Note that the database server can be any of the three servers, so if the login doesn't work, make sure to change the server choice and try again!
You should now have logged into your database, after which you can manage your database as needed!

Configuring a Plugin to Use Your Database
Let us put this database info into the plugin. I go to my plugin data folder, and open up it's config.yml. Note that for some plugins, it might be located in a different file, check according to the plugin. I enter the IP address, port, username, password, and database name. All information is available to you. Save your content and then restart the server for the plugin changes to take effect, and your plugin should be using the database!



That's the guide on How to create and access a database! If you have any questions regarding the article, feel free to use the comments section below, and we'll answer them as soon as we can! You can also join the discussion at our discord to get help from other members and staff! Thank you for reading this article!
Was this article helpful?
Cancel
Thank you!