Skip to content

phpMyAdmin fails to connect to MySQL via named pipes (Windows). #10210

@pma-import

Description

@pma-import

This appears to be a “bug” when phpMyAdmin fails to connect to MySQL server via named pipe with different from default (i.e “mysql”) name.

System: Windows 7 Ultimate (x32 and x64), SP1
Server: Apache/2.4.4 (Win64 and Win32) with mod_fcgid/2.3.7
phpMyAdmin version: 4.0.4.1 (but previous versions was noted to behave in identical maner);
MySQL Server version: 5.6.12 - MySQL Community Server (GPL) (same with previous stable versions);
php version - 5.5.0 (same with previous stable versions).

Connection established only when default pipe's name (i.e “mysql”) is configured as follows:

My.ini
[client]
socket = "mysql" (optional)
pipe
[mysqld]
socket = "mysql" (optional)
skip-networking
enable-named-pipe

config.inc.php
$cfg['blowfish_secret'] = 'whatever';
$i = 0;
$i++;
$cfg['Servers'][$i]['auth_type'] = 'cookie';
$cfg['Servers'][$i]['host'] = '.';
$cfg['Servers'][$i]['connect_type'] = 'socket';
$cfg['Servers'][$i]['compress'] = false;
$cfg['Servers'][$i]['extension'] = 'mysqli';
$cfg['Servers'][$i]['AllowNoPassword'] = false;

As soon as the default name (“mysql”) of the pipe is changed to any other name, the phpMyAdmin is not able to connect to MySQL server.

Connection error: "#2002 Cannot log in to the MySQL server".

It is not possible to establish connection even when the new name of the pipe is configured with the following setting $cfg['Servers'][$i]['socket'] = ''; in the config.inc.php ((e.g. $cfg['Servers'][$i]['socket'] = 'mysql.sock';))

Examples of the names of pipes that are not working (my.ini):
socket = “mysql1”
socket = "mysql33"
socket = “mysql.sock”
etc.


Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA problem or regression with an existing featureinvalid

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions