How get or set the root password on lightsail lamp mariadb

0

I created a new lightsail lamp instance using php 8. It gave me mariadb. I think all is set, but I cannot log in as root to mariadb to change the root password or add a user or whatever. I have been searching and trying things for hours. How do I get control of this? I tried changing my my.cnf to have skip-grant-tables, and then I could get in by doing mysql - u root, but it still would not let me change the root password. it says user not in table. I tried changing to table mysql and I can list the root user. If I could find the root password, that would be fine as well as then I could log in with phpmyadmin. I am trying to upgrade my lightsail instance to the latest version. I have everything else working, but can't load the database because I can't access it. Not sure what to try next. Please advise. Thanks in advance for any help.

preguntada hace un año291 visualizaciones
1 Respuesta
0
Respuesta aceptada

I solved this and it was simple. I am keeping it out here so it may help someone else.

All you do is log into your instance using ssh. In the /home/bitnami folder, there is a file called bitnami_application_password. The password in there is the mysql password for root.

respondido hace un año
profile picture
EXPERTO
revisado hace 2 meses

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas