Home >Database >phpMyAdmin >Detailed explanation of how to download and configure PHPMyAdmin in MAC

Detailed explanation of how to download and configure PHPMyAdmin in MAC

藏色散人
藏色散人forward
2023-02-01 11:01:162532browse

This article brings you relevant knowledge about PHPMyAdmin, which mainly introduces how to configure PHPMyAdmin under MAC. Let’s take a look at it together. I hope it will be helpful to everyone.

##I recently needed to use MySQL and used the client management tool—

PHPMyAdmin

1. Configuring Apache

In Mac OS, the PHP apache environment comes with it. There is no need to download the installation package separately, just simply configure it.

  • First open the terminal and enter the command: sudo vim /etc/apache2/httpd.conf

    After opening the file, find the following two lines, # LoadModule php5_module libexec/apache2/libphp5.so and # Remove the comments on ServerName and change ServerName to ServerName localhost

    Detailed explanation of how to download and configure PHPMyAdmin in MAC
    Detailed explanation of how to download and configure PHPMyAdmin in MAC

  • and then restart apache. The command is as follows: sudo apachectl restart

After manually opening the apache service, enter localhost in the browser


Detailed explanation of how to download and configure PHPMyAdmin in MAC
## 2. Configure PHPMyAdmin

1. Download PHPMyAdmin :

//m.sbmmt.com/link/a7da12778cb1cfb4b4ae833ea9a0e849

The latest version of 5.0.2 was not downloaded, but 4.9.5 was downloaded


2 . Store and unzip the downloaded file in the directory: /Library/WebServer/Documents/phpmyadminDetailed explanation of how to download and configure PHPMyAdmin in MAC

Command line, enter this directory

3. Run the following command :Detailed explanation of how to download and configure PHPMyAdmin in MAC

cp config.sample.inc.php config.inc.php
 vim config.inc.php

Save settingsDetailed explanation of how to download and configure PHPMyAdmin in MAC

4. Enter the url in the browser: http://localhost/phpmyadmin/

Visit



Detailed explanation of how to download and configure PHPMyAdmin in MAC

Recommended study: "PHPmyadmin Tutorial

"

The above is the detailed content of Detailed explanation of how to download and configure PHPMyAdmin in MAC. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:csdn.net. If there is any infringement, please contact admin@php.cn delete