G⌬RBE/Posts/Create a database in MariaDB/Create a database in MariaDB1 January 0001·Updated: 3 September 2024·31 words·1 min· MariaDB MySQL DatabaseTable of ContentsInstallCreate database and userInstall #sudo apt install mariadb-server sudo mysql_secure_installation Create database and user #sudo mysql create database my_database; GRANT ALL PRIVILEGES ON my_database.* TO 'my_user'@'localhost' IDENTIFIED BY 'my_password' WITH GRANT OPTION; flush privileges;