So here is the situation. I have a database on a remote server that gives out quizzes and scores for individual students...

情况是这样的。我有一个远程服务器上的数据库,为每个学生提供测验和分数……

I also have a local database which contains the students names and their respective groups.

我还有一个本地数据库,其中包含学生姓名和他们各自的组。

What I want to do is to display the list of students per group then show the results of their scores from the remote database.. Is this possible??

我要做的是显示每个组的学生列表,然后显示远程数据库中他们的成绩。这是可能的吗? ?

Im currently running the script from my local computer using XAMMP like so mysql_connect("REMOTE SERVER ADDRESS","USERNAME", "PASSWORD") or die("Could not connect to MySQL server!");

Im当前使用XAMMP运行本地计算机的脚本,如so mysql_connect(“远程服务器地址”、“用户名”、“密码”)或die(“无法连接到MySQL服务器!”);

But all I get is Could not connect to MySql Server..

但是我得到的是无法连接到MySql服务器。

2 个解决方案

#1


3

GRANT ALL ON database.* TO user@ipaddress IDENTIFIED BY 'password';

You should force a reload of the grant tables using:

您应该使用以下方法强制重新加载授予表:

FLUSH PRIVILEGES;

更多相关文章

  1. 远程服务器CentOS7安装MySQL并用本地Navicat连接
  2. 如何将数据从MYsql服务器传输到iphone
  3. 阿里云服务器忘记mysql的登录密码时候如何修改密码
  4. MVC框架——学生信息管理系统(多表,多事务如何处理,一个用户如何共
  5. mysql数据库拷贝到另一个服务器上
  6. 阿里云服务器CentOS7.3上通过Docker安装MySQL
  7. 2、MySQL 8.0参考手册 连接到服务器并断开连接
  8. 如何启用对MySQL服务器的外部访问?
  9. 阿里云服务器MySQL远程连接问题

随机推荐

  1. python爬虫 scrapy2_初窥Scrapy
  2. 【Python】【面试必看】Python笔试题
  3. Python_常用的正则表达式处理函数
  4. Python自然语言处理学习笔记(3):1.1 语言
  5. 迭代地在python中编写XML节点
  6. selenium之 搞定checkbox、radiobox
  7. 请问在哪可以下载jpython?
  8. Python脚本——连接到SSH并运行命令
  9. python学习笔记回忆录
  10. CDays -4 可用的首个Python脚本