首页 新闻 会员 周边 捐助

php symfony 数据库链接

0
悬赏园豆:15 [待解决问题]

.env 内容如下:
DATABASE_URL="mysql://root:123456@127.0.0.1:8889/test"
为什么还是链接不上呢?
报错:➜ my_project git:(master) ✗ bin/console doctrine:database:create

In AbstractMySQLDriver.php line 93:

An exception occurred in driver: SQLSTATE[HY000] [2002] Connection refused

In PDOConnection.php line 31:

SQLSTATE[HY000] [2002] Connection refused

In PDOConnection.php line 27:

SQLSTATE[HY000] [2002] Connection refused

doctrine:database:create [--shard SHARD] [--connection [CONNECTION]] [--if-not-exists] [-h|--help] [-q|--quiet] [-v|vv|vvv|--verbose] [-V|--version] [--ansi] [--no-ansi] [-n|--no-interaction] [-e|--env ENV] [--no-debug] [--] <command>

➜ my_project git:(master) ✗

yahn~的主页 yahn~ | 初学一级 | 园豆:62
提问于:2019-07-30 14:50
< >
分享
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册