Install MySQL with Yum under Linux

Source: Internet
Author: User
Tags mysql client

1. InstallationSee if you've installed:          Yum list installed mysql*          RPM-QA | grep mysql*  See if there are no installation packages:          Yum list mysql*  install MySQL client:        & nbsp Yum install mysql  installation MySQL server-side:          Yum install mysql-server           Yum Install mysql-devel  www.2cto.com  2, start && stop   database character set settings           mysql config file/etc/my.cnf add default-character-set=utf8  start MySQL service:          Service mysqld start or/etc/init.d/mysqld start boot:          Chkconfig-add mysqld, view boot start Set whether successful chkconfig--list | grep mysql*           mysqld             0: Close    1: Off Closed    2: Enable    3: Enable    4: Enable    5: Enable    6: Off stop:          Service MySQLD STOP2, login   Create root administrator:          mysqladmin-u root password 123456  www.2cto.com   Login Record:          mysql-u root-p Enter the password. Forgot password:          service mysqld stop           Mysqld_safe--user=roo T--skip-grant-tables           mysql-u root           use my sql           Update user set Password=password ("New_pass") where user= "root";           flush privileges;   3, remote access   Open firewall port number MySQL Add permission: The user table in the MySQL library adds a record of host "%" and user as "root". 4. Several important contents of Linux mysql   www.2cto.com   Database directory          /var/lib/mysql/profile   & nbsp      /usr/share/mysql (mysql.server command and configuration file) commands          /usr/bin (mysqladmin Mysqldump and other commands) Start script          /etc/rc.d/init.d/(Start script file mysql directory) &nbsp

Install MySQL using yum under Linux

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.