Aktualisierung interne MariaDB 5.5.57 auf MariaDB 10.4.x mit Entware-std
- lhsei
- Unerledigt
-
-
Das Problem ist, daß ich in phpMyAdmin nichts (mehr) einstellen kann.
Könntest Du evtl. mit Teamviewer mal drauf schauen? Ich bin echt am verzweifeln. Oder PN.
Mod.: Private Mailadresse gelöscht.
-
Am besten gleich mal die aktuellste Version von phpMyAdmin installieren.
Dazu folgende Befehle:
Codecd /share/Web wget https://files.phpmyadmin.net/phpMyAdmin/5.1.0/phpMyAdmin-5.1.0-all-languages.zip unzip phpMyAdmin-5.1.0-all-languages.zip rm phpMyAdmin mv phpMyAdmin-5.1.0-all-languages phpMyAdmin rm phpMyAdmin-5.1.0-all-languages.zip
Dann hat man bei der Anmeldung eine Klappliste mit der Sprachauswahl.
-
Ich habe diese Version am laufen! Ich ahbe auch herausgefunden, wie der Fehler auftritt und behoben werden kann.
Wenn der Fehler bereits angezeigt wird, hat man keine Chance mehr, die Sprache umzustellen!!!
Man muß zunächst myphpadmin einfach schließen (bzw. den TAB schließen). Dann muß der neue SQL-Server gestoppt werden. Erst jetzt kommt man nach einem erneuten Aufruf von myphpadmin wieder auf die Loginseite, wo man die Sprache auf "Englisch" umstellt.
Wenn man sich dann einloggt, ist alles ok.
Sollte man in phpmyadmin den Fehler machen, und die Sprache erneut auf "Deutsch" umstellen wollen, beginnt der gleiche Kreislauf von vorne.
Hast Du eine Ahnung, warum die Sprache nicht angepaßt werden kann? Das ist mir ein Rätsel.
Das bewirkt nichts.
Es wird installiert, der Hinweis kommt, daß 0 Zeilen betroffen sind und nach exit und selbst nach restart bleibt der gleiche Fehler vorhanden, daß de_DE nicht gesetzt werden kann.
-
Ich habe es jetzt noch einmal nachgestellt. Offensichtlich fehlt bei der aktuellen MariaDB- Version, die über opkg ausgerollt wird, die deutsche errmsg.sys.
Daher weigert sich der Server, Deutsch einzustellen.
Entweder kann man die Datei vom offiziellen MariaDB-Server herunterladen (ich habe das Windows-ZIP-Archiv genommen) oder man kopiert die vorhandene englische Datei in das deutsche Verzeichnis.
Als Workaround empfehle ich Folgendes:
-
Entweder kann man die Datei vom offiziellen MariaDB-Server herunterladen (ich habe das Windows-ZIP-Archiv genommen) oder man kopiert die vorhandene englische Datei in das deutsche Verzeichnis.
Ufff - kannst Du mir da nochmal weiterhelfen? Wo finde ich den "offiziellen MariaDB-Server"?
PS: Habs gefunden - der Link lautet:
-
Hallo Ihsei,
vielen Dank für Deine super-Anleitung. Ich habe die Schritte genau befolgt, bei derNeuinstallation von mysql komme leider nicht weiter:
Code
Alles anzeigen[~] # mysql_install_db --force Could not find plugin directory. Will continue with "/opt/lib/mariadb/plugin". Installing MariaDB/MySQL system tables in '/share/databases' ... OK To start mysqld at boot time you have to copy support-files/mysql.server to the right place for your system Two all-privilege accounts were created. One is root@localhost, it has no password, but you need to be system 'root' user to connect. Use, for example, sudo mysql The second is admin@localhost, it has no password either, but you need to be the system 'admin' user to connect. After connecting you can set the password, if you would need to be able to connect as any of these users with a password and without sudo See the MariaDB Knowledgebase at http://mariadb.com/kb or the MySQL manual for more instructions. You can start the MariaDB daemon with: cd '/opt' ; /opt/bin/mysqld_safe --datadir='/share/databases' You can test the MariaDB daemon with mysql-test-run.pl cd '/opt/mysql-test' ; perl mysql-test-run.pl Please report any problems at http://mariadb.org/jira The latest information about MariaDB is available at http://mariadb.org/. You can find additional information about the MySQL part at: http://dev.mysql.com Consider joining MariaDB's strong and vibrant community: https://mariadb.org/get-involved/
Dann versuche ich die vorher gesicherte mysql zu verbinden. Funktioniert leider nicht. Ich habe kein Passwort eingegeben. Restart ist auch nicht möglich. Was mache ich falsch? Fehlt vielleicht eine Berechtigung für den Dateizugriff?
Code[~] # /opt/etc/init.d/S70mysqld restart cat: /opt/var/run/mysqld/mysqld.pid: No such file or directory
Code
Alles anzeigen[/share/Public] # ls DVBLink/ messages performance_schema.sql FRITZ.Box_7330_SL.116.06.53.image MyMusic.sql phpmyadmin.sql idb.log mysql.sql @Recycle/ information_schema.sql MyVideos119.sql uu.log [/share/Public] # mysql -h localhost -u admin -p mysql </share/Public/mysql.sql Enter password: ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) [/share/Public] # mysql -h localhost -u admin -p mysql </share/Public/mysql.sql Enter password: ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) [/share/Public] # mysql -h localhost -u admin -p mysql Enter password: ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
Ich hoffe, meine Angaben sind ausreichend, sonst bitte melden.
Vielen Dank!
-
Hallo,
kannst Du bitte den Inhalt Deiner Config-Datei posten? Deine Fehlermeldung besagt, dass MariaDB nicht läuft...
Ist der Share databases angelegt und für den Nutzer admin beschreibbar?
Nutzt Du noch den Standard-Adminnutzer oder einen eigenen Nutzer? Falls nicht der Standard-Admin genutzt wird, müssen die Config und die Befehle entsprechend angepasst werden.
-
Hallo,
vielen Dank für Deine Antwort.
Hier ist die Config:
Code
Alles anzeigen# # These groups are read by MariaDB server. # Use it for options that only the server (but not clients) should see # # See the examples of server my.cnf files in /usr/share/mysql/ # # this is read by the standalone daemon and embedded servers [client] socket = /tmp/mysql.sock port = 3306 # this is only for the mysqld standalone daemon [mysqld] # # * Basic Settings # user = admin pid-file = /opt/var/run/mysqld/mysqld.pid socket = /tmp/mysql.sock port = 3306 basedir = /opt # Don't put this on flash memory # Figure out where you are going to put the databases and run # mysql_install_db --force datadir = /share/Public/databases # tmpdir should also not go on flash memory tmpdir = /opt/tmp lc-messages-dir = /opt/share/mariadb skip-external-locking # Instead of skip-networking the default is now to listen only on # localhost which is more compatible and is not less secure. # bind-address = 127.0.0.1 # # * Fine Tuning # key_buffer_size = 64M max_allowed_packet = 64M thread_stack = 512K thread_cache_size = 32 thread_handling = pool-of-threads # This replaces the startup script and checks MyISAM tables if needed # the first time they are touched myisam_recover_options = BACKUP #max_connections = 100 #table_cache = 64 #thread_concurrency = 10 # # * Query Cache Configuration # query_cache_limit = 16M query_cache_size = 128M # # * Logging and Replication # # Be aware that this log type is a performance killer. # As of 5.1 you can enable the log at runtime! #general_log_file = /opt/var/log/mysql/mysql.log #general_log = 1 # # Error log - should be very few entries. # Note that if unset the errors will go to stdout and can be seen in syslog # (check "logread") # #log_error = /opt/var/log/mysql/error.log # # Enable the slow query log to see queries with especially long duration #slow_query_log_file = /opt/var/log/mysql/mariadb-slow.log #long_query_time = 10 #log_slow_rate_limit = 1000 #log_slow_verbosity = query_plan # #log-queries-not-using-indexes # # The following can be used as easy to replay backup logs or for replication. #server-id = 1 #log_bin = /opt/var/log/mysql/mysql-bin.log expire_logs_days = 10 max_binlog_size = 100M #binlog_do_db = include_database_name #binlog_ignore_db = exclude_database_name # # * InnoDB # # InnoDB is enabled by default with a 10MB datafile in /var/lib/mysql/. # Read the manual for more InnoDB related options. There are many! # # * Security Features # # Read the manual, too, if you want chroot! # chroot = /opt/var/lib/mysql/ # # For generating SSL certificates you can use for example the GUI tool "tinyca". # # ssl-ca=/opt/etc/mysql/cacert.pem # ssl-cert=/opt/etc/mysql/server-cert.pem # ssl-key=/opt/etc/mysql/server-key.pem # # Accept only connections using the latest and most secure TLS protocol version. # ..when MariaDB is compiled with OpenSSL: # ssl-cipher=TLSv1.2 # # * Character sets # # MySQL/MariaDB default is Latin1, but in OpenWrt we rather default to the full # utf8 4-byte character set. See also client.cnf # # Note: In OpenWrt until mariadb 10.2.19-2 the baked-in defaults were # "DEFAULT_CHARSET=utf8" and "DEFAULT_COLLATION=utf8_general_ci". As MariaDB's # utf8 (supports three bytes per character) is not really UTF-8 (which needs up # to four bytes per character) this was changed. Now the baked in-defaults are # the upstream defaults (Latin1), but in the default configuration (like in the # file you are currently reading) utf8mb4 is set, which is real UTF-8. # # Of course you are free to change this, either here or in a configuration file # of your own which is read after this .cnf file, see my.cnf in parent folder # (files are read in alphabetical order). character-set-server = utf8mb4 collation-server = utf8mb4_general_ci # # * Unix socket authentication plugin is built-in # # Needed so the root database user can authenticate without a password but # only when running as the unix root user. # # Also available for other users if required. # See https://mariadb.com/kb/en/unix_socket-authentication-plugin/
Die Rechte für den Ordner "databases" sind vorhanden:
Code[~] # ls -al /share/Public/ total 38684 drwxrwxrwx 6 admin administrators 4096 2021-07-22 22:01 ./ drwxrwxrwx 63 admin administrators 4096 2021-07-22 21:59 ../ drwxrwxrwx 2 admin administrators 4096 2021-07-20 22:08 databases/
Welche Admin-Nutzer meinst Du?
Für die QNAP-Nas ist der Admin-Benutzer "admin"
Für PHPmyAdmin ist der Admin-Nutzer für die SQL-Datenbank "root"
Aber der Benutzer ändert sich nach dem Import der bestehenden mysql-Datenbank.
Siehst Du, warum die MariaDB nicht startet? Ich habe schon gegoogelt und viel gelesen aber keine Lösung gefunden.
Vielen Dank für Deine Unterstützung.
-
Ist der eingebaute SQL-Server deaktiviert?
-
Hallo,
ja, den internen SQL-Server habe ich über die Benutzeroberfläche deaktiviert. Anschließend war die Datenbank mit myPHPadmin nicht mehr erreichbar.
Ist merkwürdig - oder?
Viele Grüße
-
-
-
-
-
Du hast eine PN
Mir ist gerade aufgefallen, dass Du gemäß Install-Log in Post 27 die Datenbanken in /share/databases installiert hast. Laut config-Datei in Post 29 ist Dein Datenbankverzeichnis aber /share/Public/databases
-
Hallo,
ich habe noch mal alles zurück gesetzt. Entware std deinstalliert und neu installiert, MariaDB neu installiert. Den Datenbankordner in der config-Datei geändert. Ich erhalte immer noch die Fehlermeldung, dass der SQL-Server nicht gestartet werden kann.
Der Datenbank-Ordner ist doch erst entscheidend sobald die leere mysql-Datenbank neu angelegt wird oder liege ich da falsch?
Hier noch mal alles gesammelt:
Code
Alles anzeigen[~] # opkg install mariadb-server-extra mariadb-client-extra nano Installing mariadb-server-extra (10.4.18-1a) to root... Downloading http://bin.entware.net/x64-k3.2/mariadb-server-extra_10.4.18-1a_x64-3.2.ipk Installing mariadb-common (1.0-2) to root... Downloading http://bin.entware.net/x64-k3.2/mariadb-common_1.0-2_x64-3.2.ipk Installing libiconv-full (1.16-1) to root... Downloading http://bin.entware.net/x64-k3.2/libiconv-full_1.16-1_x64-3.2.ipk Installing libatomic (8.4.0-11) to root... Downloading http://bin.entware.net/x64-k3.2/libatomic_8.4.0-11_x64-3.2.ipk Installing zlib (1.2.11-3) to root... Downloading http://bin.entware.net/x64-k3.2/zlib_1.2.11-3_x64-3.2.ipk Installing libopenssl (1.1.1k-1) to root... Downloading http://bin.entware.net/x64-k3.2/libopenssl_1.1.1k-1_x64-3.2.ipk Installing libaio (0.3.112-2) to root... Downloading http://bin.entware.net/x64-k3.2/libaio_0.3.112-2_x64-3.2.ipk Installing liblzma (5.2.5-3) to root... Downloading http://bin.entware.net/x64-k3.2/liblzma_5.2.5-3_x64-3.2.ipk Installing resolveip (2) to root... Downloading http://bin.entware.net/x64-k3.2/resolveip_2_x64-3.2.ipk Installing mariadb-server-base (10.4.18-1a) to root... Downloading http://bin.entware.net/x64-k3.2/mariadb-server-base_10.4.18-1a_x64-3.2.ipk Installing mariadb-server (10.4.18-1a) to root... Downloading http://bin.entware.net/x64-k3.2/mariadb-server_10.4.18-1a_x64-3.2.ipk Installing mariadb-client-extra (10.4.18-1a) to root... Downloading http://bin.entware.net/x64-k3.2/mariadb-client-extra_10.4.18-1a_x64-3.2.ipk Installing libncursesw (6.2-2a) to root... Downloading http://bin.entware.net/x64-k3.2/libncursesw_6.2-2a_x64-3.2.ipk Installing libncurses (6.2-2a) to root... Downloading http://bin.entware.net/x64-k3.2/libncurses_6.2-2a_x64-3.2.ipk Installing libedit (20210522-3.1-1) to root... Downloading http://bin.entware.net/x64-k3.2/libedit_20210522-3.1-1_x64-3.2.ipk Installing mariadb-client-base (10.4.18-1a) to root... Downloading http://bin.entware.net/x64-k3.2/mariadb-client-base_10.4.18-1a_x64-3.2.ipk Installing mariadb-client (10.4.18-1a) to root... Downloading http://bin.entware.net/x64-k3.2/mariadb-client_10.4.18-1a_x64-3.2.ipk Installing nano (5.8-1) to root... Downloading http://bin.entware.net/x64-k3.2/nano_5.8-1_x64-3.2.ipk Installing libbz2 (1.0.8-1) to root... Downloading http://bin.entware.net/x64-k3.2/libbz2_1.0.8-1_x64-3.2.ipk Installing libmagic (5.40-4) to root... Downloading http://bin.entware.net/x64-k3.2/libmagic_5.40-4_x64-3.2.ipk Installing file (5.40-4) to root... Downloading http://bin.entware.net/x64-k3.2/file_5.40-4_x64-3.2.ipk Configuring libatomic. Configuring libncursesw. Configuring zlib. Configuring liblzma. Configuring libbz2. Configuring libmagic. Configuring file. Configuring nano. Configuring mariadb-common. Configuring libiconv-full. Configuring libopenssl. Configuring libncurses. Configuring libedit. Configuring mariadb-client-base. Configuring mariadb-client. Configuring resolveip. Configuring libaio. Configuring mariadb-server-base. Configuring mariadb-server. Configuring mariadb-server-extra. Configuring mariadb-client-extra. [~] # mysql_install_db --force Could not find plugin directory. Will continue with "/opt/lib/mariadb/plugin". chown: unknown user root Cannot change ownership of the database directories to the 'root' user. Check that you have the necessary permissions and try again. [~] # mysql_install_db --force Could not find plugin directory. Will continue with "/opt/lib/mariadb/plugin". chown: unknown user root Cannot change ownership of the database directories to the 'root' user. Check that you have the necessary permissions and try again. [~] # mysql_install_db --force Could not find plugin directory. Will continue with "/opt/lib/mariadb/plugin". chown: unknown user root Cannot change ownership of the database directories to the 'root' user. Check that you have the necessary permissions and try again. [~] # /opt/etc/init.d/S70mysqld restart cat: /opt/var/run/mysqld/mysqld.pid: No such file or directory [~] # /opt/etc/init.d/S70mysqld start [~] # /opt/etc/init.d/S70mysqld status mysqld is not running [~] # /opt/etc/init.d/S70mysqld start [~] # /opt/etc/init.d/S70mysqld restart cat: /opt/var/run/mysqld/mysqld.pid: No such file or directory [~] # mysql -h localhost -u admin -p Enter password: ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) [~] # DROP DATABASE mysql; -sh: DROP: command not found [~] # mysql_install_db --force Could not find plugin directory. Will continue with "/opt/lib/mariadb/plugin". chown: unknown user root Cannot change ownership of the database directories to the 'root' user. Check that you have the necessary permissions and try again. [~] # /opt/etc/init.d/S70mysqld restart cat: /opt/var/run/mysqld/mysqld.pid: No such file or directory
Ist die Fehlermeldung zu beachten oder ist das nur ein Hinweis:
-
Hier ist der Fehler:
Codechown: unknown user root Cannot change ownership of the database directories to the 'root' user. Check that you have the necessary permissions and try again.
Bitte VOR dem install-Befehl in der Config den User auf Admin umstellen, so wie ich es auch im Tutorial beschrieben habe. Den User root gibt es beim QNAP nicht. Daher scheitert die Installation.
-
Hi kann mir bitte jemand sagen wo ich die Datei zum Ändern finde? Ich kann nicht auf meine Mariadb via Navicat Client oder Heidisql zugreifen.
Mod: Nicht deklariertes Zitat ohne Quellenangabe ... korrigiert! Forenregeln beachten und Die Zitat Funktion des Forums richtig nutzen
Wenn die Verbindung mit der IP nicht klappt, dann bitte prüfen, ob der MariaDB-Server an eine bestimmte IP (z.B. 127.0.0.1 für localhost) gebunden ist. Dazu bitte in der MariaDB-Konfiguration prüfen, ob die Zeile
mit einem # auskommentiert ist. Falls nein, bitte auskommentieren und den MariaDB-Server neu starten.
Ich komme selbst nach Stunden nicht dahinter- danke
-
Hallo,
zwischenzeitlich bietet QNAP im Appstore die Maria DB10.5 als App an, so dass der hier vorgestellte Workaround nicht mehr erforderlich ist. Also am besten die MariaDB10-App installieren und alles sollte funktionieren.