@kieran.bradtke
1 2 |
sudo apt-get update sudo apt-get install mysql-server |
1
|
sudo systemctl start mysql |
1
|
sudo mysql_secure_installation |
1 2 3 4 5 6 |
sudo mysql -u root -p CREATE DATABASE dbname; CREATE USER 'username'@'localhost' IDENTIFIED BY 'password'; GRANT ALL PRIVILEGES ON dbname.* TO 'username'@'localhost'; FLUSH PRIVILEGES; exit; |
1 2 |
mysql -u username -p USE dbname; |
Теперь MySQL готов к работе в Debian.