我正在尝试通过图形api浏览器中的id来获取一些用户详细信息。我知道我不能通过用户名进行搜索,所以我使用找到了id,当我将该id粘贴到graph api中时,它会返回错误消息
"error": {
"message": "Unsupported get request. Object with ID '*********' does not exist, cannot be loaded due to missing permissions, or does not support this operation. Please r
因此,我正在尝试创建一个没有root访问权限的数据库/用户。这要么是不可能的--要么是我做错了什么。
有什么建议吗?遗漏了一步?
这是我现在的代码:
include("xmlapi.php");
$xmlapi = new xmlapi($db_host);
$xmlapi->password_auth("".$cpaneluser."","".$cpanelpass."");
$xmlapi->set_debug(1);//output actions in the error
我刚刚第一次安装了mysql,并使用create database foo创建了一个数据库;我想我已经找到了mysql存储数据库的位置(/var/lib/mysql)。当我尝试cd到foo目录时,权限被拒绝。当我尝试使用sudo时,什么也没有发生。
ls -l的输出
-rw-rw----. 1 mysql mysql 16384 Feb 21 17:44 aria_log.00000001
-rw-rw----. 1 mysql mysql 52 Feb 21 17:44 aria_log_control
drwx------. 2 mysql mysql 4096
当我使用post man从我的API获得响应时,我会得到这个错误。
java.sql.SQLSyntaxErrorException: SELECT command denied to user '<userid>'@'<my-pc-ip-address>' for table '<table-name>'
at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:120) ~[mysql-connector