Use MySQL for the first time

Source: Internet
Author: User
Tags toad for mysql

The notes here are for the first time the people who use MySQL can get started quickly ... are very basic instructions. My environment is MySQL server installed on Ubuntu, client side on Windows 7, the most popular client software is Toad for MySQL, if there is no special reason, download this software to use it!

Take a look at how the installation is used ...

    • Installation Server

On Ubuntu, you don't need to download MySQL, just follow the instructions below, and it will download and install it from the website!

sudo Install Mysql-server

The installation process will require you to enter the root password twice, just like this ... It's a simple finish!

Under normal circumstances, the client and server will not be on the same machine, however, MySQL presets to manage server only on the machine, in order to use the Toad installed on Windows can be connected to the server, to modify the settings, as root, to open/etc/m YSQL/MY.CNF, and find bind-address This setting, change it to the following:

0.0. 0.0

This means that it is allowed to be managed from any IP connection to the server!

Next, create a user on top and set up the repository to use, and set the permissions to user so that it can use the repository.

Mysql-u root-p
Enter Password:

After you enter the command on the terminal, enter the root code, enter the management mode, and then enter the following instructions to create the repository.

CREATE DATABASE db_name;

Next, to create a user, and grant this user can use the repository that was just created.

' Steven '@'localhost'mypassword';

As above, establish a user named Steven, whose password is MyPassword, and grant the rights to use the repository as follows.

' Steven '@'localhost'mypassword';
    • Client Connect

Toad's installation is very simple, not much to explain, install the next click on the "file > New > connection", open the following screen, enter the Host, User, Password and Database, press "Connect" to connect Server (MySQL preset port is 3306).

Use MySQL for the first time

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.