Where is the default for MySQL under Mac? In addition, how does MySQL port work?

Source: Internet
Author: User
Tags phpmyadmin

I have a vague concept of how MySQL works, and there are a few questions

    1. Why I used to php,xampp in the time of the MySQL, now with NODE,NPM again installed MySQL, finally connected to the database, connected to the same database. I guess this is because of the MySQL port, I only know it is 3306 by default. I would like to ask how many of my computer's MySQL installation directory? Where is the path?

    2. I also have access to the same MySQL path with navicat,phpmyadmin, and I wonder how it works.

    3. Mac is different from Linux in file management, for example, I can not directly refer to the Linux system solution when asking questions.

As above is some of my problems, I hope that someone can give a solution, I hope it is better to tell me, the root of these problems is where, it is best to tell me what should be read to find out which documents to understand these problems.

Reply content:

I have a vague concept of how MySQL works, and there are a few questions

    1. Why I used to php,xampp in the time of the MySQL, now with NODE,NPM again installed MySQL, finally connected to the database, connected to the same database. I guess this is because of the MySQL port, I only know it is 3306 by default. I would like to ask how many of my computer's MySQL installation directory? Where is the path?

    2. I also have access to the same MySQL path with navicat,phpmyadmin, and I wonder how it works.

    3. Mac is different from Linux in file management, for example, I can not directly refer to the Linux system solution when asking questions.

As above is some of my problems, I hope that someone can give a solution, I hope it is better to tell me, the root of these problems is where, it is best to tell me what should be read to find out which documents to understand these problems.

The root of your problem is not clear. MySQL is the application of C/s structure, you visit any of the management clients, such as Navicat, phpMyAdmin, and including your PHP and node code, are only using a MySQL client (generally, is based on Libmysql, of course, the latest version of PHP is implemented by its own mysqlnd)
The real MySQL is the default listener 3306 Port server-side program, since you are XAMPP installed, then it should be located under the/application/xampp

MAC OS X's kernel has been modified from BSD, and Linux is much the same, but OS X has a lot of customization to the directory and BSD is also different, so the Linux program for you can refer to but not completely copy, you understand the OS x directory planning is generally no problem.

  • 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.