Cómo acceder a MariaDB desde la consola de LInux:
Código: Seleccionar todo
mysql -u root -p
Ejemplo en Debian 12:
Código: Seleccionar todo
guillermo@equipo:~$ su -
Contraseña:
root@equipo:~# mysql -u root -p
Enter password:
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is 33
Server version: 10.11.6-MariaDB-0+deb12u1 Debian 12
Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
MariaDB [(none)]> exit
Bye
root@equipo:~# exit
cerrar sesión
guillermo@equipo~$
Enlaces útiles:
- Cómo acceder a MariaDB o MySQL desde la consola Linux: https://www.vozidea.com/acceder-mariadb ... sola-linux