diff options
author | Christian Grothoff <christian@grothoff.org> | 2010-09-06 21:46:58 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2010-09-06 21:46:58 +0000 |
commit | 26e603606ef13b48bbfca8bc5d20deb54e00455c (patch) | |
tree | 387ca1494653d9619b23a8c333870763b6cb3005 /src/datastore | |
parent | c447ae3332635db30b6aae1af2ebfedc80695765 (diff) | |
download | gnunet-26e603606ef13b48bbfca8bc5d20deb54e00455c.tar.gz gnunet-26e603606ef13b48bbfca8bc5d20deb54e00455c.zip |
update
Diffstat (limited to 'src/datastore')
-rw-r--r-- | src/datastore/plugin_datastore_mysql.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/datastore/plugin_datastore_mysql.c b/src/datastore/plugin_datastore_mysql.c index c61c45019..4e5d8f9b0 100644 --- a/src/datastore/plugin_datastore_mysql.c +++ b/src/datastore/plugin_datastore_mysql.c | |||
@@ -49,13 +49,13 @@ | |||
49 | * | 49 | * |
50 | * 1) in /etc/gnunet.conf, set | 50 | * 1) in /etc/gnunet.conf, set |
51 | * @verbatim | 51 | * @verbatim |
52 | * [datastore] | 52 | [datastore] |
53 | * DATABASE = "mysql" | 53 | DATABASE = "mysql" |
54 | * @endverbatim | 54 | @endverbatim |
55 | * 2) Then access mysql as root, | 55 | * 2) Then access mysql as root, |
56 | * @verbatim | 56 | * @verbatim |
57 | $ mysql -u root -p | 57 | $ mysql -u root -p |
58 | * @endverbatim | 58 | @endverbatim |
59 | * and do the following. [You should replace $USER with the username | 59 | * and do the following. [You should replace $USER with the username |
60 | * that will be running the gnunetd process]. | 60 | * that will be running the gnunetd process]. |
61 | * @verbatim | 61 | * @verbatim |
@@ -64,14 +64,14 @@ | |||
64 | ON gnunet.* TO $USER@localhost; | 64 | ON gnunet.* TO $USER@localhost; |
65 | SET PASSWORD FOR $USER@localhost=PASSWORD('$the_password_you_like'); | 65 | SET PASSWORD FOR $USER@localhost=PASSWORD('$the_password_you_like'); |
66 | FLUSH PRIVILEGES; | 66 | FLUSH PRIVILEGES; |
67 | * @endverbatim | 67 | @endverbatim |
68 | * 3) In the $HOME directory of $USER, create a ".my.cnf" file | 68 | * 3) In the $HOME directory of $USER, create a ".my.cnf" file |
69 | * with the following lines | 69 | * with the following lines |
70 | * @verbatim | 70 | * @verbatim |
71 | [client] | 71 | [client] |
72 | user=$USER | 72 | user=$USER |
73 | password=$the_password_you_like | 73 | password=$the_password_you_like |
74 | * @endverbatim | 74 | @endverbatim |
75 | * | 75 | * |
76 | * Thats it. Note that .my.cnf file is a security risk unless its on | 76 | * Thats it. Note that .my.cnf file is a security risk unless its on |
77 | * a safe partition etc. The $HOME/.my.cnf can of course be a symbolic | 77 | * a safe partition etc. The $HOME/.my.cnf can of course be a symbolic |
@@ -86,7 +86,7 @@ | |||
86 | * @verbatim | 86 | * @verbatim |
87 | $ mysql -u $USER -p $the_password_you_like | 87 | $ mysql -u $USER -p $the_password_you_like |
88 | mysql> use gnunet; | 88 | mysql> use gnunet; |
89 | * @endverbatim | 89 | @endverbatim |
90 | * | 90 | * |
91 | * If you get the message "Database changed" it probably works. | 91 | * If you get the message "Database changed" it probably works. |
92 | * | 92 | * |
@@ -107,7 +107,7 @@ | |||
107 | * @verbatim | 107 | * @verbatim |
108 | mysql> REPAIR TABLE gn090; | 108 | mysql> REPAIR TABLE gn090; |
109 | mysql> REPAIR TABLE gn072; | 109 | mysql> REPAIR TABLE gn072; |
110 | * @endverbatim | 110 | @endverbatim |
111 | * | 111 | * |
112 | * PROBLEMS? | 112 | * PROBLEMS? |
113 | * | 113 | * |