Fresh installation does not install MySQL

kalisto

Verified User
Joined
Jan 31, 2019
Messages
10
I had problems with fresh installation on Debian 9.8. MySQL was not installed by setup.sh script

Installation output:

MySQL

Code:
Extracting services file...
Found /etc/mysql: moved to /etc/mysql.moved
Ostrzeżenie: Brak dostępu do podanego katalogu domowego /usr/local/mysql: No such file or directory
Dodawanie użytkownika systemowego "mysql" (UID 114)...
Dodawanie nowej grupy "mysql" (GID 118)...
Dodawanie nowego użytkownika "mysql" (UID 114) w grupie "mysql"...
Nie utworzono katalogu domowego "/usr/local/mysql".
*** Unable to find /usr/local/directadmin/scripts/packages/mariadb-10.2.22-linux-glibc_214-x86_64.tar.gz to extract ***
phpMyAdmin to be installed through custombuild
sent invalidate(passwd) request, exiting
sent invalidate(group) request, exiting
sent invalidate(group) request, exiting
Ostrzeżenie: Brak dostępu do podanego katalogu domowego /home/ftp: No such file or directory
Dodawanie użytkownika systemowego "ftp" (UID 115)...
Dodawanie nowego użytkownika "ftp" (UID 115) w grupie "ftp"...
Nie utworzono katalogu domowego "/home/ftp".
dpkg: ostrzeżenie: ignorowanie żądania usunięcia pakietu gadmin-proftpd, który nie jest zainstalowany
dpkg: ostrzeżenie: ignorowanie żądania usunięcia pakietu gforge-ftp-proftpd, który nie jest zainstalowany
dpkg: ostrzeżenie: ignorowanie żądania usunięcia pakietu gproftpd, który nie jest zainstalowany

..
..
..
exim
Code:
pkg: exim4-daemon-light: problemy z zależnościami, usuwanie według żądania:
 bsd-mailx zależy od default-mta | mail-transport-agent; jednakże:
  Pakiet default-mta nie jest zainstalowany.
  Pakiet exim4-daemon-light dostarcza default-mta, ale jest przeznaczony do usunięcia.
  Pakiet mail-transport-agent nie jest zainstalowany.
  Pakiet exim4-daemon-light dostarcza mail-transport-agent, ale jest przeznaczony do usunięcia.
 bsd-mailx zależy od default-mta | mail-transport-agent; jednakże:
  Pakiet default-mta nie jest zainstalowany.
  Pakiet exim4-daemon-light dostarcza default-mta, ale jest przeznaczony do usunięcia.
  Pakiet mail-transport-agent nie jest zainstalowany.
  Pakiet exim4-daemon-light dostarcza mail-transport-agent, ale jest przeznaczony do usunięcia.

Code:
Przetwarzanie wyzwalaczy pakietu systemd (232-25+deb9u9)...
Wystąpiły błędy podczas przetwarzania:
 exim4-daemon-light
dpkg: błąd: cannot access archive 'da_exim-4.89.deb': Nie ma takiego pliku ani katalogu
..
..
roundcube
Code:
./build: line 6704: /usr/local/mysql/bin/mysqlshow: No such file or directory
Inserting data to mysql and creating database/user for roundcube...
./build: line 6707: mysql: command not found
./build: line 6708: mysql: command not found
./build: line 6718: mysql: command not found
Database created, da_roundcube password is vSb0iLWaa0o3
Editing roundcube configuration...
Replacing mod_php5 with mod_php7 in .htaccess
Roundcube 1.3.8 has been installed successfully.
Executing database schema update.
ERROR: SQLSTATE[HY000] [2002] No such file or directoryError 500: Error connecting to database: SQLSTATE[HY000] [2002] No such file or directory
ensure_my_cnf: cannot find /usr/local/directadmin/conf/mysql.conf


Solution:
Run installation on Debian 9.6 or
use https://help.directadmin.com/item.php?id=563 after setup.sh finish, but something does not work - I think.

Could you look and propose some better solution ?

Best regards
 
The following before running setup.sh should solve the problem:
Code:
perl -pi -e 's#9.6|9.7\)#9.6|9.7|9.8\)#g' setup.sh

Thank you for the report! Will be fixed in setup.sh soon.
 
I can confirm this issue. I just installed mysql manually later. caused several headache for me...
 
almalinux same problem xD
Interresting, because I use Alma 8.5 and I don't have problem with MySQL (actually it is MariaDB), but I have to admit that these box were migrated from C8/C8S to Alma therefore the installation was existant already.
 
Back
Top