Книги автора: Fedora™ Unleashed, 2008 edition
/ Книги автора: Fedora™ Unleashed, 2008 edition
/ honorato bonafe
Книга: Fedora™ Unleashed, 2008 edition
Setting a Password for the MySQL Root User
Setting a Password for the MySQL Root User
To set a password for the root MySQL user, you need to connect to the MySQL server as the root MySQL user; you can use the command mysql -u root
to do so. This command connects you to the server with the MySQL client. When you have the MySQL command prompt, issue a command like the following to set a password for the root user:
mysql> SET PASSWORD FOR root = PASSWORD("secretword");
should be replaced by whatever you want to be the password for the root user. You can use this same command with other usernames to set or change passwords for other database users.
secretword
After you enter a password, you can exit the MySQL client by typing exit
at the command prompt.
Похожие страницы
- Forced writes - палка о двух концах
- Forced Writes
- 4.4.4 The Dispatcher
- About the author
- Chapter 7. The state machine
- Chapter 15. Graphical User Interfaces for Iptables
- Appendix E. Other resources and links
- What NAT is used for and basic terms and expressions
- Example NAT machine in theory
- Information request
- SCTP Generic header format
- The final stage of our NAT machine