connect

Cannot connect to MySQL Workbench on mac. Can't connect to MySQL server on '127.0.0.1' (61) Mac Macintosh

匿名 (未验证) 提交于 2019-12-03 02:56:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Cannot connect to MySQL Workbench on mac. I get the following error: Could not connect, server may not be running. Can't connect to MySQL server on '127.0.0.1' (61) The help would be appreciated. Thank You! 回答1: Go to System preferences -> MySql and check the state of your MySql instance. 回答2: Ran into a similar issue and my problem was that MySQL installed itself configured to run on non-default port. I do not know the reason for that, but to find out which port MySQL is running on, run the following in MySql client: SHOW GLOBAL VARIABLES

How to connect Cassandra to localhost using cqlsh?

匿名 (未验证) 提交于 2019-12-03 02:56:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I set rpc_port to the public IP address, and now I can connect to Cassandra just fine from an outside server. However, I cannot connect from the Cassandra server itself, using cqlsh I am getting an error.Thar are: Connection error: Could not connect to localhost:9160 Is there a configuration, I can change to be able to connect from the server itself ? 回答1: Check the cassandra.yaml file on the line with rpc_port : normally by default = 9160 Login to the machine hosting cassandra Try cqlsh 127.0.0.1 9160 : should be ok in any case try cqlsh

Connect to an URI in postgres

匿名 (未验证) 提交于 2019-12-03 02:54:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm guessing this is a pretty basic question, but I can't figure out why: import psycopg2 psycopg2.connect("postgresql://postgres:postgres@localhost/postgres") Is giving the following error: psycopg2.OperationalError: missing "=" after "postgresql://postgres:postgres@localhost/postgres" in connection info string Any idea? According to the docs about connection strings I believe it should work, however it only does like this: psycopg2.connect("host=localhost user=postgres password=postgres dbname=postgres") I'm using the latest psycopg2

How to connect multiple Dockers to different bridges in a single host machine?

匿名 (未验证) 提交于 2019-12-03 02:52:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Is it possible to connect multiple Dockers (in my case, multiple instances of the same docker) each to different bridge in a single host machine? 3rd party solutions like pipework recommends first looking for "native" ways. Something like that: When I start 2 instance, the 1st use by default docker0 bridge, while the 2nd is instructed to use br1 (different IP range) : sudo docker run -t -i me/tester:latest /bin/bash sudo docker --bridge=br1 run -t -i me/tester:latest /bin/bash results in both having the same IP range from Doker0: root

pymssql: How to use windows authentication when running on a non-windows box

匿名 (未验证) 提交于 2019-12-03 02:52:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Is there a way for python to connect to MS SQL Server using Windows Authentication , even when not running the python app on a windows box ? I'm trying to do this with pymssql, but the examples mostly seem to assume that you're running on windows. If there is a way to make this connection using some other library, please feel free to suggest, but I do like how pymssql is simple to install and deploy via pip. I want to connect to 2005/2008 databases, and I'm running Ubuntu 13.04 (but I can upgrade to a later Ubuntu if it makes a difference)

Connect Github to secured Jenkins via HTTP Post-Commit Hook

匿名 (未验证) 提交于 2019-12-03 02:51:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: I have set up Jenkins with the Github plugin on my test server. I have secured Jenkins by only allowing authenticated users (anonymous users don't have any rights) and secure connections. Unfortunately the post-commit hook offered by Github doesn't seem to work in my case. I've tried to access the URL at https://jenkins.on.my.server/github-webhook/ manually and it gave me a "net.sf.json.JSONException: null object" error, which is fine since I didn't post any JSON along with my request. My question: I have secured Jenkins with

Confusion over session IDs using Connect

匿名 (未验证) 提交于 2019-12-03 02:51:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I've been observing session IDs over sequential requests and observed some things I cannot explain: 1) When calling req.sessionID vs. req.cookies["connect.sid"] the values are different (it appears the request.sessionID is magically returning the SID from its associated response - which seems impossible to me). From my understanding of the Connect source code, req.sessionID is synonymous with the cookie key, why the difference? 2) The first time I make a request from the node server, the browser is issued an SID (let's call this SID1). The

How to connect to MongoDB EC2 instance

匿名 (未验证) 提交于 2019-12-03 02:50:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: we have an EC2 MongoDB 2.4 instance from Amazon MarketPlace. when i try to access it from my computer using the mongo command like so: mongo xx-xx-xx-xx-xx.compute-1.amazonaws.com i get the following error Error: couldn't connect to server xx-xx-xx-xx-xx.compute-1.amazonaws.com:27017 at src/mongo/shell/mongo.js:147 exception: connect failed i can connect to the remote instance using ssh so it is reachable. the port is the default port 27017. mongod is running and working on the remote instance. any suggestions on how to fix this? 回答1: As

Typescript + React/Redux: Property “XXX” does not exist on type 'IntrinsicAttributes & IntrinsicClassAttributes

匿名 (未验证) 提交于 2019-12-03 02:50:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm working on a project with Typescript, React and Redux (all running in Electron), and I've run into a problem when I'm including one class based component in another and trying to pass parameters between them. Loosely speaking, I've got the following structure for the container component: class ContainerComponent extends React.Component<any,any> { .. render() { const { propToPass } = this.props; ... <ChildComponent propToPass={propToPass} /> ... } } .... export default connect(mapStateToProps, mapDispatchToProps)(ContainerComponent); And

OpenSSL errno 10054,connection refused, whilst trying to connect to our server

匿名 (未验证) 提交于 2019-12-03 02:50:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: We are running a git server over https and didn't have any trouble connecting because we all used visual studio to do so. Now someone wants to use the standard git bash and it fails to connect with the following error output. fatal: unable to access 'https://server/Repo.git/': Unknown SSL protocol error in connection to server:443 I tried some different ciphersuites, nothing worked. Then it came to me that it might be that git doesn't support ECDSA certificates yet. So I exchanged the ECDSA certificate for one with RSA. That also didn't work