MySQL Database installation and configuration

Source: Internet
Author: User

1. (Access Account rights Control) dql-query (SELECT) dml-(insert update Delete) ddl-(CREATE table CREATE VIEW) dcl-(Grant)

2. (Access address permission control) sudo yum-y in

3. Installing Mysql:sudo yum-y Install Mysql-server, open/etc/my.cnf join: Default-character-set = UTF8

4. Set up MySQL with system autostart: sudo chkconfig mysqld on and then check under: sudo chkconfig--list mysqld if 2~5 are on for success

5. Start Mysql:sudo service mysqld start

Starting mysqld: [OK]

Startup success

6. User Login under: mysql-u root (the first login does not require a password not added-p)

7. View users: Select User,host from Mysql.user;

8. Firewall open 3306 interface, MySQL use; Restart firewall: sudo service iptables restart

9. Unable to see MYSQL.USR table after initializing MySQL database solution: Reset Password

******

MySQL common command: Service mysqld restart- Restart

MySQL Database installation and configuration

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.