diff --git a/content/20240324102024 Umamiのインストール.md b/content/20240324102024 Umamiのインストール.md index bd2f06c..74e07b2 100644 --- a/content/20240324102024 Umamiのインストール.md +++ b/content/20240324102024 Umamiのインストール.md @@ -10,7 +10,7 @@ Umami用DBを作る(ユーザーがrootでいいのだろうか) ``` $ mysql -u root -p -$ Enter password: +Enter password: Welcome to the MariaDB monitor. Commands end with ; or \g. Your MariaDB connection id is 33 Server version: 10.11.6-MariaDB-0+deb12u1 Debian 12 @@ -21,16 +21,48 @@ Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. MariaDB [(none)]> CREATE DATABASE umami_db; Query OK, 1 row affected (0.001 sec) + +MariaDB [(none)]> Ctrl-C -- exit! +Aborted ``` ``` $ sudo npm install -g yarn $ git clone https://github.com/umami-software/umami.git +$ cd umami +$ npm i +``` + +20240407 最新だと `npm i` で下記エラーになる +``` +$ npm i +npm ERR! code ERESOLVE +npm ERR! ERESOLVE unable to resolve dependency tree +npm ERR! +npm ERR! While resolving: umami@2.11.0 +npm ERR! Found: @prisma/client@5.11.0 +npm ERR! node_modules/@prisma/client +npm ERR! @prisma/client@"5.11.0" from the root project +npm ERR! +npm ERR! Could not resolve dependency: +npm ERR! peer @prisma/client@"^4.8.0" from @umami/prisma-client@0.14.0 +npm ERR! node_modules/@umami/prisma-client +npm ERR! @umami/prisma-client@"^0.14.0" from the root project +npm ERR! +npm ERR! Fix the upstream dependency conflict, or retry +npm ERR! this command with --force or --legacy-peer-deps +npm ERR! to accept an incorrect (and potentially broken) dependency resolution. +npm ERR! +npm ERR! +npm ERR! For a full report see: +npm ERR! /home/kazbo/.npm/_logs/2024-04-07T07_05_54_650Z-eresolve-report.txt + +npm ERR! A complete log of this run can be found in: /home/kazbo/.npm/_logs/2024-04-07T07_05_54_650Z-debug-0.log ``` umamiのディレクトリ内で.envファイルを作成。 umami_dbは↑で作成した名前 ``` -DATABASE_URL=mysql://[username]:****@localhost:3306/umami_db +DATABASE_URL=mysql://[username]:[password]@localhost:3306/umami_db ``` ``` diff --git a/content/20240324102510 MySQL MariaDBのインストール.md b/content/20240324102510 MySQL MariaDBのインストール.md index 456aa83..1bed5e7 100644 --- a/content/20240324102510 MySQL MariaDBのインストール.md +++ b/content/20240324102510 MySQL MariaDBのインストール.md @@ -80,7 +80,21 @@ Thanks for using MariaDB! (設定は特に変更せず) ``` -$ grant all privileges on *.* to root@"%" identified by '****' with grant option; +$ sudo mysql +Welcome to the MariaDB monitor. Commands end with ; or \g. +Your MariaDB connection id is 42 +Server version: 10.11.6-MariaDB-0+deb12u1 Debian 12 + +Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others. + +Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. + +MariaDB [(none)]> grant all privileges on *.* to root@"%" identified by '****' with grant option; +Query OK, 0 rows affected (0.004 sec) + +MariaDB [(none)]> Ctrl-C -- exit! +Abortedgrant all privileges on *.* to root@"%" identified by '****' with grant option; + $ sudo systemctl restart mysql ``` # Ref.