Mysql basic usage _ MySQL

Source: Internet
Author: User
Basic usage of mysql recently used the mysql database in the project, which has never been used before. So I found some materials to learn.

Currently, basic mysql data operations are performed using the navicat for mysql tool.

1. after navicat for mysql is installed, establish a connection.

2. import the SQL statement to be created. Right-click the database name to run the SQL file and load the SQL statement to be imported.

3. add the data. Note that if the error 1306 is displayed when the added field is added, you need to modify the symbol bit utf8 of the field to add it.

4. if you remotely connect to the mysql server, you need to authorize the client access statement in the remote server mysql.

Grant all privileges on test. * TO 'userid' @ client IP address identified by 'password with grant option;

Flush privileges; -- ip client

Run the preceding statement to Access the mysql database.

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.