You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -123,7 +123,7 @@ Voila, now your Hypernode database is reachable through localhost port 3306!
123
123
124
124
Use the following command using SSH:
125
125
126
-
```nginx
126
+
```console
127
127
magerun db:dump -n -c gz -s @stripped
128
128
```
129
129
@@ -156,16 +156,16 @@ Hypernode offers several version of MySQL to be able to meet te requirements of
156
156
157
157
To upgrade your MySQL version you can use[the hypernode-systemctl tool](../tools/how-to-use-the-hypernode-systemctl-cli-tool.md#mysql) through the command line.
To create a new database, we’ll login using the MySQL client and drop the database using the command line.
166
166
167
-
```nginx
168
-
>DATABASE="new_database"
167
+
```bash
168
+
DATABASE="new_database"
169
169
mysql -e "CREATE DATABASE IF NOT EXISTS $DATABASE"
170
170
```
171
171
@@ -184,7 +184,7 @@ To prevent incorrect deletion of database that are still in use, ensure yourself
184
184
185
185
When you are 100% sure it is safe to delete the database, issue the following command:
186
186
187
-
```nginx
187
+
```bash
188
188
DATABASE="old_database"
189
189
mysql -e "DROP DATABASE $DATABASE"
190
190
```
@@ -198,7 +198,7 @@ If you truncate a database table, all records are removed but the table structur
198
198
199
199
After you ensured yourself it is safe to delete all records of the table, use the following command:
200
200
201
-
```nginx
201
+
```bash
202
202
DATABASE="magento"
203
203
TABLE="core_url_rewrite"
204
204
mysql "$DATABASE" -e "TRUNCATE TABLE $TABLE"
@@ -208,37 +208,31 @@ mysql "$DATABASE" -e "TRUNCATE TABLE $TABLE"
208
208
209
209
Login to your MySQL server via the following command:
210
210
211
-
```nginx
211
+
```console
212
212
mysql
213
213
```
214
214
215
-
This will get you into the MySQL prompt. Select the database which holds user accounts, here it’s called mysql;
215
+
This will get you into the MySQL prompt. Now change the password for a given user account using this command:
216
216
217
-
```nginx
218
-
use mysql;
219
-
```
220
-
221
-
Now change the password for a given user account using this command:
222
-
223
-
```nginx
217
+
```mysql
224
218
update user set password=PASSWORD('newpassword') where user='username';
225
219
```
226
220
227
221
Let’s assume here that your username is ‘trial’ and your new password is ‘hypernode’. Your actual command would look like this:
228
222
229
-
```nginx
223
+
```mysql
230
224
update user set password=PASSWORD('hypernode') where user='trial';
231
225
```
232
226
233
227
Now your password is changed in the database, but they haven’t filtered into memory yet. Change that by typing:
234
228
235
-
```nginx
229
+
```mysql
236
230
flush privileges;
237
231
```
238
232
239
233
Your password has been updated. There’s no need to restart the MySQL demon. Exit the MySQL with
240
234
241
-
```nginx
235
+
```mysql
242
236
exit;
243
237
```
244
238
@@ -250,7 +244,7 @@ exit;
250
244
251
245
You can upgrade the MySQL version on your Hypernode from 5.6 to 5.7 with the following command:
252
246
253
-
```nginx
247
+
```bash
254
248
hypernode-systemctl settings mysql_version 5.7
255
249
```
256
250
@@ -260,31 +254,25 @@ You can then check with `livelog` when the process has finished and your MySQL v
260
254
261
255
Login to your MySQL server via the following command
262
256
263
-
```nginx
257
+
```console
264
258
mysql
265
259
```
266
260
267
-
This will get you into the MySQL prompt. Select the database which holds user accounts, here it’s called mysql;
268
-
269
-
```nginx
270
-
use mysql;
271
-
```
272
-
273
-
Now change the password for a given user account using this command, in this case the `app` user:
261
+
This will get you into the MySQL prompt. Now change the password for a given user account using this command, in this case the `app` user:
274
262
275
-
```nginx
263
+
```mysql
276
264
update user set authentication_string=password('newpassword') where user='app';
277
265
```
278
266
279
267
Now your password is changed in the database, but they haven’t filtered into memory yet. Change that by typing:
280
268
281
-
```nginx
269
+
```mysql
282
270
flush privileges;
283
271
```
284
272
285
273
Your password has been updated. There’s no need to restart the MySQL demon. Exit the MySQL with
286
274
287
-
```nginx
275
+
```mysql
288
276
exit;
289
277
```
290
278
@@ -296,7 +284,7 @@ Remember to update your `~/.my.cnf` with your new password so you could easily l
296
284
297
285
Before you can upgrade to MySQL 8.0 you first need to upgrade the MySQL version to 5.7 and wait for this process to finish. Once You can upgrade the MySQL version on your Hypernode from 5.7 to 8.0 with the following command:
0 commit comments