Mac system xampp in MySQL command line client configuration using

Source: Internet
Author: User
Tags mysql client mysql command line phpmyadmin

In the course of PHP learning. MySQL is expected to be in touch.

MySQL management believes that you will also use phpMyAdmin:


All right. phpMyAdmin is really the artifact of MySQL management that you want. He has a lot of it, in the process of development. The design architecture for the back-end database is really very helpful.

But. In this article the protagonist is indeed not it.


Mysqlclient

mysql install package inside. In a directory named Bin, a lot of toolkits are placed, but the way they are used is the command line (PS: recent addiction).

On the Mac system. Using the command line tool, you can use the terminal that comes with your system:

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

But how can you use this client?

Enter the bin directory in the terminal to XAMPP. Enter the command:

Mysql-u root-p

There is no result that I want, should be prompt input password ah??????

In terminal feedback to me is indeed: command not found

What? Plainly is in front of, how not found. This is a bitter force!

All right. It seems to take some time to find out where the problem lies.

After a very long, very long, very long ..... Time, and finally ....

It turns out that when you enter the command time. The system will look for the command you entered in the/usr/bin location. Suppose you didn't bring the command into this position. Regardless of your direct CD to the tool detailed location call, is also in vain

Kung Fu. Simply introduce the absolute position of the tool into the/usr/bin. All the problems will be solved. Just want us to run this command:

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

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


All right. You did it. Enter password and you will be able to view the management of your MySQL!!.!!

Mac system xampp in MySQL command line client configuration using

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.