update
authorChristian Grothoff <christian@grothoff.org>
Mon, 6 Sep 2010 21:46:58 +0000 (21:46 +0000)
committerChristian Grothoff <christian@grothoff.org>
Mon, 6 Sep 2010 21:46:58 +0000 (21:46 +0000)
src/datacache/plugin_datacache_mysql.c
src/datastore/plugin_datastore_mysql.c

index d83d18cd6c217e8a6b80a96cc478a0654f2c7999..267ea9d3d55bea7f904264f3c50c849583d43bac 100644 (file)
          ON gnunet.* TO $USER@localhost;
       SET PASSWORD FOR $USER@localhost=PASSWORD('$the_password_you_like');
       FLUSH PRIVILEGES;
* @endverbatim
  @endverbatim
  * 2) In the $HOME directory of $USER, create a ".my.cnf" file
  *    with the following lines
  * @verbatim
       [client]
       user=$USER
       password=$the_password_you_like
* @endverbatim
  @endverbatim
  *
  * Thats it -- now you can configure your datastores in GNUnet to
  * use MySQL. Note that .my.cnf file is a security risk unless its on
@@ -61,7 +61,7 @@
  * @verbatim
       $ mysql -u $USER -p $the_password_you_like
       mysql> use gnunet;
* @endverbatim
  @endverbatim
  *
  *    If you get the message &quot;Database changed&quot; it probably works.
  *
index c61c450198c966cbef0c5b90bd207d758b63923f..4e5d8f9b06e279fac89ebc551b0c488b8194c45d 100644 (file)
  *
  * 1) in /etc/gnunet.conf, set
  * @verbatim
*     [datastore]
*     DATABASE = "mysql"
* @endverbatim
      [datastore]
      DATABASE = "mysql"
  @endverbatim
  * 2) Then access mysql as root,
  * @verbatim
      $ mysql -u root -p
* @endverbatim
  @endverbatim
  *    and do the following. [You should replace $USER with the username
  *    that will be running the gnunetd process].
  * @verbatim
          ON gnunet.* TO $USER@localhost;
       SET PASSWORD FOR $USER@localhost=PASSWORD('$the_password_you_like');
       FLUSH PRIVILEGES;
* @endverbatim
  @endverbatim
  * 3) In the $HOME directory of $USER, create a ".my.cnf" file
  *    with the following lines
  * @verbatim
       [client]
       user=$USER
       password=$the_password_you_like
* @endverbatim
  @endverbatim
  *
  * Thats it. Note that .my.cnf file is a security risk unless its on
  * a safe partition etc. The $HOME/.my.cnf can of course be a symbolic
@@ -86,7 +86,7 @@
  * @verbatim
      $ mysql -u $USER -p $the_password_you_like
      mysql> use gnunet;
* @endverbatim
  @endverbatim
  *
  *    If you get the message &quot;Database changed&quot; it probably works.
  *
  * @verbatim
      mysql> REPAIR TABLE gn090;
      mysql> REPAIR TABLE gn072;
* @endverbatim
  @endverbatim
  *
  * PROBLEMS?
  *