Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

登录的时候报错 用户名密码错误 #26

Closed
liuwangfa0512 opened this issue Dec 30, 2016 · 2 comments
Closed

登录的时候报错 用户名密码错误 #26

liuwangfa0512 opened this issue Dec 30, 2016 · 2 comments

Comments

@liuwangfa0512
Copy link

A PHP Error was encountered

Severity: Warning

Message: mysql_real_escape_string() expects parameter 2 to be resource, boolean given

Filename: mysql/mysql_driver.php

Line Number: 352

Backtrace:

File: /opt/bk-cmdb-master/application/models/UserModel.php
Line: 19
Function: where

File: /opt/bk-cmdb-master/application/libraries/Login.php
Line: 115
Function: getUserByUsername

File: /opt/bk-cmdb-master/application/libraries/Login.php
Line: 182
Function: isValidUserPassword

File: /opt/bk-cmdb-master/application/controllers/Account.php
Line: 91
Function: loginUser

File: /opt/bk-cmdb-master/index.php
Line: 293
Function: require_once

A PHP Error was encountered

Severity: Warning

Message: mysql_query() expects parameter 2 to be resource, boolean given

Filename: mysql/mysql_driver.php

Line Number: 251

Backtrace:

File: /opt/bk-cmdb-master/application/models/UserModel.php
Line: 20
Function: get

File: /opt/bk-cmdb-master/application/libraries/Login.php
Line: 115
Function: getUserByUsername

File: /opt/bk-cmdb-master/application/libraries/Login.php
Line: 182
Function: isValidUserPassword

File: /opt/bk-cmdb-master/application/controllers/Account.php
Line: 91
Function: loginUser

File: /opt/bk-cmdb-master/index.php
Line: 293
Function: require_once

A PHP Error was encountered

Severity: Warning

Message: mysql_num_rows() expects parameter 1 to be resource, null given

Filename: mysql/mysql_result.php

Line Number: 63

Backtrace:

File: /opt/bk-cmdb-master/application/models/UserModel.php
Line: 20
Function: get

File: /opt/bk-cmdb-master/application/libraries/Login.php
Line: 115
Function: getUserByUsername

File: /opt/bk-cmdb-master/application/libraries/Login.php
Line: 182
Function: isValidUserPassword

File: /opt/bk-cmdb-master/application/controllers/Account.php
Line: 91
Function: loginUser

File: /opt/bk-cmdb-master/index.php
Line: 293
Function: require_once

@liuwangfa0512
Copy link
Author

数据库中有数据

@owenlxu
Copy link
Contributor

owenlxu commented Dec 30, 2016

数据库的配置正确了吗

@owenlxu owenlxu closed this as completed Mar 30, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants