I use sqlite as my django database, but there are some limitations in sqlite. So I want to switch to mysql or psql(PostgreSQL). Both of them need a little bit more setup than sqlite, but still quick easy.
Install database client.
Create user.
Create database.
Modify django settings.
Let’s begin with mysql.
1 2 3 4 5 6 7 8
# mysql is already installed in Ubuntu. $ mysql -u root -p # enter root password # create new user "test" with password "test" mysql> create user 'test'@'localhost' identified by 'test'; # create database test.db mysql> create database test.db; Query OK, 1 row affected (0.00 sec)