Conectarme desde mysql workbench a la base de datos de ODkVM

What is the problem? Please be detailed.

What ODK tool and version are you using? And on what device and operating system version?

What steps can we take to reproduce the problem?

What you have you tried to fix the problem?

Anything else we should know or have? If you have a test form or screenshots or logs, attach here.

Hola Joaquín.

The Aggregate VM uses PostgreSQL, not MySQL, so you won't be able to connect MySQL workbench to that. You could use other GUI like pgAdmin, but you will need to make some changes in order to do so, because the database inside the VM can't be accessed from outside.

This is a rough list of steps you would have to follow:

  • Log into the VM using SSH or the VirtualBox console
  • Change the PostgreSQL to allow connections from any host
  • Change the PostgreSQL credentials to allow connections of the aggregate user from any host
  • Change the VM networking settings to link a local port to the VM's 5432 port if you're using a NAT network card

-- Spanish translation, just in case :wink: --

La VM de Aggregate usa PostgreSQL, no MySQL, por lo que no podrás conectarte a ella con MySQL Workbench. Puedes usar pgAdmin, pero tendrás que cambiar la configuración de la VM.

Esta es una lista aproximada de los pasos que deberías seguir:

  • Acceder a la VM usando SSH or la consola de VirtualBox
  • Cambiar la configuración de PostgreSQL para aceptar conexiones desde cualquier host
  • Cambiar la configuración de credenciales de PostgreSQL para que el usuario aggregate pueda conectarse desde cualquier host
  • Si la VM usa una tarjeta de red en modo NAT, cambiar la configuración de red de la VM para enlazar a un puerto local el puerto 5432 de la VM
1 Like

Por que puedo entro a ver mis bases de datos con mysql desde la ubuntu y no puedo entrar con workbench

corro con la linea de comando
mysql -u root -p y entro a consola de mysql cuando veo las bases con el comando de mysql para ver lo logro hacer como hago entonces para acceder a esa base de datos desde workbech desde otra maquina.

Resolvi mi problema muy sencillamente
MODIFICAR MYSQL ODKVM
sudo apt-get install nano

ABRIR
sudo nano /etc/mysql/my.cnf

Descomentar
skip-external-locking

Pasar a
bind-address = 0.0.0.0

Reiniciar
sudo service mysql restart

Crear Usuario
abrir mysql
mysql –u root -p

GRANT ALL PRIVILEGES ON * . * TO root@'%' IDENTIFIED BY 'password';
FLUSH PRIVILEGES;
select User from mysql.user;

Para vm mysql la contraseña de root es aggregate