Databases - MariaDB / MySQL
MariaDB is a Database system that you can use to connect your Discord bot to a databasing system!
Last updated
MariaDB is a Database system that you can use to connect your Discord bot to a databasing system!
Last updated
SneakyHub has a built in MySQL and MariaDB support!
Go to the selected SneakyHub Panel Server, and click on the Databases
tab. Here, we want to press New Database
( Figure 1A )
Name you database anything ( Figure 1B ), but DO NOT PUT ANYTHING FOR CONNECTIONS FROM TAB. That will make it so your Discord Bot cannot access the database.
You've now created your database successfully.
We're going to use the MySQL
package to connect your Discord Bot to our database.
After, go into your bots code, and somewhere in your code enter this:
Fill out the rest of the rest of the required fields. After, you can start your bot and it should successfully say, Connected to MySQL database
.
After, you'll see that the database home has been updated. Press the icon, and you'll be revealed the database information ( Figure 1C )