MySQL initialization configuration and command line options

Source: Internet
Author: User

To find the order and parameters of the configuration file:

/usr/bin/mysql--help--verborse View:

Default options is read from the following files in the given order:/etc/mysql/my.cnf/etc/my.cnf ~/.my.cnf

Set Password:

Start service: Systemctl start mariadb

Connection server: MySQL

Select MySQL table: use MySQL;

Delete no user entries:

Drop user ' @ ' localhost ';

Drop user ' @ ' www.centos.pig ';

Set Password: Update user set Passeord=password (' Your_password ') where user= ' root ';

Let the server reread: Flush privileges;

MySQL initialization configuration and command line options

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.