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.

질문됨 일 년 전290회 조회
1개 답변
0
수락된 답변

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.

답변함 일 년 전
profile picture
전문가
검토됨 2달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인