After opening mysql5.6 for the first time

Source: Internet
Author: User

How do I use it when I open mysql5.6 for the first time? Anonymous | browse 6,963 times recommended for 2016-01-04 12:20:26Best Answer

One, MySQL is through DOS command mode operation, so need to let DOS can find related commands, need to do a configuration, first we need to specify the MySQL service startup files, Use the Mysqld.exe command under the bin package to find this command either through the environment variable configuration, or by adding the following configuration in the My-default.ini file:

[Winmysqladmin]

# Specify the files that the MySQL service starts to start

Server=d:/yan_package/mysql-5.6.23-win32/bin/mysqld.exe

The parameters of the above diagram are explained in the following directions:

Basedir: Setting up the MySQL installation directory

DataDir: Setting the data storage directory for the MySQL database

Port: Port number

Server_id:server-id values are similar to IP addresses: These ID values uniquely identify each server instance in the replication server cluster, and if you set up a master-slave server, each server must have a unique Server-id value and not the same.

You can also set the MySQL server's character set in the configuration file DEFAULT-CHARACTER-SET=GBK

Second, My-default.ini file modified, enter the DOS command to install the MySQL service

Third, start the MySQL service

Four, in the MySQL console under the root user login, the default root user does not have a password, directly press ENTER.

After successful login, you can see which databases are available.

Add:

Stop MySQL service with net stop MySQL

Remove MySQL service with Mysqld-remove

After first opening mysql5.6

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.