demo looking for localhost on remote server

Questionsdemo looking for localhost on remote server
Oonce asked 10 years ago

Couldn't execute query. Can't connect to MySQL server on 'localhost' (10061) – SELECT * FROM clients WHERE 1=1 LIMIT 1 OFFSET 0

Anyone know why this is happening? Db connection strings are ok. Runs fine locally. Somewhere in the code it is looking for localhost, but where?

2 Answers
Oonce answered 10 years ago

problem with preg_replace()i think – how fix?

Abu Ghufran answered 10 years ago

Make sure you are editing same file. The localhost is only specified in grid code file and not inside any library code.

Your Answer

19 + 1 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.



How useful was this discussion?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?