Home> Database> phpMyAdmin> body text

Detailed explanation of how to download and configure PHPMyAdmin in MAC

藏色散人
Release: 2023-02-01 11:01:16
forward
2356 people have browsed it

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
Copy after login

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!

Related labels:
source:csdn.net
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!