MySQL installation and use under Redhat

Source: Internet
Author: User

1. Installation
(1) See if the installation
        Yum List installed mysql*
(2) View existing installation packages
        Yum List mysql*
(3) Install MySQL server side
        Yum Install Mysql-dev
        Yum Install Mysql-server
(4) Installing the MySQL client (optional)
        Yum install MySQL
2. Configuration
(1) Set default character and engine
        Vim/etc/my.cnf
        Add under [mysqld]
        Default-character-set=utf8
        Default-storage-engine=innodb
 
  
 
 
3. Start and close
(1) Start and close
        /etc/init.d/mysqld start
        /etc/init.d/mysqld stop
(2) boot up
        
        /sbin/chkconfig Add mysqld
        /sbin/chkconfig mysqld on
 
  
 
  
 
  
        
 
 
4. Open Remote Connection
(1) You want MyUser to use MyPassword to connect to the MySQL server from any host:

GRANT all privileges on * * to ' myuser ' @ ' percent ' identified by ' MyPassword ' with GRANT OPTION;

FLUSH privileges;

        
 
 
5. Reference
 (1) Install MySQL using yum under Linux 
 (2) to set the MySQL boot auto-start method 
 (3) Error: 1130-host ... is not allowed 
 To connect to this MySQL server open MySQL remote connection does not use localhost 
 
 
 
 
 
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.