Welcome to the nuBuilder Forums!

Register and log in to access exclusive forums and content available only to registered users.

PHP Error: MYSQL_ATTR_INIT_COMMAND

Questions related to using nuBuilder Forte.
Locked
nobicycle
Posts: 2
Joined: Fri Oct 19, 2018 7:52 pm

PHP Error: MYSQL_ATTR_INIT_COMMAND

Unread post by nobicycle »

Hi, under the following environment:

Linux tower 4.14.74-1-MANJARO #1 SMP PREEMPT Fri Oct 5 14:16:52 UTC 2018 x86_64 GNU/Linux
PHP 7.2.10 (cli) (built: Sep 11 2018 08:51:16) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies
with Zend OPcache v7.2.10, Copyright (c) 1999-2018, by Zend Technologies
mysql Ver 15.1 Distrib 10.1.36-MariaDB, for Linux (x86_64) using readline 5.1

I get the following in the nginx error log:
2018/10/20 01:44:40 [error] 2787#2787: *5 FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught Error: Undefined class constant 'MYSQL_ATTR_INIT_COMMAND' in /srv/http/nuBuilder/nudatabase.php:13
Stack trace:
#0 /srv/http/nuBuilder/nuchoosesetup.php(35): require_once()
#1 /srv/http/nuBuilder/index.php(6): require_once('/srv/http/nuBui...')
#2 {main}
thrown in /srv/http/nuBuilder/nudatabase.php on line 13" while reading response header from upstream, client: 127.0.0.1, server: nubuild.localdomain, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/run/php-fpm/php-fpm.sock:", host: "nubuild.localdomain"
Any ideas welcome. Software perhaps too bleeding edge?
admin
Site Admin
Posts: 2815
Joined: Mon Jun 15, 2009 2:23 am
Been thanked: 25 times

Re: PHP Error: MYSQL_ATTR_INIT_COMMAND

Unread post by admin »

nobicycle,

I found this - it might help.

https://stackoverflow.com/questions/242 ... d-with-pdo


Steven
nobicycle
Posts: 2
Joined: Fri Oct 19, 2018 7:52 pm

Re: PHP Error: MYSQL_ATTR_INIT_COMMAND

Unread post by nobicycle »

Thanks

I enabled the mysql pdo driver in php and the error disappeared. Now the app works.

I have yet to drive the app, but it looks great. Thank you.
admin
Site Admin
Posts: 2815
Joined: Mon Jun 15, 2009 2:23 am
Been thanked: 25 times

Re: PHP Error: MYSQL_ATTR_INIT_COMMAND

Unread post by admin »

.
Locked