[GELÖST] Can't connect to database (MariaDB)
[GELÖST] Can't connect to database (MariaDB)
Hallo Zusamme
Ich installiere OTRS 5 von null. System: Fedora 22, ORTS 5, MariaDB, Apache2.
Diese Anleitung habe ich gebraucht. https://www.digitalocean.com/community/ ... n-centos-7
Sobald ich während der Installation(localhost/otrs/installer.pl) zum Schritt 2 kommen und die Datenbank neu erstelle, kommt dieser Fehler:
==
Can't connect to database, read comment!
Can't connect to MySQL server on '127.0.0.1' (13 "Permission denied")
==
Fehler im /var/log/httpd/error_log
-e: DBI connect('database=;host=127.0.0.1;','test',...) failed: Can't connect to MySQL server on '127.0.0.1' (13 "Permission denied") at /opt/otrs//Kernel/Modules/Installer.pm line 1181.
==
Wenn ich alle Module checke, ist alles in Ordnung.
Ich habe überall im google gesuch, aber nichts gefunden. Baruche umbedingt bitte Hilfe!!!
Danke
FG Anton
Ich installiere OTRS 5 von null. System: Fedora 22, ORTS 5, MariaDB, Apache2.
Diese Anleitung habe ich gebraucht. https://www.digitalocean.com/community/ ... n-centos-7
Sobald ich während der Installation(localhost/otrs/installer.pl) zum Schritt 2 kommen und die Datenbank neu erstelle, kommt dieser Fehler:
==
Can't connect to database, read comment!
Can't connect to MySQL server on '127.0.0.1' (13 "Permission denied")
==
Fehler im /var/log/httpd/error_log
-e: DBI connect('database=;host=127.0.0.1;','test',...) failed: Can't connect to MySQL server on '127.0.0.1' (13 "Permission denied") at /opt/otrs//Kernel/Modules/Installer.pm line 1181.
==
Wenn ich alle Module checke, ist alles in Ordnung.
Ich habe überall im google gesuch, aber nichts gefunden. Baruche umbedingt bitte Hilfe!!!
Danke
FG Anton
Last edited by Antar955 on 21 Apr 2016, 15:36, edited 2 times in total.
-
- Znuny guru
- Posts: 2210
- Joined: 13 Mar 2014, 09:16
- Znuny Version: 6.0.14
- Real Name: Rolf Straub
Re: Can't connect to database (MariaDB)
Kannst du dich lokal über die Shell mit der DB verbinden ?
Läuft die DB überhaupt ?
Hast du in der mysql.cnf eine ordentliche Bind-Adresse ?
Läuft die DB überhaupt ?
Hast du in der mysql.cnf eine ordentliche Bind-Adresse ?
Currently using: OTRS 6.0.14 -- MariaDB -- Ubuntu 16 LTS
Re: Can't connect to database (MariaDB)
Ja die DB läuft, ich kann mich ohne Probleme verbinden per ssh.
Das ist meine my.cnf Datei.
!includedir /etc/my.cnf.d
max_allowed_packet = 20M
query_cache_size = 32M
innodb_log_file_size = 256M
datadir=/var/lib/mysql
Fehlt etwas? )
Das ist meine my.cnf Datei.
!includedir /etc/my.cnf.d
max_allowed_packet = 20M
query_cache_size = 32M
innodb_log_file_size = 256M
datadir=/var/lib/mysql
Fehlt etwas? )
-
- Znuny guru
- Posts: 2210
- Joined: 13 Mar 2014, 09:16
- Znuny Version: 6.0.14
- Real Name: Rolf Straub
Re: Can't connect to database (MariaDB)
Also, falls die Verbindung von SSH funktioniert sieht die DB in Ordnung aus. Was jetzt noch evtl. nicht passt sind die Angaben zum Datenbanknamen, Usernamen und Password in der Config.pm
Currently using: OTRS 6.0.14 -- MariaDB -- Ubuntu 16 LTS
Re: Can't connect to database (MariaDB)
Ich habe alles auf standard gelassen.
Es hat ja noch keine DB für otrs, da sie erst im zweinen Installationsschritt erstellt.
Sobald ich mich mit root verbinde, kommt:
Can't connect to database, read comment!
Can't connect to MySQL server on '127.0.0.1' (13 "Permission denied")
Das gleiche ist im Log. ////
Es hat ja noch keine DB für otrs, da sie erst im zweinen Installationsschritt erstellt.
Sobald ich mich mit root verbinde, kommt:
Can't connect to database, read comment!
Can't connect to MySQL server on '127.0.0.1' (13 "Permission denied")
Das gleiche ist im Log. ////
-
- Znuny guru
- Posts: 2210
- Joined: 13 Mar 2014, 09:16
- Znuny Version: 6.0.14
- Real Name: Rolf Straub
Re: Can't connect to database (MariaDB)
hm guter Punkt... Hast du noch SELinux an ?
Currently using: OTRS 6.0.14 -- MariaDB -- Ubuntu 16 LTS
Re: Can't connect to database (MariaDB)
SELinux ?? sagt mir nicht viel/
Wie macht man das?
Das ist in meiner /etc/selinux/config Datei:
# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
# enforcing - SELinux security policy is enforced.
# permissive - SELinux prints warnings instead of enforcing.
# disabled - No SELinux policy is loaded.
SELINUX=enforcing
# SELINUXTYPE= can take one of these three values:
# targeted - Targeted processes are protected,
# minimum - Modification of targeted policy. Only selected processes are protected.
# mls - Multi Level Security protection.
SELINUXTYPE=targeted
Wie macht man das?
Das ist in meiner /etc/selinux/config Datei:
# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
# enforcing - SELinux security policy is enforced.
# permissive - SELinux prints warnings instead of enforcing.
# disabled - No SELinux policy is loaded.
SELINUX=enforcing
# SELINUXTYPE= can take one of these three values:
# targeted - Targeted processes are protected,
# minimum - Modification of targeted policy. Only selected processes are protected.
# mls - Multi Level Security protection.
SELINUXTYPE=targeted
Re: Can't connect to database (MariaDB)
Ich konnte das Problem beheben, es lang an SELinux))))
Danke für die Hilfe
Schöne Woche noch
FG Anton
Danke für die Hilfe
Schöne Woche noch
FG Anton
-
- Znuny guru
- Posts: 2210
- Joined: 13 Mar 2014, 09:16
- Znuny Version: 6.0.14
- Real Name: Rolf Straub
Re: Can't connect to database (MariaDB)
Prima Viel Spass noch!
Currently using: OTRS 6.0.14 -- MariaDB -- Ubuntu 16 LTS
-
- Znuny newbie
- Posts: 2
- Joined: 21 Apr 2016, 11:52
- Znuny Version: Version3.3
- Real Name: Milly Delevingne
- Company: The Cheesy Animation Factory
Re: Can't connect to database (MariaDB)
Does MariaDB 5.5.X allow IPv6 connections? I can't seem to find this information anywhere.
-
- Znuny guru
- Posts: 2210
- Joined: 13 Mar 2014, 09:16
- Znuny Version: 6.0.14
- Real Name: Rolf Straub
Re: Can't connect to database (MariaDB)
This seems to be out of scope for OTRS, but my first google search says yes, it does.
Currently using: OTRS 6.0.14 -- MariaDB -- Ubuntu 16 LTS
-
- Znuny newbie
- Posts: 3
- Joined: 07 Jan 2016, 11:50
- Znuny Version: OTRS 5
- Real Name: Uwe Gerling
- Company: ICSmedia GmbH
Re: [GELÖST] Can't connect to database (MariaDB)
Was genau war denn nun die Lösung? Habe exakt das gleiche Problem. Meine SELinux Conf sieht ebenfalls genauso aus.
Freue mich ja für Antar955. Wäre aber schön gewesen, die Lösung hier auch zu posten
Was bitte ist denn zu tun, um die Installation von OTRS zum Ziel zu bringen?
Danke für die Unterstützung
Freue mich ja für Antar955. Wäre aber schön gewesen, die Lösung hier auch zu posten
Was bitte ist denn zu tun, um die Installation von OTRS zum Ziel zu bringen?
Danke für die Unterstützung
-
- Znuny ninja
- Posts: 1312
- Joined: 25 May 2012, 08:51
- Znuny Version: OTRS 4
- Real Name: Klaus Nehrer
Re: [GELÖST] Can't connect to database (MariaDB)
Ins Blaue geraten steht in seiner Config nicht mehr
Code: Select all
SELINUX=enforcing