Mac system xampp in MySQL command line client configuration using

Source: Internet
Author: User
Tags mysql command line phpmyadmin

In the course of PHP learning, MySQL estimates are bound to come into contact.

MySQL management believes that you will also use phpMyAdmin:


Well, phpMyAdmin is really the artifact of MySQL management, you want, he has a lot of, in the process of development, the design of the background database to help really great.

However, the protagonist in this article is not it.


MySQL Client

inside the MySQL installation package, in a folder named Bin, a lot of toolkits are placed, but the way they're used is the command line (PS: recently hooked).

On Mac systems, use the command line tool to use the system's own terminal:

Incidentally, I use the PHP+MYSQL environment is the Mac version of the Xampp,mysql Client tool is placed in the Bin folder xampp inside.

But how can you use this client?

In terminal enter the Bin folder of XAMPP, enter the command:

Mysql-u root-p

And there is no result I want, should be prompted to enter the password ah??????

In terminal feedback to me is indeed: command not found

What? Clearly in front of, how not found, this under the bitter force! Well, it seems to take some time to find out where the problem lies.

After a long, long, long time ... and so on. Time, finally ....

It turns out that when you enter a command, the system will look for the command you entered in the/usr/bin location, and if you do not bring the command to this location, no matter where you direct the CD to the tool specific location, it is a waste

Kung Fu. As long as the absolute position of the tool is introduced into the/usr/bin, all the problems are solved, as long as we execute the command:

Ln-s/applications/xampp/bin/mysql/usr/bin

At this point, we re-enter the link Database command, and then:


Well, you've succeeded, you can enter your password, and you'll be able to view your MySQL management!!!!!!!!

Related Article

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.