MySQL Series b------MySQL installation

Source: Internet
Author: User

1 , initialize MySQL database (actually MySQL table, test table, infomation table)

# Cd/mysql/mysql

# scripts/mysql_install_db--user=mysql--basedir=/mysql/mysql--datadir=/data/3307

2 , copy the startup file

#cp/mysql/mysql/support-files/mysql.server/etc/init.d/mysqld

3 , change the configuration file

# CP/MYSQL/SUPPOTS-FILE/MY-DEFAULT-CNF

[Client]

port=

socket=

Prompt=\\[email protected] \\r:\\m:\\s->

# at the time of landing, distinguish the sign of landing

[Mysqld]

Basedir=

Datadir=

port=

Server-id=

Socket=/data/mysql.sock

Log-bin=/data/mysql_bin

Binlog_format=mixed/row/sql

binlog-do-db=

binlog-ignore-db=

Long_query_time=1

Relay-log=/data/relay_bin

Relay-log-info-file=/data/relay_log.info

[Mysqld_safe]

Log-error=/data/mysql_err.log

Pid-file=/data/mysql_pid.pid

4 , start MySQL

#/etc/init.d/mysqld start

This article is from the "Technical Bo" blog, please be sure to keep this source http://hostman.blog.51cto.com/6303208/1673488

MySQL Series b------MySQL installation

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.