Skip to content
项目

关于

One command to install or update phpMyAdmin in Laravel Herd (macOS) or Homestead. Verifies the download and keeps your config.

网站与应用开发

这些数字如何统计

实测星标增长

24小时
0
7天
0
15天
-1
1个月
更新延迟

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

README.md

原文

About

Shell script that installs or updates phpMyAdmin in a Laravel Herd parked folder on macOS, or on a Laravel Homestead box.

It checks the download against phpMyAdmin's published checksum, leaves an existing install alone when a download fails, and updates phpMyAdmin when you run it again (your config.inc.php is kept).

Usage

Herd (macOS)

  1. cd to a folder that Herd serves (a parked path, by default ~/Herd)

  2. curl -fsS https://raw.githubusercontent.com/grrnikos/pma/master/pma.sh | bash

  3. Go to http://phpmyadmin.test and log in with your MySQL user, for example root with an empty password on DBngin or Herd Pro. phpMyAdmin connects to 127.0.0.1 on port 3306; for another port, add $cfg['Servers'][1]['port'] = '3307'; to phpmyadmin/config.inc.php

Homestead

Laravel Homestead is archived and no longer maintained. For new setups, Laravel suggests Herd.

  1. SSH into your Homestead box: vagrant ssh from your Homestead directory

  2. cd to your code/projects directory (by default ~/code)

  3. curl -fsS https://raw.githubusercontent.com/grrnikos/pma/master/pma.sh | bash

  4. Open the /etc/hosts file on your main machine and add your box's IP, by default 192.168.56.56 phpmyadmin.test

  5. Go to http://phpmyadmin.test. Default credentials are username homestead and password secret

Updating

Run the curl step again in the same folder.

Other setups

These don't need the script:

  • Sail: add a service to your compose.yaml, then sail up -d and go to http://localhost:8080

    phpmyadmin:
        image: 'phpmyadmin:latest'
        ports:
            - '${FORWARD_PMA_PORT:-8080}:80'
        environment:
            PMA_HOST: mysql
        networks:
            - sail
        depends_on:
            - mysql
    
  • Docker: docker run --name phpmyadmin -d -e PMA_HOST=host.docker.internal -p 8080:80 phpmyadmin:latest (image docs)

  • DDEV: ddev add-on get ddev/ddev-phpmyadmin && ddev restart (add-on docs)

License

The MIT License (MIT). Please see License File for more information.

探索相关项目

加载中…