Opened 9 months ago

Closed 9 months ago

Last modified 9 months ago

#1951 closed Bug/Fehler (fixed)

installer erkennt mysqli nicht

Reported by: arno@… Owned by: somebody
Priority: normal Milestone: modified-shop-2.0.6.0
Component: Installer Version: 2.0.5.1

Description

32 $db_type = ((defined('DB_MYSQL_TYPE')) ? DB_MYSQL_TYPE : );
33 $db_type = 'mysqli';
34 $db_charset = (($upgrade === true && defined('DB_SERVER_CHARSET')) ? DB_SERVER_CHARSET : 'utf8');

Es ist mir bereits mehrfach passiert, dass der Installer den alten MySQL-Treiber laden will, der auf Debian Buster mit PHP 7.3 nicht vorhanden ist.

Ich behelfe mir dann, indem ich die obige Zeile 33 einfüge, damit läuft die Installation perfekt durch.

Attachments (0)

Change History (3)

comment:1 Changed 9 months ago by GTB

Ich kann das nicht nachvollziehen. MySQL wird nur angezeigt, wenn MySQLi nicht zur verfügung steht und Mysql vorhanden ist.

  // database 
  $db_type_array = array();
  if (function_exists('mysqli_connect')) {
    $db_type_array[] = array('id' => 'mysqli', 'text' => 'MySQLi');
  }
  if (function_exists('mysql_connect') && count($db_type_array) > 1) {
    $db_type_array[] = array('id' => 'mysql', 'text' => 'MySQL');
  }

comment:2 Changed 9 months ago by GTB

  • Resolution set to fixed
  • Status changed from new to closed

In 13157:

fix #1951 - update installer for updates

comment:3 Changed 9 months ago by GTB

In 13170:

fix #1951 - set default database type to mysqli

Add Comment

Modify Ticket

Action
as closed
The resolution will be deleted. Next status will be 'reopened'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.