MariaDB (Linux): Unterschied zwischen den Versionen
		
		
		
		
		
		Zur Navigation springen
		Zur Suche springen
		
				
		
		
	
| Zeile 28: | Zeile 28: | ||
<pre>  | <pre>  | ||
grant all on *.* to 'root'@'localhost' identified by '<password>' with grant option;  | |||
grant all on *.* to 'root'@'%' identified by '<password>' with grant option;  | grant all on *.* to 'root'@'%' identified by '<password>' with grant option;  | ||
flush privileges;  | flush privileges;  | ||
Version vom 29. Februar 2020, 11:32 Uhr
Installation
sudo apt-get -y install mariadb-server mariadb-client
Als PHP-Connector kann der von MySQL genutzt werden:
sudo apt-get -y install php-mysql
Passwort
Passwort setzen
Raspbian
Unter Raspbian wird bei der Installation nicht nach einem root-Passwort gefragt.
Um es zu setzen, als root einloggen
sudo mysql -u root -p
und folgende Befehle ausführen:
grant all on *.* to 'root'@'localhost' identified by '<password>' with grant option; grant all on *.* to 'root'@'%' identified by '<password>' with grant option; flush privileges; quit;
Passwort ändern
mysqladmin -p --user=root password "newpassword"
Links
http://www.fun-genius.com/dashboard/docs/reset-mysql-password.html
Replikation
Siehe dazu MariaDB Replikation
Query Log
https://mariadb.com/kb/en/general-query-log/
Probleme
logrotate[658]: error: 'Access denied for user 'root'@'localhost' (using password: NO)'
https://askubuntu.com/questions/876552/mysql-logrotate-error
Links
https://wiki.ubuntuusers.de/MariaDB/
Zurück zu Ubuntu