<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://www.lensovet.net/~sysadmin/w/index.php?action=history&amp;feed=atom&amp;title=Help%3AInstallation%2FUsers</id>
	<title>Help:Installation/Users - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://www.lensovet.net/~sysadmin/w/index.php?action=history&amp;feed=atom&amp;title=Help%3AInstallation%2FUsers"/>
	<link rel="alternate" type="text/html" href="http://www.lensovet.net/~sysadmin/w/index.php?title=Help:Installation/Users&amp;action=history"/>
	<updated>2026-06-20T23:38:20Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.31.16</generator>
	<entry>
		<id>http://www.lensovet.net/~sysadmin/w/index.php?title=Help:Installation/Users&amp;diff=1636&amp;oldid=prev</id>
		<title>Wadmin: 1 revision(s)</title>
		<link rel="alternate" type="text/html" href="http://www.lensovet.net/~sysadmin/w/index.php?title=Help:Installation/Users&amp;diff=1636&amp;oldid=prev"/>
		<updated>2006-07-19T05:34:30Z</updated>

		<summary type="html">&lt;p&gt;1 revision(s)&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&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: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 05:34, 19 July 2006&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>Wadmin</name></author>
		
	</entry>
	<entry>
		<id>http://www.lensovet.net/~sysadmin/w/index.php?title=Help:Installation/Users&amp;diff=1635&amp;oldid=prev</id>
		<title>24.132.41.143 at 19:11, 16 March 2006</title>
		<link rel="alternate" type="text/html" href="http://www.lensovet.net/~sysadmin/w/index.php?title=Help:Installation/Users&amp;diff=1635&amp;oldid=prev"/>
		<updated>2006-03-16T19:11:20Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Maybe the hardest part of the mediawiki installation is to deal with users.&lt;br /&gt;
&lt;br /&gt;
When installing the mediawiki in the same server as your mysql is hosted,&lt;br /&gt;
there are 5 users involved in a such installation: &lt;br /&gt;
&lt;br /&gt;
# wiki's SysOp - the administrator of the wiki. It only has access to the webinterfaces, so you'll never use it for shell commands.&lt;br /&gt;
# single host user - a normal user account on the server system.&lt;br /&gt;
# single database user - a normal user account on the mysql server.&lt;br /&gt;
# root host user - the superuser of the server system.&lt;br /&gt;
# mysql's root user - the superuser of the mysql's entire database management.&lt;br /&gt;
 &lt;br /&gt;
The mediawiki script installer  http: //your_machine/wiki/config/ will require&lt;br /&gt;
you to set the  wiki's SysOp account and provide either&lt;br /&gt;
- a single database user (and its password); &lt;br /&gt;
- or the  mysql's root user password.  &lt;br /&gt;
&lt;br /&gt;
You will need a wiki's SysOp account only when the mediawiki is installed.&lt;br /&gt;
&lt;br /&gt;
You need a single host user to some management that can't be done through the&lt;br /&gt;
web (uncompress the mediawiki distribution files, upgrade, change css files,&lt;br /&gt;
etc).  &lt;br /&gt;
&lt;br /&gt;
You need root host access if: &lt;br /&gt;
* You have no single database user;&lt;br /&gt;
* You don't have the mysql's root password;&lt;br /&gt;
* You don't want/have permission to install php pages on your $HOME/public_html.&lt;br /&gt;
&lt;br /&gt;
This article deals with users, so, we explain only the two former. We will&lt;br /&gt;
explain how to create the  single database user. Everywhere&lt;br /&gt;
you see ''sudo'' you'll need the root host password. Elsewhere, you'll need&lt;br /&gt;
to  have the mysql's root password.&lt;br /&gt;
&lt;br /&gt;
Now logged with shell access to the mysql machine server,&lt;br /&gt;
as your single host user:&lt;br /&gt;
 mysqladmin -u root create wikidb -p&lt;br /&gt;
 Enter password:&lt;br /&gt;
input your mysql's root password, or, if you don't know, try enter to see if&lt;br /&gt;
really there is a mysql's root password set.&lt;br /&gt;
If you type the wrong password, it'll appear:&lt;br /&gt;
 Access denied for user: 'root@localhost' (Using password: YES)&lt;br /&gt;
(For those who don't remember the mysql's root password, at the end of&lt;br /&gt;
this section there is an explanation). Else, nothing will appear&lt;br /&gt;
(or some errors that may overrun the scope of this documentation).&lt;br /&gt;
&lt;br /&gt;
 mysql -u root -p&lt;br /&gt;
 Enter password:&lt;br /&gt;
input your mysql's root password, or, if you don't know try enter.&lt;br /&gt;
If you type the wrong password, it'll appear:&lt;br /&gt;
Access denied for user: 'root@localhost' (Using password: YES)&lt;br /&gt;
For those who don't remember the mysql's root password, at the end of&lt;br /&gt;
this section there is an explanation.&lt;br /&gt;
Else:&lt;br /&gt;
 mysql&amp;gt;&lt;br /&gt;
See if the database was really created by the mysqladmin:&lt;br /&gt;
 mysql&amp;gt; show databases;&lt;br /&gt;
 +----------+&lt;br /&gt;
 | Database |&lt;br /&gt;
 +----------+&lt;br /&gt;
 | mysql    |&lt;br /&gt;
 | test     |&lt;br /&gt;
 | wikidb   |&lt;br /&gt;
 +----------+&lt;br /&gt;
 3 rows in set (0.00 sec)&lt;br /&gt;
&lt;br /&gt;
Then:&lt;br /&gt;
 mysql&amp;gt; GRANT ALL PRIVILEGES ON wikidb.* TO 'wikiuser'@'%'  IDENTIFIED BY 'password' WITH GRANT OPTION ;&lt;br /&gt;
&lt;br /&gt;
Exit :&lt;br /&gt;
 mysql&amp;gt; exit&lt;br /&gt;
&lt;br /&gt;
Now, you can go to the installer script: http://your_machine/wiki/config/&lt;br /&gt;
and provide the wikiuser and the password you have set in the GRANT&lt;br /&gt;
mysql command. Don't provide any root password.&lt;br /&gt;
&lt;br /&gt;
If you don't remember the mysql's root password, you can add the option:&lt;br /&gt;
skip-grant-tables&lt;br /&gt;
to the region [mysqld] of your file /etc/my.cnf.  It's suggested that,&lt;br /&gt;
in this moment, you don't allow external connections to the mysql&lt;br /&gt;
database, enabling this option on the same region [mysqld] of the same&lt;br /&gt;
file /etc/my.cnf:&lt;br /&gt;
skip-networking&lt;br /&gt;
Because, when you restart the daemon, everyone will have root access to&lt;br /&gt;
the mysql server (root access required to edit these files). It's also&lt;br /&gt;
suggested that you don't allow any type of shell logins in this moment,&lt;br /&gt;
such as ssh and rsh (for the same reason).&lt;br /&gt;
&lt;br /&gt;
Restart the server. The command depends on your Linux&lt;br /&gt;
distribution. For Fedora (2, but should work in every RedHat based&lt;br /&gt;
distros):&lt;br /&gt;
 sudo /etc/init.d/mysqld restart&lt;br /&gt;
Slackware (10.2, but should work in every Slackware based distros):&lt;br /&gt;
 sudo /etc/rc.d/rc.mysqld restart&lt;br /&gt;
for opensuse 10 use&lt;br /&gt;
 sudo /etc/init.d/mysql restart&lt;br /&gt;
&lt;br /&gt;
Now, you can follow the commands seen above:&lt;br /&gt;
&lt;br /&gt;
 mysqladmin -u root create wikidb -p&lt;br /&gt;
 mysql -u root -p&lt;br /&gt;
&lt;br /&gt;
After that, don't forget to edit again the /etc/my.cnf '''and''' restart the server.&lt;/div&gt;</summary>
		<author><name>24.132.41.143</name></author>
		
	</entry>
</feed>