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
Obviously, replace `<db_username>` by the username used in your `.env`, and similarly `<db_password>` by the password, and `<db_name>` for the database name.
@@ -73,8 +73,8 @@ Obviously, replace `<db_username>` by the username used in your `.env`, and simi
73
73
74
74
#### Step 4: Locate the duplicate
75
75
76
-
Now that we are in, let's do our first query. We could either do and equality test or as we are lazy and do not feel like
77
-
pasting 40 characters, do a `LIKE`. Do note that I am endinging the _Like-string_ with `%` to specify that this a prefix.
76
+
Now that we are in, let's do our first query. We could either do an equality test or as we are lazy and do not feel like
77
+
pasting 40 characters, do a `LIKE`. Do note that I am ending the _Like-string_ with `%` to specify that this is a prefix.
78
78
79
79
```sql
80
80
SELECT id, title, checksum, original_checksum FROM photos WHERE checksum LIKE'd48%'OR original_checksum LIKE'd48%';
@@ -102,7 +102,7 @@ SELECT id, title, checksum, original_checksum FROM photos WHERE checksum LIKE 'd
102
102
```
103
103
104
104
We now have all the pictures where the `checksum` or `original_checksum` starts with `d48`, 16 matches.
105
-
Of those only one is intersting for us, the one that matches exactly the sha1sum we computed before:
105
+
Of those only one is interesting for us, the one that matches exactly the sha1sum we computed before:
106
106
`d48a6235db35f89b0ab27c9f460824d3ad7140be`. That one is `_r5_1287` with id `9aujfSLHxurI3mYQhizwvH3A`.
107
107
108
108
Having the id of the image is not enough to locate it in the UI. We need to do a second query to figure out to which album
0 commit comments