[Mac] [PhpMyAdmin] [2002] No such file or directory

Source: Internet
Author: User
Tags phpmyadmin

I downloaded the latest version from phpMyAdmin's official website, unzipped it to/library/webserver/documents, and renamed the folder phpMyAdmin.

Then enter localhost/phpmyadmin/in the browser, fill in the user name password but prompt [2002] No such file or directory.

On the internet to find a lap, it seems that the location of the mysql.sock is wrong.

First, open the terminal and find the location of Mysql.sock.

sudo Find /-name Mysql.sock

The results are as follows:

Find:/DEV/FD/3: Not a directoryfind:/dev/fd/4: Not a Directory/private/tmp/mysql.sock

Then check whether the directory/var/mysql/exists

ls -la/var/mysql

The results in my computer are as follows:

LS:/var/mysql:no such file or directory

Because it does not exist, create a new directory:

sudo mkdir /var/mysql

Next, create a symbolic link for mysql.sock, and map to the new directory.

sudo LN -s/private/tmp/mysql.sock/var/mysql/mysql.sock

I re-opened the localhost/phpmyadmin/in the browser, I can log in successfully.

[Mac] [PhpMyAdmin] [2002] No such file or directory

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.