-
-
Notifications
You must be signed in to change notification settings - Fork 0
Setup MySQL database
To create a MySQL database for use with ColdBits or any other plugin, follow these steps:
Open your terminal and enter the following command:
mysql -u root -pYou will be prompted to enter the root password for MySQL. After entering the password, you will be logged into the MySQL shell.
Once you are in the MySQL shell, create a new database by running:
CREATE DATABASE coldbits;To check if the database was created successfully, list all databases:
SHOW DATABASES;You should see coldbits in the list.
Once you've confirmed the database is created, you can exit the MySQL shell:
EXIT;ColdBits (or other plugins) may not function properly if there’s no password set for the database.
In your terminal, run:
sudo mysqlThis will open the MySQL shell as a superuser.
To set a password for the root user, run the following command:
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'your_password';Make sure to replace 'your_password' with your actual password.
After setting the password, apply the changes:
FLUSH PRIVILEGES;Finally, exit the MySQL shell:
EXIT;mysqldump -u root -p coldbits > coldbits.sqlNow your MySQL database is ready, and you can use it with ColdBits or other plugins. Make sure to update your plugin configuration to point to the new database and use the password you've set.
Cold Development ❄
