第一个username/password应该是root和root的密码.其余的应该是新建用户的用户名和密码.
mysql --user=<username> --password=<password>
create user <username> identified by '<passpord>'
\g
create database <dbname> charater set utf8
\g
grant all privileges on <dbname>.* to <username>@localhost identified by '<password>'
\g
\q
相关文章:
-
2022-12-23
-
2022-02-27
-
2022-01-21
-
2022-02-07
-
2021-12-13
-
2021-05-29
-
2022-12-23
猜你喜欢
-
2022-12-23
-
2022-12-23
-
2021-12-09
-
2021-11-24
-
2021-05-15
-
2021-11-02
-
2021-08-23
相关资源
-
下载
2023-01-12
-
下载
2022-12-30
-
下载
2021-09-17
-
下载
2021-11-03
-
下载
2021-11-03