Command Line & lt; mysql & gt; is not an internal or external command troubleshooting method, mysql external command

Source: Internet
Author: User

Command Line <mysql> is not an internal or external command troubleshooting method, mysql external command

  1. First, make sure that you have not changed the installation directory of MySQL.
    IfYou renamed or changed your pathTo change your path in the corresponding configuration file.
    Find the C: \ Windows \ my. ini file, change the path of the file you configured, and change it to the path you modified.

  2. Modify the service path.

    If your MySQL path is changed, the MySQL service cannot be started. PressWin + R key, enter services. mscCheck whether the path is correct.

  3. If the registration list is incorrectly opened,Press win + R and enter regedit to open the registration list.

    Locate: HKEY_LOCAL_MACHINE \ SYSTEM \ CurrentControlSet \ Services

  4.  If you have not modified the path, check whether the environment variable is configured.

    Right-click computer -- properties -- advanced system settings.

  5. Select the environment variable and enter your MySQL path under the path in the environment variable. Note that if your user environment variables also contain path, you should also enter it.
  6. After environment variables are configured, you may needRun as an administrator to use the MySQL database normally.Generally, this is not required.

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.