Metainformationen zur Seite
  •  
Übersetzungen dieser Seite:

Dies ist eine alte Version des Dokuments!


Maria-DB

MariaDB ist die neue Datenbank Version und ersetzt die MySQL Datenbank. Der Installationsprozess und die Behfehle für die Konfiguration und Servicearbeiten bleiben identisch.

Installation Prozess

Installing MariaDB on Ubuntu 14.04. Firstly, we need to install the software-properties-common package for MariaDB.

  1. //Firstly, we need to install the software-properties-common package for MariaDB.
  2. sudo apt-get install software-properties-common
  3.  
  4. //Then we need to add the key to MariaDB’s package repository.
  5. sudo apt-key adv –recv-keys –keyserver hkp://keyserver.ubuntu.com:800xcbcb082a1bb943db
  6.  
  7. //Afterward, we need to add MariaDB’s package repository.
  8. sudo add-apt-repository ‘deb http://mirror.jmu.edu/pub/mariadb/repo/5.5/ubuntutrusty main’
  9.  
  10. //We should update our local package repository.
  11. sudo apt-get update
  12.  
  13. //Now we can download the package.
  14. sudo apt-get install mariadb-server
  15.  
  16. //To create the MariaDB structure, we should stop the running MySQL and then say “mysql_install_db”. Let’s restart.
  17. sudo service mysql stop
  18. sudo mysql_install_db
  19. sudo service mysql start
  20.  
  21. //After the structure is created, we should say “mysql_secure_installation” to create test tables and anonymous users.
  22. //We should then do configurations according to the few questions in the command output.
  23. sudo mysql_secure_installation