Installation of MySQL under Linux

Source: Internet
Author: User
Tags mysql version

Linux Installation Mysqllinux Networking

IP A View network information

Modify

/etc/sysconfig/network-scripte/ifcfg-eth0

Onboot value of the file, no change to Yes

To restart the Network service:

Service network restart//or compare the original method/etc/init.d/network restart
Yum update appears trying other mirror issues
Yum Clean Metadatayum
Install MySQL

1. Uninstall MySQL First

2. Install MySQL via yum

Update Yum package Yum Check-updateyum update

3. Install MySQL

Yum install-y mysql-server MySQL mysql-devel

4. View MySQL version

Rmp-qi Mysql-server

5. Configure MySQL

1) Start MySQL

Service Mysqld Start|stop|restart|status

  2) Set Boot start

Chkconfig mysqld on

  3)First boot set root password

Mysqladmin-u root password ' root '

  4)Log in to MySQL

Mysql-u root-p

5) Modify the default character set/etc/my.cnf file add

6) Modify default storage engine/etc/my.cnf file add


Default-storage-engine=innodb

  

Note: The MYSQLD service cannot start the problem after modifying the configuration file

Viewing the log/var/log/mysql.log found a hint:

/usr/bin/mysqld:unknown variable ' Default-character-server=utf8 '

Replacing Character_set_server=utf8 with DEFAULT-CHARACTER-SET=UTF8 can solve the problem.

Installation of MySQL under Linux

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.