Dotclear

Ticket #2256 (closed enhancement: fixed)

Opened 8 years ago

Last modified 8 years ago

Connexion DB via socket

Reported by: franck Owned by: team
Priority: normal Milestone: 2.13
Component: module:clearbricks Version: 2.12.1
Severity: normal Keywords:
Cc:

Description

Pour l'instant la connexion via socket n'est pas gérée par Clearbricks, ça vaudrait le coup de voir comment prévoir ce cas-là aussi.

Cf la discussion sur le forum :  https://forum.dotclear.org/viewtopic.php?id=49294

Change History

comment:1 Changed 8 years ago by franck

Need to cope with the 5th argument of mysqli_connect() function (socket path), example:

$mysqli = mysqli_connect('localhost', 'root', 'root', 'mydb', NULL, '/var/run/mysql/mysql.sock');

comment:2 Changed 8 years ago by franck

Précisions :

  • Pour SQLite, PDO ne gère pas la connexion via socket
  • Pour PostgreSQL, il suffit d'indiquer le chemin du socket (sans localhost: devant) pour l'utiliser
  • Pour MySQL on va faire l'impasse
  • Reste MySQLi et MySQLi-utf8mb4 à gérer…

comment:3 Changed 8 years ago by franck <carnet.franck.paul@…>

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

(In [5d6a7bba0ada]) CB subrepo : Cope with MySQLi connection via socket (localhost:socket rather than host[:port]), closes #2256

Note: See TracTickets for help on using tickets.

Sites map