» »

[FIXED] Debian 12 in MariaDB 11: Ukaz mysqldump in mysql ne delata (command not found).

[FIXED] Debian 12 in MariaDB 11: Ukaz mysqldump in mysql ne delata (command not found).

HotBurek ::

Dobro jutro.

Danes imam sledeč izziv. Imam najnovejši sistem Debian 12 (bookworm) in MariaDB (11.2.2).

Paketa mysql-client "ni", a ga nadomeščata druga dva:
root@nightrun:/# apt-get install mysql-client
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Package mysql-client is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
  mariadb-client-core mariadb-client

E: Package 'mysql-client' has no installation candidate

Nameščena imam oba paketa (mariadb-client in mariadb-client-core):
root@nightrun:/# apt-get install mariadb-client
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
mariadb-client is already the newest version (1:11.2.2+maria~deb11).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
root@nightrun:/# 
root@nightrun:/# 
root@nightrun:/# apt-get install mariadb-client-core
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
mariadb-client-core is already the newest version (1:11.2.2+maria~deb11).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

Ukaz locate mysqldump ne najde fajla, se pravi, da ga ni v /use/bin/ ali /use/sbin/ ali /usr/local/ (preveril tudi peš).

Program mysql (oz. mariadb) laufa.
root@nightrun:/# ps aux | grep mysql
mysql        679  0.2  1.8 5559244 302788 ?      Ssl  12:17   0:01 /usr/sbin/mariadbd
root        1014  0.0  0.0   6332  2144 pts/0    S+   12:29   0:00 grep mysql

--------------------------------------------

UPDATE (fixed)

Našel sem file mariadb-dump na lokaciji /usr/bin/. Pognal ukaz mariadb-dump ...(namesto mysqldump) in dela. Isto velja, če se hočeš v terminalu konektat na server: namesto mysql... gre z mariadb.... Krneki tole po/pre imenovanje.
root@debian:/# iptraf-ng
fatal: This program requires a screen size of at least 80 columns by 24 lines
Please resize your window
  • spremenilo: HotBurek ()

nosiyo ::

Quick history lesson: MySQL je bil free, dokler ga ni prevzel Sun (tega pa Oracle) in ga naredil plačljivega. Ostala je free različica, ki pa ne dobiva vseh fičerjev, ki jih ima plačljiva verzija. Zato se od leta 2009 naprej ločeno razvija še MariaDB, ki je fork free verzije MySQLa. Posledično je MariaDB vedno korak pred free MySQL-om in že precej let defacto standard free SQL baza. Še vedno pa večina ljudi temu reče MySQL, jezik je skoraj identičen.


Vredno ogleda ...

TemaSporočilaOglediZadnje sporočilo
TemaSporočilaOglediZadnje sporočilo
»

Kako namestit modul "pid" (Python) na Debian?

Oddelek: Programiranje
6447 (260) Ales
»

Izšel Ubuntu 21.10 (strani: 1 2 )

Oddelek: Novice / Operacijski sistemi
7312216 (7181) Ashrack
»

[Debian] apt remove zagonetka...

Oddelek: Operacijski sistemi
5541 (333) HotBurek
»

[Ubuntu] Samba

Oddelek: Programska oprema
151849 (1639) black ice
»

[ubuntu] nepreverjeni paketi na si.archive.ubuntu.com ?

Oddelek: Programska oprema
71059 (944) MrStein

Več podobnih tem