I discovered a very strange thing today. When I installed phpMyAdmin in the MAMP environment on Mac, there was no option to create a database. This is a local installation and it is not a space. How could I not have the permission to create a database? If you have questions, let’s see how to respond. Let's do it.
There are many one-click installation packages for PHP environment on the Windows platform, but only 2 were found in OS X. A XAMPP, a MAMP. The former is found to not support Zend, which I guess will cause some program incompatibility, while the latter does not have these problems. Of course, OS X also comes with its own environment, but it requires the installation of MySQL and phpMyAdmin, so I plan to create a one-click installation package.
After downloading from the official website, install the free version of MAMP. After installation, enter phpMyAdmin and find that there is no option to create a database. I searched many domestic tutorials, and their screenshots are different from mine. Google searched for foreign articles on phpmyadmin create database, but to no avail. Uninstalled and reinstalled the paid version of MAMP PRO, but the database was also not created.
Later, I accidentally found a video in which a foreigner demonstrated the steps to install MAMP on a Mac. After reading it for a few minutes, I found that the phpMyAdmin he clicked also created a database, which was strange. After careful inspection, he was using MAMP 1.9.2, and what I downloaded from the official website was the latest version of MAMP 2.2. The official only provides this version and MAMP 1.9.6.1, so I continued to search for the installation package of MAMP 1.9.2. Finally, I found a website with installation packages for all versions. I found 1.9.2 and downloaded and installed it. It was exactly the same as in the video tutorial. I clicked on phpMyAdmin and finally created the database.
I am not sure whether the MAMP 1.9.6.1 provided by the official website is also available. You can try it and give me feedback. I took a look at the basic configuration of MAMP 1.9.2. The version inside should be enough for me, so there is no need to upgrade to a very high version for the time being. I installed the latest version of WordPress, and it actually supports pseudo-static, cool!
After working on it for half the afternoon and half the night, I finally solved it. I hope it will be useful to everyone. However, I don’t know if it’s because of the PHP environment running, but my Air loses power significantly faster than before.