Jump to content

[Support] MariaDB Official


Recommended Posts

On 6/10/2021 at 9:33 AM, mgutt said:

Set Root Password

 

If you like to manually set your root password remove the word "yes" from "Generate Random Password":

486128505_2021-06-1009_29_40.png.9c58d3d590958a9bb1e8d2c98bbd8e89.png

 

Then set your password through "Show more settings":

1244929783_2021-06-1009_31_35.png.c266779b45e41370a4706a7040f4b3c0.png

 

Note: This does not allow to change the password.

 

Reset Root Password

 

Edit the container, enable advanced view and add "mysqld_safe --skip-grant-tables" to the Post Arguments and start the container:

image.png.4929680835ad9e868e6013cfd16689b7.png

 

Open the cotnainer's console and execute the following commands:

mariadb -u root

 

Now you are connected to MariaDB. Execute this:

FLUSH PRIVILEGES;

 

And finally this:

SET PASSWORD FOR root@'localhost' = PASSWORD('your_new_password');

 

575706191_2021-07-1423_21_07.png.82fc27fe2ceebec2cc4fe0e73898f295.png

 

Finally edit the container and remove the "mysqld_safe --skip-grant-tables" part again.

want to reset my root password and got this error:

 

image.png.450d639137f7c3c246849a3ff1e0f68b.png

 

 

Link to comment
8 minutes ago, mgutt said:

Not sure what you are doing, but it don't seem you are using the steps mentioned in the guide.

i put this like u told in the post arguements:

image.thumb.png.e84abd2ee919a12c3a5d5e1078d025f8.png

 

press apply and the docker isnt starting

 

image.thumb.png.3abfa9f5ac1e8bf6e5ffe384a36cb20c.png

 

the log told me:

 

image.png.b639639a20f825d5ac794164b388c33c.png

Link to comment
On 6/10/2021 at 9:33 AM, mgutt said:

Set Root Password

 

If you like to manually set your root password remove the word "yes" from "Generate Random Password":

486128505_2021-06-1009_29_40.png.9c58d3d590958a9bb1e8d2c98bbd8e89.png

 

Then set your password through "Show more settings":

1244929783_2021-06-1009_31_35.png.c266779b45e41370a4706a7040f4b3c0.png

 

Note: This does not allow to change the password.

 

Reset Root Password

 

Edit the container, enable advanced view and add "mysqld_safe --skip-grant-tables" to the Post Arguments and start the container:

image.png.4929680835ad9e868e6013cfd16689b7.png

 

Open the cotnainer's console and execute the following commands:

mariadb -u root

 

Now you are connected to MariaDB. Execute this:

FLUSH PRIVILEGES;

 

And finally this:

SET PASSWORD FOR root@'localhost' = PASSWORD('your_new_password');

 

575706191_2021-07-1423_21_07.png.82fc27fe2ceebec2cc4fe0e73898f295.png

 

Finally edit the container and remove the "mysqld_safe --skip-grant-tables" part again.

I am trying to reset my Maria root password but when I add the mysqld_safe --skip-grant-tables to the post arguments the Maria server dies right after start and therefore the container stopps again. Here's the end of the logfile:

 

2024-06-22  9:30:41 0 [Note] Server socket created on IP: '0.0.0.0'.
2024-06-22  9:30:41 0 [Note] Server socket created on IP: '::'.
2024-06-22  9:30:41 0 [ERROR] Incorrect definition of table mysql.event: expected column 'definer' at position 3 to have type varchar(, found type char(141).
2024-06-22  9:30:41 0 [ERROR] mariadbd: Event Scheduler: An error occurred when initializing system tables. Disabling the Event Scheduler.
2024-06-22  9:30:41 0 [Note] /usr/bin/mariadbd: ready for connections.
Version: '10.11.8-MariaDB-log'  socket: '/run/mysqld/mysqld.sock'  port: 3306  Alpine Linux
2024-06-22  9:30:42 4 [Warning] Aborted connection 4 to db: 'unconnected' user: 'unauthenticated' host: 'localhost' (This connection closed normally without authentication)
2024-06-22  9:30:42 0 [Note] InnoDB: Buffer pool(s) load completed at 240622  9:30:42
2024-06-22  9:30:42 0 [Note] /usr/bin/mariadbd (initiated by: unknown): Normal shutdown
2024-06-22  9:30:42 0 [Note] InnoDB: FTS optimize thread exiting.
2024-06-22  9:30:42 0 [Note] InnoDB: Starting shutdown...
2024-06-22  9:30:42 0 [Note] InnoDB: Dumping buffer pool(s) to /config/databases/ib_buffer_pool
2024-06-22  9:30:42 0 [Note] InnoDB: Restricted to 4048 pages due to innodb_buf_pool_dump_pct=25
2024-06-22  9:30:42 0 [Note] InnoDB: Buffer pool(s) dump completed at 240622  9:30:42
2024-06-22  9:30:43 0 [Note] InnoDB: Removed temporary tablespace data file: "./ibtmp1"
2024-06-22  9:30:43 0 [Note] InnoDB: Shutdown completed; log sequence number 29657073294; transaction id 103877563
2024-06-22  9:30:43 0 [Note] /usr/bin/mariadbd: Shutdown complete

 

While the two ERROR lines hint at an unfinished upgrade process I don't think these are the reasons for the shutdown the follows since right after the Errors there's a "ready for connections" entry.

But I can't figure out why else it would go down like this.

and fixing the Errors is not possible since I would need the root password for that to work.

 

The DB is actually still working (using it for my nextcloud) but I would like to add another user and DB to the server in order to utilize it for a second project :/

 

Does anyone have an idea how I  can unlock my root account again or are my only options to dump(backup) the Nextcloud DB and transfer it to a newly created instance?

 

thanks in advance for any tips

cheers

 

 

 

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...