Linux/xampp/mysql/ Couldn't execute query. No database selected

QuestionsLinux/xampp/mysql/ Couldn't execute query. No database selected
referag asked 9 years ago

Oups !!!lol…

Warning: mysql_connect(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /opt/lampp/htdocs/rzr/phpgrid-free-v1.5.2/demos/editing/index.php on line 14

Warning: mysql_connect(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /opt/lampp/htdocs/rzr/phpgrid-free-v1.5.2/demos/editing/index.php on line 14
Couldn't execute query. No database selected – SELECT * FROM clients WHERE 1=1 LIMIT 1 OFFSET 0

<!–COMMENT

I found a topic from someone running ORACLE—> you answered that for ORACLE its a subject @premium license…and that demos are —> for @Mysql…

i think that the bug has nothing to do with license question…can you help solving?…thanks in advance

1 Answers
Abu Ghufran answered 9 years ago

If using demos app, Check your database configuration in config.php.
Most likely invalid mysql host ip is provided.

Your Answer

11 + 18 =

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?