Server MySQL Authorized connection user

Source: Internet
Author: User

The following is the entire process of creating a write to delete, to a drop:

1: Create a database

Create Database it1110;

2: Enter this database

Use it1110;

3: Create a data table

Create Table Teac (

Id int,

Name varchar (30)

);

4: Write Information

Insert into TEAC values (1, ' Jack ');

5: Query Information

Select * from TEAC;

6: Modify Information

Update Teac set name= ' Rose ';

Select * from TEAC;

7: Delete information from table

Delete from Teac;

Select * from TEAC;

8: Delete Table

Drop table Teac; -DDL

9 Deleting a database

Use MySQL;

Drop database it1110;

13.7.3, Data Control language (create a user in this machine and authorize him)

dcl– authorized.

What permissions does Grant set .........

Invoke Revoke Authorization

Grant all on *. WJ ' @ '% ' with GRANT option;

Grant All On * *--Set all resources

To-give

' WJ ' @ '% '--WJ can be logged on on all machines

With--at the same time

Grant option; -WJ This user can also delegate permissions to others

Create a user file login password is 1234

granting permissions

Take a look

Modifications will be used on all machines Chen can log in to the specified IP address of the machine

View inside information

Delete haha this line of information

on other computers that access the server MySQL

Open cmd input:-uchen–p1234–h192.168.1.100

Remote operation is possible after login is successful.

Server MySQL Authorized connection user

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.