Thursday, August 26, 2021

Connect Amarok to MySQL database

sudo apt install libmariadb-dev


sudo apt install mysql-server mysql-client

OR 

sudo apt install mariadb-server mariadb-client


$ sudo mysql

Welcome to the MySQL monitor.  Commands end with ; or \g.

Your MySQL connection id is 13

Server version: 8.0.26-0ubuntu0.21.04.3 (Ubuntu)


Copyright (c) 2000, 2021, Oracle and/or its affiliates.


Oracle is a registered trademark of Oracle Corporation and/or its

affiliates. Other names may be trademarks of their respective

owners.


Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.


mysql> CREATE USER 'amarokuser'@'localhost' IDENTIFIED BY 'password';

Query OK, 0 rows affected (0,02 sec)


mysql> CREATE DATABASE amarokdb;

Query OK, 1 row affected (0,01 sec)


mysql> GRANT ALL ON amarokdb.* TO 'amarokuser'@'localhost';

Query OK, 0 rows affected (0,02 sec)


mysql> FLUSH PRIVILEGES;

Query OK, 0 rows affected (0,02 sec)


mysql> quit

Bye


https://dev.mysql.com/doc/refman/8.0/en/

No comments:

Post a Comment