MySQL authorization table in Windows and Linux

Source: Internet
Author: User
In Windows, you do not need to create a data directory or an authorization table after installing mysql. A set of pre-initialized account authorization tables exist in the MySQL database under the Data Directory. No

In Windows, you do not need to create a data directory or an authorization table after installing mysql. A set of pre-initialized account authorization tables exist in the MySQL database under the Data Directory. No

In Windows, you do not need to create a data directory or an authorization table after installing mysql. 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, the authorization table is set by mysql_install_db.

If the system is CentOS5, you only need to run # mysql_install_db -- user = mysql -- datadir =/var/lib/mysql_ndbd/

Make sure that the mysql Logon account has database directories and files so that the server can have read and write access permissions in the future.

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

,

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.