I can not connect to my MySQL database (not localhost).

QuestionsI can not connect to my MySQL database (not localhost).
Anton asked 5 years ago

I can not connect to my MySQL database (not localhost). I get the message: “Checking if connection is valid: Database not connected, Kindly check database configuration.”
I can’t understand what’s the matter. After all, using the mysql or Workbench utility, I can connect to my database without problems.

9 Answers
Abu Ghufran Staff answered 5 years ago

Hello,

You can setup demos manually using this process. It is equivalent to this installer.

http://www.phpgrid.org/docs/setup/#installing-demos-manually

_________________________
Abu Ghufran - Dev Team
Grid 4 PHP Framework
 
Anton answered 5 years ago

When i try Execute \”database.sql\” on a Mysql Database, I get a message from Workbench at row 218: \”Error Code: 3814. An expression of a check constraint \’ck_birthdate\’ contains disallowed function:` getdate`.

Abu Ghufran Staff answered 5 years ago

Emailed you latest.

_________________________
Abu Ghufran - Dev Team
Grid 4 PHP Framework
 
Anton answered 5 years ago

Thank you very much! That helped!
But now when I try to start, I get the message:
“Please check your database connection configuration. Server sent charset unknown to the client. Please, report to the developers”

Abu Ghufran Staff answered 5 years ago

I think this error is related to mysql configuration. Refer this soluton from stackoverflow:

https://stackoverflow.com/a/54058742/385377

 

_________________________
Abu Ghufran - Dev Team
Grid 4 PHP Framework
 
Anton answered 5 years ago

Did as indicated by link. As a result, when querying \”mysql> status\” I get the output:

  • Server characterset: utf8mb4
  • Db characterset: utf8mb4
  • Client characterset: utf8
  • Conn. characterset: utf8

But nothing changes. What values should be for the normal operation of PHP Grid?

Abu Ghufran Staff answered 5 years ago

These values seems to be correct. What server configuration are you using. OS, PHP Version, Mysql Version, Environment (xamp,wamp etc).

I’ve sent an invitation on google hangouts. If you discuss there and tell you working hours, it will speed up the ticket.

_________________________
Abu Ghufran - Dev Team
Grid 4 PHP Framework
 
Anton answered 5 years ago

Reply from my hosting provider:
Operating System: CentOS6;
Web server: Nginx and Apache HTTP Server Version 2.2;
PHP 5.1-7.3 in FastCGI mode.
The database is on another server. And I have access to it through mysql:


mysql> status
————–
mysql Ver 14.14 Distrib 5.7.27, for Linux (x86_64) using EditLine wrapper

Connection id: 50
Current database:
Current user: [email protected]
SSL: Cipher in use is DHE-RSA-AES256-SHA
Current pager: stdout
Using outfile: ”
Using delimiter: ;
Server version: 8.0.17 MySQL Community Server – GPL
Protocol version: 10
Connection: x.x.x.x via TCP/IP
Server characterset: utf8mb4
Db characterset: utf8mb4
Client characterset: utf8
Conn. characterset: utf8
 

Also answered you in hangouts

Anton answered 5 years ago

The problem is resolved. Chose a later version of php on hosting.

Your Answer

19 + 19 =

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?