# apt-get install mysql-server
Konfiguracja poinstalacyjna np. ustawienie haseł
# mysql_secure_installation
# mysql -u root -p
Utworzenie bazy danych, użytkownika i uprawnienia
> create database testdb; > create user 'tester'@'localhost' identified by 'mypass'; > grant all on testdb.* to 'tester';
Utworzenie usera w czasie przydzielania uprawnień
> grant all on testdb.* to 'testuser' identified by 'mypassword';
Sprawdzenie uprawnień
> show grants for testuser;