该视频仅会员有权观看
立即开通课程「Node 框架 Express 实践」权限。
- Log in to MySQL using
mysql -u root -p
and the password previously generated by OpenSSL.
- By default, the MySQL service connects locally since no host is set during login.
- Create a user with
create user
named 'xb to node operator'.
- Set the user's host as 'localhost' for local usage or '%' for no restrictions.
- Set the user's password, generated by OpenSSL, and keep it secure for future use.
- Create a database named 'xb two' with the
create database
command.
- Grant all privileges for managing the 'xb to node' database to the new user with
grant all privileges on
.
- Execute
exit
to log out of the MySQL system.