MariaDB (Linux): Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
Zeile 64: | Zeile 64: | ||
=== debian-start[7452]: ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO) === | === debian-start[7452]: ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO) === | ||
==== Ursache ==== | |||
==== Abhilfe ==== | |||
<pre> | |||
sudo vi /etc/mysql/debian.cnf | |||
</pre> | |||
<pre> | |||
# Automatically generated for Debian scripts. DO NOT TOUCH! | |||
[client] | |||
host = localhost | |||
user = root | |||
password = "<password>" | |||
socket = /var/run/mysqld/mysqld.sock | |||
[mysql_upgrade] | |||
host = localhost | |||
user = root | |||
password = "<password>" | |||
socket = /var/run/mysqld/mysqld.sock | |||
basedir = /usr | |||
</pre> | |||
==== Link ==== | |||
[https://askubuntu.com/questions/876552/mysql-logrotate-error https://askubuntu.com/questions/876552/mysql-logrotate-error] | [https://askubuntu.com/questions/876552/mysql-logrotate-error https://askubuntu.com/questions/876552/mysql-logrotate-error] |
Version vom 2. April 2020, 06:17 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, falls in /etc/mysql/mariadb.conf.d/50-server.cnf als Adresse 127.0.0.1 eingetragen ist, folgende Befehle ausführen
grant all on *.* to 'root'@'localhost' identified by '<password>' with grant option; flush privileges; quit;
ansonsten:
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)'
debian-start[7452]: ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
Ursache
Abhilfe
sudo vi /etc/mysql/debian.cnf
# Automatically generated for Debian scripts. DO NOT TOUCH! [client] host = localhost user = root password = "<password>" socket = /var/run/mysqld/mysqld.sock [mysql_upgrade] host = localhost user = root password = "<password>" socket = /var/run/mysqld/mysqld.sock basedir = /usr
Link
https://askubuntu.com/questions/876552/mysql-logrotate-error
Links
https://wiki.ubuntuusers.de/MariaDB/
Zurück zu Ubuntu