MySQL in Ubuntu7.10 can only be accessed locally by default.

Source: Internet
Author: User
You need to enable the user permission in Ubuntu7.10 and bind it to the mysql local machine. 1. Open the user permission under the command line: grantallprivilegesondrupal. * touser@192.168.1.80identifiedby 'user-password'; In the administrator interface, you can add access permissions through user management addhost-& gt; anyhost (by default, root users can only access the local machine, the newly added user can

You need to enable user permissions in Ubuntu7.10 and bind them to the mysql local machine.

1. Open the user permission under the command line: grant all privileges on drupal. * to user@192.168.1.80 identified by 'user-password ';

On the administrator interface, you can add host-> any host through user management to add access permissions (by default, root users can only access the local machine, and new users can remotely)

2. Cancel the mysql local binding:

Edit/etc/mysql/my. cnf

# Instead of skip-networking the default is now to listen only on
# Localhost which is more compatible and is not less secure.
Bind-address = 127.0.0.1

Annotate "bind-address = 127.0.0.1"

Sudo/etc/init. d/./mysql restart to remotely access.

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.