0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Adminer の使い方

Last updated at Posted at 2024-04-30

Ubuntu 24.04 にインストールしました。

インストール

sudo apt install adminer

インストールされたファイルの確認

dpkg -L adminer

adminer.php に Web サーバーでアクセスするようにする。

前提: Web サーバーで、PHP が使えるようにしておく。

Nginx の場合

/etc/nginx/sites-available/default
(省略)
       location ~ \.php$ {
                include snippets/fastcgi-php.conf;
                fastcgi_pass unix:/run/php/php8.3-fpm.sock;
        }
(省略)
sudo systemctl restart php8.3-fpm
sudo systemctl restart nginx

Nginx で使う方法
/usr/share/adminer/adminer.php にアクセスできるようにする。

cd /var/www/html
sudo ln -s /usr/share/adminer .
sudo systemctl restart nginx

ブラウザーでアクセス

image.png

PostgreSQL に切り替える
image.png

テーブル構造の表示
image.png

データの表示
image.png

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?