MySQL adds remote connection permissions to users

Source: Internet
Author: User

  1. Log in to your MySQL first
    Mysql-uroot-p

  2. The following message appears after successful login
    Welcome to the MySQL Monitor. Commands End With; or \g.your MySQL connectionIDIs8Server Version:5.1. the-Log Source distributioncopyright (c) -, -, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or Itsaffiliates. Other names trademarks of their respectiveowners. Type'Help ;'Or'\h'  forHelp. Type'\c'ToClearThe current input statement.mysql>
    And then enter
    ' Root '@'%'password ' with GRANT OPTION;

    Root can be changed to you to add remote access rights of the user,% for any IP, you also changed to fixed IP, then your user can only that IP login, as for password is remote login password!!

  3. OK, test it, open up your GUI tools, for example Navicat.

MySQL adds remote connection permissions to users

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.