Project Phil - Documentation > Phil Multibot > Installation & Setup

Installation & Setup

Let's get MySQL up and running. As one of the most crucial system in our bot, it will be used to manage data within discord.

To install MySQL, run the following commands in your terminal:

sudo apt update
sudo apt install mysql-server

After the update & installation, secure your MySQL setup:

sudo mysql_secure_installation

When prompted, type Y to confirm and process with the security configuration.

With MySQL installed and running, you'll need to set a new password for the MySQL root user. Start by logging into MySQL by using the commands below:

sudo mysql

Then, change the root password. Replace password with your preferred password:

ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'password';

To apply these changes, flush MySQL privileges by using this command:

FLUSH PRIVILEGES;

Now, you can exit the MySQL interface:

exit;

From now on, to access MySQL successfully, use the following command and enter the password you set for root:

mysql -u root -p

And that's it! Your MySQL database is now set up.

Now, our MySQL database system is set up and installed.

Installing Node.Js

Node.Js is a powerful and popular JavaScript runtime. We need to install Node.Js version 20.5.1 on our system as Multibot requires it. We'll use Node Version Manager (NVM) for this purpose.

First, install NVM

curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash

After installing NVM, you might need to restart your terminal or run:

source ~/.bashrc

Then, install Node.js version 20.5.1:

nvm install 20.5.1

Now, you want to set the MySQL version:

nvm use 20.5.1



Excellent! Next up, we'll install the necessary packages for the Multibot.


Related Articles


Suggest an edit

Review this page

lukieeeeee

setup-installation