logs me in localhost:3306
host: ip:port works fine
Is this feature or bug?
I couldn't reproduce it. Please specify your operating system, PHP version and used PHP extension (can be found on the Select database page after login).
MySQL: 5.1.41-3ubuntu12.10 MySQLi
Server: localhost:9306 same as localhost
on 9306 runs Sphinx
on 3306 runs MySQL
PHP 5.3.2-1ubuntu4.9 with Suhosin-Patch (cli) (built: May 3 2011 00:43:34)
Sphinx 2.0.1-beta (r2792)
I couldn't reproduce it and I couldn't see a bug in the code: https://github.com/vrana/adminer/blob/v3.2.2/adminer/drivers/mysql.inc.php#L18
Maybe it is a bug in your PHP version. Check also the sql.safe_mode PHP configuration option.
I can confirm this bug still occurs with Adminer version 4.2.4 on Ubuntu 14.04 LTS with MySQL
version 5.5.47-MariaDB-1ubuntu0.14.04.1 through PHP extension MySQLi.
PHP version is 5.5.9.
Workaround: use localhost.:3307 (note the trailling dot after localhost) instead of localhost:3307 to connect to port 3307.
It also works if I use 127.0.0.1 instead of localhost.
Log in to post a comment.