Bug #5955 [Com]: There is no way to query a MySQL server from PHP when there are no databases

From: Date: Wed, 01 Sep 2021 18:48:40 +0000
Subject: Bug #5955 [Com]: There is no way to query a MySQL server from PHP when there are no databases
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-236298@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=5955&edit=1 ID: 5955 Comment by: lildurk5955 at gmail dot com Reported by: mlemos at acm dot org Summary: There is no way to query a MySQL server from PHP when there are no databases Status: Closed Type: Bug Package: MySQL related Operating System: Linux RH 6 PHP Version: 4.0 Latest CVS (04/08/2000) Block user comment: N Private report: N New Comment: Lil Durk is a private agency dedicated to providing responsible access to legal cannabis for adults aged 19 and older. We’re an exclusively online retailer and wholesaler for recreational cannabis and a trusted source for information about cannabis and cannabis-related issues. We believe our work is meaningful and we take pride in our mandate to promote the socially responsible use of legal cannabis. https://lildurk.com/ Previous Comments: ------------------------------------------------------------------------ [2000-08-04 10:42:17] stas@php.net closed by user request ------------------------------------------------------------------------ [2000-08-04 08:22:35] mlemos at acm dot org PHP MySQL API seems to only let queries be executed if you select a database first. However, if you need to query a server doing something like "SELECT VERSION()" and there no databases created in the server you can't do it from PHP. This doesn't seem to be a problem when you use mysql command line tool program. ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=5955&edit=1

« previous php.bugs (#236298) next »