diff options
-rw-r--r-- | src/datacache/plugin_datacache_mysql.c | 6 | ||||
-rw-r--r-- | src/datastore/plugin_datastore_mysql.c | 16 |
2 files changed, 11 insertions, 11 deletions
diff --git a/src/datacache/plugin_datacache_mysql.c b/src/datacache/plugin_datacache_mysql.c index d83d18cd6..267ea9d3d 100644 --- a/src/datacache/plugin_datacache_mysql.c +++ b/src/datacache/plugin_datacache_mysql.c | |||
@@ -39,14 +39,14 @@ | |||
39 | ON gnunet.* TO $USER@localhost; | 39 | ON gnunet.* TO $USER@localhost; |
40 | SET PASSWORD FOR $USER@localhost=PASSWORD('$the_password_you_like'); | 40 | SET PASSWORD FOR $USER@localhost=PASSWORD('$the_password_you_like'); |
41 | FLUSH PRIVILEGES; | 41 | FLUSH PRIVILEGES; |
42 | * @endverbatim | 42 | @endverbatim |
43 | * 2) In the $HOME directory of $USER, create a ".my.cnf" file | 43 | * 2) In the $HOME directory of $USER, create a ".my.cnf" file |
44 | * with the following lines | 44 | * with the following lines |
45 | * @verbatim | 45 | * @verbatim |
46 | [client] | 46 | [client] |
47 | user=$USER | 47 | user=$USER |
48 | password=$the_password_you_like | 48 | password=$the_password_you_like |
49 | * @endverbatim | 49 | @endverbatim |
50 | * | 50 | * |
51 | * Thats it -- now you can configure your datastores in GNUnet to | 51 | * Thats it -- now you can configure your datastores in GNUnet to |
52 | * use MySQL. Note that .my.cnf file is a security risk unless its on | 52 | * use MySQL. Note that .my.cnf file is a security risk unless its on |
@@ -61,7 +61,7 @@ | |||
61 | * @verbatim | 61 | * @verbatim |
62 | $ mysql -u $USER -p $the_password_you_like | 62 | $ mysql -u $USER -p $the_password_you_like |
63 | mysql> use gnunet; | 63 | mysql> use gnunet; |
64 | * @endverbatim | 64 | @endverbatim |
65 | * | 65 | * |
66 | * If you get the message "Database changed" it probably works. | 66 | * If you get the message "Database changed" it probably works. |
67 | * | 67 | * |
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 | * |