Skip to content
This repository has been archived by the owner on Nov 28, 2017. It is now read-only.

phpmyadmin登陆提示mysqli_real_connect(): (HY000/2002): No such file or directory #7

Closed
baw123 opened this issue Sep 6, 2016 · 2 comments

Comments

@baw123
Copy link

baw123 commented Sep 6, 2016

你好,请问还需要配置哪里吗?

@micooz
Copy link
Owner

micooz commented Sep 7, 2016

该函数的host参数应该传入"mysql",请配置你的phpmyadmin,将连接地址改成"mysql"。

参考这里

@baw123
Copy link
Author

baw123 commented Sep 8, 2016

非常感谢提醒!我又在Dockerfile中添加
&& docker-php-ext-install -j$(nproc) iconv mcrypt mysqli pdo_mysql
重新build之后,成功运行phpmyadmin。

@baw123 baw123 closed this as completed Sep 8, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants