From 1ac18d000374d317ea5bc391e2ac435e9414ba2a Mon Sep 17 00:00:00 2001
From: Danny Auble <da@llnl.gov>
Date: Fri, 27 Jun 2008 21:10:49 +0000
Subject: [PATCH] added example to the mysql configuration

---
 doc/html/accounting.shtml | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)

diff --git a/doc/html/accounting.shtml b/doc/html/accounting.shtml
index 3551bc0c61a..0c0943937b1 100644
--- a/doc/html/accounting.shtml
+++ b/doc/html/accounting.shtml
@@ -303,6 +303,30 @@ Define the name of the user we are going to connect to the database
 with to store the job accounting data.</li>
 </ul>
 
+<h2>MySQL Configuration</h2>
+<p>While SLURM will create the database automatically you will need to
+  make sure the StorageUser is given permissions in MySQL to do so.
+  As the <i>mysql</i> user grant privileges to that user using a
+  command such as 
+<pre>
+GRANT ALL ON slum_acct_db.* TO 'StorageUser'@'localhost'; 
+
+live example:
+
+mysql@snowflake:~$ mysql
+Welcome to the MySQL monitor.  Commands end with ; or \g.
+Your MySQL connection id is 538
+Server version: 5.0.51a-3ubuntu5.1 (Ubuntu)
+
+Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
+
+mysql> grant all on slurm_acct_db.* TO 'da'@'localhost';
+Query OK, 0 rows affected (0.00 sec)
+
+</pre>
+
+This will grant user 'da' access to do what he needs to do on the
+local host. 
 <h2>Tools</h2>
 
 <p>There are a few tools available to work with accounting data,
-- 
GitLab