<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.refbase.net/index.php?action=history&amp;feed=atom&amp;title=Add_MySQL_User</id>
	<title>Add MySQL User - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.refbase.net/index.php?action=history&amp;feed=atom&amp;title=Add_MySQL_User"/>
	<link rel="alternate" type="text/html" href="https://wiki.refbase.net/index.php?title=Add_MySQL_User&amp;action=history"/>
	<updated>2026-04-15T05:14:47Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://wiki.refbase.net/index.php?title=Add_MySQL_User&amp;diff=90&amp;oldid=prev</id>
		<title>WikiSysop: Fix incorrect wiki formatting in GRANT statement</title>
		<link rel="alternate" type="text/html" href="https://wiki.refbase.net/index.php?title=Add_MySQL_User&amp;diff=90&amp;oldid=prev"/>
		<updated>2023-11-05T20:34:00Z</updated>

		<summary type="html">&lt;p&gt;Fix incorrect wiki formatting in GRANT statement&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 22:34, 5 November 2023&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;To avoid any security risks the refbase ''install.php'' script adds a new MySQL user to the MySQL database during installation. This user is granted only those permissions that are required to access the literature database. If you want to add this MySQL user manually (i.e. without ''install.php''), run the MySQL command interpreter with root permissions and use the following &amp;lt;code&amp;gt;GRANT&amp;lt;/code&amp;gt; statement:&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;To avoid any security risks the refbase ''install.php'' script adds a new MySQL user to the MySQL database during installation. This user is granted only those permissions that are required to access the literature database. If you want to add this MySQL user manually (i.e. without ''install.php''), run the MySQL command interpreter with root permissions and use the following &amp;lt;code&amp;gt;GRANT&amp;lt;/code&amp;gt; statement:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  GRANT SELECT,INSERT,UPDATE,DELETE ON ''MYSQL_DATABASE_NAME_GOES_HERE''.* TO ''MYSQL_USER_NAME_GOES_HERE''@localhost IDENTIFIED BY '''MYSQL_PASSWORD_GOES_HERE''';&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  GRANT SELECT,INSERT,UPDATE,DELETE ON ''MYSQL_DATABASE_NAME_GOES_HERE''.* TO ''MYSQL_USER_NAME_GOES_HERE''@localhost IDENTIFIED BY &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;nowiki&amp;gt;&lt;/ins&gt;'&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;/nowiki&amp;gt;&lt;/ins&gt;''MYSQL_PASSWORD_GOES_HERE''&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;nowiki&amp;gt;&lt;/ins&gt;'&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;/nowiki&amp;gt;&lt;/ins&gt;;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The italic items within the above statement must match the information you've provided in ''initialize/db.inc.php''. As an example, if you've entered the following in ''initialize/db.inc.php'':&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The italic items within the above statement must match the information you've provided in ''initialize/db.inc.php''. As an example, if you've entered the following in ''initialize/db.inc.php'':&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>WikiSysop</name></author>
	</entry>
	<entry>
		<id>https://wiki.refbase.net/index.php?title=Add_MySQL_User&amp;diff=89&amp;oldid=prev</id>
		<title>WikiSysop: Original page content from 07-Feb-2006</title>
		<link rel="alternate" type="text/html" href="https://wiki.refbase.net/index.php?title=Add_MySQL_User&amp;diff=89&amp;oldid=prev"/>
		<updated>2023-11-05T20:28:36Z</updated>

		<summary type="html">&lt;p&gt;Original page content from 07-Feb-2006&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;To avoid any security risks the refbase ''install.php'' script adds a new MySQL user to the MySQL database during installation. This user is granted only those permissions that are required to access the literature database. If you want to add this MySQL user manually (i.e. without ''install.php''), run the MySQL command interpreter with root permissions and use the following &amp;lt;code&amp;gt;GRANT&amp;lt;/code&amp;gt; statement:&lt;br /&gt;
&lt;br /&gt;
 GRANT SELECT,INSERT,UPDATE,DELETE ON ''MYSQL_DATABASE_NAME_GOES_HERE''.* TO ''MYSQL_USER_NAME_GOES_HERE''@localhost IDENTIFIED BY '''MYSQL_PASSWORD_GOES_HERE''';&lt;br /&gt;
&lt;br /&gt;
The italic items within the above statement must match the information you've provided in ''initialize/db.inc.php''. As an example, if you've entered the following in ''initialize/db.inc.php'':&lt;br /&gt;
&lt;br /&gt;
 $hostName = &amp;quot;localhost&amp;quot;;&lt;br /&gt;
 $databaseName = &amp;quot;literature&amp;quot;;&lt;br /&gt;
 $username = &amp;quot;litwww&amp;quot;;&lt;br /&gt;
 $password = &amp;quot;%l1t3ratur3?&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
your &amp;lt;code&amp;gt;GRANT&amp;lt;/code&amp;gt; statement would read:&lt;br /&gt;
&lt;br /&gt;
 GRANT SELECT,INSERT,UPDATE,DELETE ON literature.* TO litwww@localhost IDENTIFIED BY '%l1t3ratur3?';&lt;br /&gt;
&lt;br /&gt;
This adds a new user ''litwww'' to the ''user'' &amp;amp; ''db'' tables of the ''mysql'' database and allows him to use only the SQL statements &amp;lt;code&amp;gt;SELECT&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;INSERT&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;UPDATE&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;DELETE&amp;lt;/code&amp;gt; with any table of the literature database.&lt;br /&gt;
&lt;br /&gt;
[[Category:Installation]]&lt;/div&gt;</summary>
		<author><name>WikiSysop</name></author>
	</entry>
</feed>