【发布时间】:2016-09-29 20:32:54
【问题描述】:
我正在尝试安装 phpmyadmin + mariadb。
我的 PHP 配置字符串具有以下 mysql 标志
CONFIGURE_STRING="--prefix=/etc/php7 --enable-mysqlnd --with-mysqli=mysqlnd
--with-pdo-mysql=mysqlnd <and other flags>"
我安装了 mariadb,如下:
sudo apt-get install mariadb-client mariadb-server
sudo mysql_secure_installation
我可以通过密码登录
sudo mysql -u root -p
然后我用
安装了 phpmyadmincd /var/www/html
git clone --depth=1 --branch=STABLE https://github.com/phpmyadmin/phpmyadmin.git
mv phpmyadmin datastore #change name to datastore
当我打开http://localhost/datastore 时,我收到了 phpmyadmin 登录页面;在尝试使用 root 用户名和 root 密码登录时,我收到以下错误:
#2002 - No such file or directory — The server is not responding (or the local server's socket is not correctly configured).
AND
mysqli_real_connect(): (HY000/2002): No such file or directory.
我在 ubuntu 14.04 上使用 php7。
我希望能够连接 mariadb 和 phpmyadmin。
【问题讨论】:
标签: nginx phpmyadmin mariadb