Mysql authorization table in windows and Linux

Source: Internet
Author: User


The mysql authorization table in windows and Linux is in Windows. After mysql is installed, you do not need to create a data directory and authorization table. A set of pre-initialized account authorization tables exist in the MySQL database under the Data Directory. Do not run the mysql_install_db script used in Unix. After installing MySQL on Unix, You need to initialize the authorization table, start the server, and ensure that the server works properly. Specify a password for the account in the authorization table. In Unix, www.2cto.com sets the authorization table by mysql_install_db. If the system is CentOS5, you only need to run # mysql_install_db -- user = mysql -- datadir =/var/lib/mysql_ndbd/to ensure that the mysql Logon account has the database directory and files, this allows the server to have read and write access permissions. Of course, you can also log on with mysqld_safe -- user = mysql -- skip-grant-tables & skip the authorization table, log on to it and re-grant permissions, and update the permission table: flush privileges
 

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.