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

mysql not connecting #34

Closed
chrisgraham opened this issue Feb 22, 2010 · 4 comments
Closed

mysql not connecting #34

chrisgraham opened this issue Feb 22, 2010 · 4 comments

Comments

@chrisgraham
Copy link

mysql_connect is failing for me silently. I supress it's output, but I turned on the option to view supressed errors and nothing was shown.

This problem is made worse by issue 33 -- I may have a real error in my config (not sure what though!) but mysql_error cannot be used to show errors either.

@ivancso
Copy link

ivancso commented Feb 24, 2010

hi,

try ip address

that solved my problem.

regards,
ivan

@chrisgraham
Copy link
Author

I can confirm that works :).

So someone needs to implement/fix DNS lookups, and also spit out error messages on failure.

@scottmac
Copy link
Contributor

scottmac commented Mar 4, 2010

Most mysql configurations use sockets rather than tcp.

In PHP when localhost is used in the background it uses the socket value which in our case is an empty string hence the error.

Reported to internal ticket 178091 to be fixed.

@scottmac
Copy link
Contributor

Fixed now

hhvm-bot pushed a commit that referenced this issue Jan 23, 2019
Summary:
We have the following situation: `tv_env` is
```
int, #34 <: +-#23
    -#34 <: #23
```
and we want to solve for `#34`. So `#34 := #23` (the upper bound), leaving
```
int, #23 <: +-#23
```
after substitution. When we come to solve `#23`, we fail with an occurs check.

Now we shouldn't end up in this situation at all: when we solve for `#34` we should remove any lower bounds on `#23` that are the variable `#34`. This generalizes to the situation (in future) where we construct an intersection from multiple upper bounds, and is precisely analogous to the optimization already performed for unions of lower bounds by D13671163.

Reviewed By: manzyuk

Differential Revision: D13784647

fbshipit-source-id: 443bb8e0a510a19e972d8aee4b7a06a596a73577
This issue was closed.
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

3 participants