<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.soylentnews.org/index.php?action=history&amp;feed=atom&amp;title=Docker_Administration%3A_MediaWiki_Password_Reset</id>
	<title>Docker Administration: MediaWiki Password Reset - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.soylentnews.org/index.php?action=history&amp;feed=atom&amp;title=Docker_Administration%3A_MediaWiki_Password_Reset"/>
	<link rel="alternate" type="text/html" href="https://wiki.soylentnews.org/index.php?title=Docker_Administration:_MediaWiki_Password_Reset&amp;action=history"/>
	<updated>2026-04-20T07:41:00Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.41.4</generator>
	<entry>
		<id>https://wiki.soylentnews.org/index.php?title=Docker_Administration:_MediaWiki_Password_Reset&amp;diff=56426&amp;oldid=prev</id>
		<title>Admin: Admin moved page Docker Notes MediaWiki to Docker Administration: MediaWiki Password Reset without leaving a redirect</title>
		<link rel="alternate" type="text/html" href="https://wiki.soylentnews.org/index.php?title=Docker_Administration:_MediaWiki_Password_Reset&amp;diff=56426&amp;oldid=prev"/>
		<updated>2024-11-24T22:47:01Z</updated>

		<summary type="html">&lt;p&gt;Admin moved page &lt;a href=&quot;/index.php?title=Docker_Notes_MediaWiki&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Docker Notes MediaWiki (page does not exist)&quot;&gt;Docker Notes MediaWiki&lt;/a&gt; to &lt;a href=&quot;/wiki/Docker_Administration:_MediaWiki_Password_Reset&quot; title=&quot;Docker Administration: MediaWiki Password Reset&quot;&gt;Docker Administration: MediaWiki Password Reset&lt;/a&gt; without leaving a redirect&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 22:47, 24 November 2024&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
	<entry>
		<id>https://wiki.soylentnews.org/index.php?title=Docker_Administration:_MediaWiki_Password_Reset&amp;diff=56425&amp;oldid=prev</id>
		<title>Admin: Created page with &quot;&lt;markdown&gt; # Docker Administration: MediaWiki Password Reset  This guide provides step-by-step instructions on how to reset a MediaWiki user's password using Docker.  ## Steps  ### 1. Log in to the Host  First, log in to the host machine where the MediaWiki Docker containers are running.  ```sh login to soylent-host-0 # su devops # cd /home/devops/mediawiki ```  ### 2. Check Docker Containers  List the running Docker containers to ensure the MediaWiki services are up and...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.soylentnews.org/index.php?title=Docker_Administration:_MediaWiki_Password_Reset&amp;diff=56425&amp;oldid=prev"/>
		<updated>2024-11-24T22:40:27Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;&amp;lt;markdown&amp;gt; # Docker Administration: MediaWiki Password Reset  This guide provides step-by-step instructions on how to reset a MediaWiki user&amp;#039;s password using Docker.  ## Steps  ### 1. Log in to the Host  First, log in to the host machine where the MediaWiki Docker containers are running.  ```sh login to soylent-host-0 # su devops # cd /home/devops/mediawiki ```  ### 2. Check Docker Containers  List the running Docker containers to ensure the MediaWiki services are up and...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;markdown&amp;gt;&lt;br /&gt;
# Docker Administration: MediaWiki Password Reset&lt;br /&gt;
&lt;br /&gt;
This guide provides step-by-step instructions on how to reset a MediaWiki user's password using Docker.&lt;br /&gt;
&lt;br /&gt;
## Steps&lt;br /&gt;
&lt;br /&gt;
### 1. Log in to the Host&lt;br /&gt;
&lt;br /&gt;
First, log in to the host machine where the MediaWiki Docker containers are running.&lt;br /&gt;
&lt;br /&gt;
```sh&lt;br /&gt;
login to soylent-host-0&lt;br /&gt;
# su devops&lt;br /&gt;
# cd /home/devops/mediawiki&lt;br /&gt;
```&lt;br /&gt;
&lt;br /&gt;
### 2. Check Docker Containers&lt;br /&gt;
&lt;br /&gt;
List the running Docker containers to ensure the MediaWiki services are up and running.&lt;br /&gt;
&lt;br /&gt;
```sh&lt;br /&gt;
devops@soylent-host-0:~/mediawiki$ docker compose ps&lt;br /&gt;
```&lt;br /&gt;
&lt;br /&gt;
You might see warnings about unset environment variables and obsolete attributes. Ignore these for now.&lt;br /&gt;
&lt;br /&gt;
### 3. Access the Database Container&lt;br /&gt;
&lt;br /&gt;
Execute a bash shell inside the database container.&lt;br /&gt;
&lt;br /&gt;
```sh&lt;br /&gt;
# docker compose exec -it database /bin/bash&lt;br /&gt;
```&lt;br /&gt;
&lt;br /&gt;
### 4. Retrieve Database Credentials&lt;br /&gt;
&lt;br /&gt;
Inside the database container, retrieve the MariaDB credentials.&lt;br /&gt;
&lt;br /&gt;
```sh&lt;br /&gt;
root@bc3520c0d843:/# env | grep MARIA&lt;br /&gt;
```&lt;br /&gt;
&lt;br /&gt;
### 5. Log in to MariaDB&lt;br /&gt;
&lt;br /&gt;
Log in to the MariaDB database using the retrieved credentials.&lt;br /&gt;
&lt;br /&gt;
```sh&lt;br /&gt;
# mariadb -u soylentnews -p mediawiki&lt;br /&gt;
```&lt;br /&gt;
&lt;br /&gt;
When prompted, enter the non-root password.&lt;br /&gt;
&lt;br /&gt;
### 6. Query the User Table&lt;br /&gt;
&lt;br /&gt;
Check the `aex_user` table to find the user whose password needs to be reset.&lt;br /&gt;
&lt;br /&gt;
```sql&lt;br /&gt;
MariaDB [mediawiki]&amp;gt; show tables;&lt;br /&gt;
MariaDB [mediawiki]&amp;gt; select * from aex_user limit 1;&lt;br /&gt;
```&lt;br /&gt;
&lt;br /&gt;
### 7. Find the User by Email&lt;br /&gt;
&lt;br /&gt;
If the user is not found by name, search by email. Note that the `aex_user` table is case-sensitive.&lt;br /&gt;
&lt;br /&gt;
```sql&lt;br /&gt;
MariaDB [mediawiki]&amp;gt; select * from aex_user where user_email like '%anrin%';&lt;br /&gt;
```&lt;br /&gt;
&lt;br /&gt;
### 8. Reset the Password&lt;br /&gt;
&lt;br /&gt;
Exit the database container and access the MediaWiki container.&lt;br /&gt;
&lt;br /&gt;
```sh&lt;br /&gt;
# devops@soylent-host-0:~/mediawiki$ docker compose exec -it mediawiki /bin/bash&lt;br /&gt;
```&lt;br /&gt;
&lt;br /&gt;
Run the password reset script inside the MediaWiki container.&lt;br /&gt;
&lt;br /&gt;
```sh&lt;br /&gt;
root@1ccb2d87367d:/var/www/html# php ./maintenance/run.php changePassword.php --user=mrcoolbp --password=password&lt;br /&gt;
```&lt;br /&gt;
&lt;br /&gt;
### 9. Completion&lt;br /&gt;
&lt;br /&gt;
The password for the user `mrcoolbp` has been successfully reset.&lt;br /&gt;
&lt;br /&gt;
```sh&lt;br /&gt;
Password set for Mrcoolbp&lt;br /&gt;
```&lt;br /&gt;
&lt;br /&gt;
All done.&lt;br /&gt;
&amp;lt;/markdown&amp;gt;&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
</feed>