Advertisement
metalx1000

Basic MariaDB Setup

Jan 21st, 2020
811
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.35 KB | None | 0 0
  1. #install apache and db
  2. apt install apache2 apache2-utils mariadb-server mariadb-client
  3.  
  4. #setup root password and permissions
  5. mysql_secure_installation
  6.  
  7. #install phpmyadmin
  8. apt install phpmyadmin
  9.  
  10. #add user
  11. mysql -u root -p
  12. GRANT ALL PRIVILEGES ON *.* TO 'username'@'localhost' IDENTIFIED BY 'password';
  13.  
  14. #shell notes
  15. https://pastebin.com/Ny03YMYX
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement