我有一个问题,试图连接到位于192.168.1.152的mysql数据库服务器使用这个;
In our DNS server;
mysql.domain.local = 192.168.1.152
kyle.domain.local = 192.168.1.153
Doing this command from the 192.168.1.153 system
mysql -h 192.168.1.152 -D mydb -u dbuser -p******
mysql -h mysql.domain.local -D mydb -u dbuser -p******
当我运行这些命令时,这两
我已经创建了数据库和用户,并将所有权限都给了user.When我给了IP,因为数据库host.It会将以下errors.Giving主机名显示为本地主机,它会工作得很好。
我正在使用phpmyadmin 3.3.2...
错误消息如下所示。
无法连接到您的MySQL数据库服务器。MySQL报告以下消息: Can't connect to MySQL server on '192.168.85.10‘(111)
我正试图主持一个网站,其中一个内置的wordpress。我在服务器上创建了数据库,并更改了wp文件中的凭据。但这让我在告诉"Error establishing a database connection"时出错了。
以下是详细信息:
<pre>
/** The name of the database for WordPress */
define('DB_NAME', 'abcwordpress');
/** MySQL database username */
define('DB_USER',
我在做一个小聊天程序。我想用c#从mysql数据库中获取数据。但是我一直收到一个错误。
An unhandled exception of type 'MySql.Data.MySqlClient.MySqlException' occurred in MySql.Data.dll
Additional information: Unable to connect to any of the specified MySQL hosts.
我试过这个:
string MyConString = "SERVER=localhost;" +
因此,我在Namecheap服务器上托管了一个PHP文件。
$db=mysql_connect ("ipaddress", "user", "pass") or die ('I cannot connect to the database because: ' . mysql_error());
它给出了这个错误:
我无法连接到数据库,因为:无法连接到'ipaddress‘上的MySQL服务器(110)
我可以在网络之外使用mysql工作台连接到这个数据库。
我在谷歌爸爸开了个db。我已经备份了我的MySQL 5.0数据库。我删除了数据库。我已经创建了一个新的数据库,它使用MySQL 5.5,与以前使用的密码相同。
现在我无法连接,并收到以下错误消息:
Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
我无法连接到由主机提供商保存的MySQL数据库。
我已经在cPanel中正确设置了帐户,以便在从php服务器运行php代码时能够连接到数据库。
但是现在我想通过Mac上的数据库工具而不是phpmyadmin来访问它。我添加了我的IP ( IP和DNS名称.)到cPanel中的“远程数据库访问主机”。我已经尝试从PHP和直接连接。我总是得到:
MySQL Said: Can't connect to MySQL server on 'xxx.xxx.xxx.xxx' (4)
Use the following configuration settings for con
我在另一台计算机上有一个MySQL数据库,我希望能够从其他计算机(即使是不同网络上的计算机)进行连接。我做了以下工作
MySQL
CREATE USER 'username_here'@'%' IDENTIFIED BY 'password_here';
然后
GRANT ALL PRIVILEGES ON *.* TO 'username_here'@'%';
FLUSH PRIVILEGES;
我还在my.ini文件中注释掉了bind-address (我有windows)
然后,在Java应用程序(它利用My
我在Docker上运行了一个项目,我能够通过终端连接到数据库:
mysql -h localhost -P 33060 --protocol=tcp -u 'notmyrealusername' -p
这很好,我可以从数据库中显示这些表。
但是,当试图通过SequelPro进行连接时,我会得到以下错误:
Unable to connect to host 127.0.0.1, or the request timed out.
Be sure that the address is correct and that you have the necessary privil
主机A正在运行mysql服务器。在A上,我可以连接到数据库:
hostA: mysql -p
我已经允许用户X从主机B连接。我可以通过以下方式连接起来:
hostB: mysql -h A --protocol=TCP -p -u X
但是,我无法通过TCP从A连接到A:
hostA: mysql -h 127.0.0.1 --protocol=tcp -p
上面写着:
ERROR 2003 (HY000): Can't connect to MySQL server on '127.0.0.1' (111)
我试过以下地址:
localhost, 127.0.0.1,
有一个我似乎找不到答案的问题。我正在尝试连接到一个远程数据库。我在shell中输入以下内容:
mysql -u test -h host.name.com -p
mysql询问我的密码,然后输出以下内容:
ERROR 2005 (HY000):未知MySQL服务器主机'host.name.com‘(1)
但是当我尝试使用那个主机名的ip地址时
mysql -u test -h xxx.xxx.xxx.xx -p
它工作得很好
我有两个码头容器,它们都包含mysql数据库,我为每个端口打开了端口3305,3306。
对于3306:3306的容器,我可以通过
from sqlalchemy import create_engine
from sqlalchemy.orm import sessionmaker
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy import Column, Integer, Numeric, String
import os
cwd = os.getcwd()
import sys
sy
我是新来格拉法纳的。Im希望将grafana中的mysql配置为数据源。但是我的数据库不是本地数据库,它是mysql中的云数据库。我该如何配置呢?因为我正在尝试配置它,比如"db query error: failed to connect to server - please inspect Grafana server log for details"
有人知道怎么改变吗?或者如何在grafana (不是本地数据库)中配置mysql数据库。请帮帮忙。谢谢
几个客户机盒改变了他们的IP,现在这些机器不能访问数据库。在最好的情况下,连接是打开和关闭的(大多数情况下是关闭的)。没有改变其IP的其他机器可以很好地访问db。顺便说一下,我已经从网络方面进行了故障排除,没有发现任何问题。我被告知/听说mysql数据库维护某种ip主机名表/查找表?这就是问题所在吗。如何解决这个问题?
MySql.Data.MySqlClient.MySqlException: Reading from the stream has failed. ---> System.IO.IOException: Unable to read data from the tran