Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a61cbb3

Browse files
committed
up
1 parent a12b18e commit a61cbb3

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

cn/docs/installation.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ docsitem: installation
3434
Linux:
3535

3636
[root@localhost ~]# useradd kbe
37-
[root@localhost ~]# passwd kbe
37+
[root@localhost ~]# passwd pwd123456
3838

3939
New UNIX password: ******
4040
Retype new UNIX password: ******
@@ -172,17 +172,17 @@ KBEngine会读取系统中设置的(KBE_ROOT, KBE_RES_PATH, KBE_BIN_PATH)环境
172172
mysql> create database kbe;
173173

174174

175-
删除匿名用户
175+
删除匿名用户(一些系统中不删除匿名用户会出现使用kbe账号用本地IP登录mysql被拒绝访问)
176176

177177
mysql> use mysql
178178
mysql> delete from user where user='';
179179
mysql> FLUSH PRIVILEGES;
180180

181181

182-
创建数据库用户,用户名和密码假设是"kbe"
182+
创建数据库用户,用户名是"kbe",密码假设是"pwd123456"
183183

184-
mysql> grant all privileges on *.* to kbe@'%' identified by 'kbe';
185-
mysql> grant select,insert,update,delete,create,drop on *.* to kbe@'%' identified by 'kbe';
184+
mysql> grant all privileges on *.* to kbe@'%' identified by 'pwd123456';
185+
mysql> grant select,insert,update,delete,create,drop on *.* to kbe@'%' identified by 'pwd123456';
186186
mysql> FLUSH PRIVILEGES;
187187

188188
在CMD中测试一下是否能使用这个账号登陆Mysql(请注意默认Mysql端口为3306, 如不一致请修改
@@ -196,10 +196,10 @@ KBEngine会读取系统中设置的(KBE_ROOT, KBE_RES_PATH, KBE_BIN_PATH)环境
196196

197197
Windows:
198198
进入你的mysql安装目录找到mysql.exe, 然后在CMD执行如下命令:
199-
C:\mysql\bin> mysql -ukbe -pkbe -hlocalhost -P3306
199+
C:\mysql\bin> mysql -ukbe -ppwd123456 -hlocalhost -P3306
200200

201201
Linux:
202-
[root@localhost ~] mysql -ukbe -pkbe -hlocalhost -P3306
202+
[root@localhost ~] mysql -ukbe -ppwd123456 -hlocalhost -P3306
203203

204204

205205
如果要修改数据库名称请修改res\server\[kbengine_defs.xml]配置中dbmgr段的databaseName参数

docs/installation.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ If you have a better understanding, you can ignore this section, the direct use
3434
Linux:
3535

3636
[root @ localhost ~] # useradd kbe
37-
[root @ localhost ~] # passwd kbe
37+
[root @ localhost ~] # passwd pwd123456
3838

3939
New UNIX password: ******
4040
Retype new UNIX password: ******
@@ -181,10 +181,10 @@ Delete anonymous user
181181
mysql> FLUSH PRIVILEGES;
182182

183183

184-
Create a database account, username and password is "kbe"
184+
Create a database account, username is "kbe" and password is "pwd123456"
185185

186-
mysql> grant all privileges on *.* to kbe@'%' identified by 'kbe';
187-
mysql> grant select,insert,update,delete,create,drop on *.* to kbe@'%' identified by 'kbe';
186+
mysql> grant all privileges on *.* to kbe@'%' identified by 'pwd123456';
187+
mysql> grant select,insert,update,delete,create,drop on *.* to kbe@'%' identified by 'pwd123456';
188188
mysql> FLUSH PRIVILEGES;
189189

190190
Test whether the CMD can use this account login mysql(Note that the default mysql port is 3306,
@@ -194,10 +194,10 @@ Create a database account, username and password is "kbe"
194194
Windows:
195195
Enter your mysql installation directory to find mysql.exe,
196196
enter the directory and then execute cmd following statement:
197-
C:\mysql\bin> mysql -ukbe -pkbe -hlocalhost -P3306
197+
C:\mysql\bin> mysql -ukbe -ppwd123456 -hlocalhost -P3306
198198

199199
Linux:
200-
[root@localhost ~] mysql -ukbe -pkbe -hlocalhost -P3306
200+
[root@localhost ~] mysql -ukbe -ppwd123456 -hlocalhost -P3306
201201

202202

203203
If you want to modify the database name, Modify the databaseName in res\server\[kbengine_defs.xml] of dbmgr section

0 commit comments

Comments
 (0)