Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #268534

Re: Debian 11 PHP 7.4 – Mysql 8 - Can’t get Mysqli_connect to work

From Bernard <bdebreil@free.fr>
Newsgroups linux.debian.user
Subject Re: Debian 11 PHP 7.4 – Mysql 8 - Can’t get Mysqli_connect to work
Date 2024-03-26 11:10 +0100
Message-ID <ImbUJ-1MSV-1@gated-at.bofh.it> (permalink)
References <IlBex-1pmd-7@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

I have progressed a little in my trials.

mysqli.so still shows the previously described problems, and I thought 
that this was responsible of the fact that mysqli functions were 
apparently discarded in the test programs I wrote.

I discovered that this was due to errors I made in the php program. The 
errors in the script being corrected, mysqli_connect, mysqli_select_db, 
mysqli_query... now do operate... despite the errors concerning 
mysqli.so that I discovered when running the tests which are proposed by 
'baeldung.com'

"

|$ php -m | grep mysqli|

"If the MySQLi extension is enabled, we’ll see /mysqli/ in the output. 
Otherwise, the output will be empty."

php -m grep mysqli

PHP Warning:  PHP Startup: Unable to load dynamic library 
'//usr/lib/php/20190902/mysqli.so' (tried: 
//usr/lib/php/20190902/mysqli.so (//usr/lib/php/20190902/mysqli.so: 
undefined symbol: mysqlnd_global_stats), 
/usr/lib/php/20190902///usr/lib/php/20190902/mysqli.so.so 
(/usr/lib/php/20190902///usr/lib/php/20190902/mysqli.so.so: cannot open 
shared object file: No such file or directory)) in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'mysqli' 
(tried: /usr/lib/php/20190902/mysqli (/usr/lib/php/20190902/mysqli: 
cannot open shared object file: No such file or directory), 
/usr/lib/php/20190902/mysqli.so (/usr/lib/php/20190902/mysqli.so: 
undefined symbol: mysqlnd_global_stats)) in Unknown on line 0
mysqli

"

On 24/03/2024 19:51, Bernard wrote:
>
> Hi to Everyone !
>
> *PHP Warning: PHP Startup: Unable to load dynamic library 
> '//usr/lib/php/20190902/mysqli.so' * *However, the file is there... 
> not human readable as expected* *and mysqli_connect doesn't operate.*
>
> *Thanks in advance for your help*
> *Bernard*
>

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Debian 11 PHP 7.4 – Mysql 8 - Can’t get Mysqli_connect to work Bernard <bdebreil@free.fr> - 2024-03-24 20:00 +0100
  Re: Debian 11 PHP 7.4 – Mysql 8 - Can’t get Mysqli_connect to work Marco Moock <mm@dorfdsl.de> - 2024-03-24 20:10 +0100
    Re: Debian 11 PHP 7.4 – Mysql 8 - Can’t get Mysqli_connect to work Bernard <bdebreil@free.fr> - 2024-03-26 10:40 +0100
      Re: Debian 11 PHP 7.4 – Mysql 8 - Can’t get Mysqli_connect to work Marco Moock <mm@dorfdsl.de> - 2024-03-26 15:10 +0100
        Re: Debian 11 PHP 7.4 – Mysql 8 - Can’t get Mysqli_connect to work Jeffrey Walton <noloader@gmail.com> - 2024-03-26 18:30 +0100
  Re: Debian 11 PHP 7.4 – Mysql 8 - Can’t get Mysqli_connect to work Geert Stappers <stappers@stappers.nl> - 2024-03-24 21:30 +0100
  Re: Debian 11 PHP 7.4 – Mysql 8 - Can’t get Mysqli_connect to work Jeffrey Walton <noloader@gmail.com> - 2024-03-24 23:10 +0100
    Re: Debian 11 PHP 7.4 – Mysql 8 - Can’t get Mysqli_connect to work Bernard <bdebreil@free.fr> - 2024-03-26 10:40 +0100
      Re: Debian 11 PHP 7.4 – Mysql 8 - Can’t get Mysqli_connect to work Bernard <bdebreil@free.fr> - 2024-03-28 10:40 +0100
        Re: Debian 11 PHP 7.4 – Mysql 8 - Can’t get Mysqli_connect to work Greg Wooledge <greg@wooledge.org> - 2024-03-28 12:10 +0100
      Re: Debian 11 PHP 7.4 – Mysql 8 - Can’t get Mysqli_connect to work Bernard <bdebreil@free.fr> - 2024-03-29 11:50 +0100
        Re: Debian 11 PHP 7.4 – Mysql 8 - Can’t get Mysqli_connect to work Greg Wooledge <greg@wooledge.org> - 2024-03-29 12:10 +0100
  Re: Debian 11 PHP 7.4 – Mysql 8 - Can’t get Mysqli_connect to work Bernard <bdebreil@free.fr> - 2024-03-26 11:10 +0100
    Re: Debian 11 PHP 7.4 – Mysql 8 - Can’t get Mysqli_connect to work Cindy Sue Causey <butterflybytes@gmail.com> - 2024-03-26 14:50 +0100
      Re: Debian 11 PHP 7.4 – Mysql 8 - Can’t get Mysqli_connect to work David Wright <deblis@lionunicorn.co.uk> - 2024-03-26 17:00 +0100

csiph-web