【发布时间】:2015-06-12 08:47:41
【问题描述】:
我发现 cloudsql 存在问题,因为未建立数据库连接。我已经按照下面的网站一步一步来https://googlecloudplatform.github.io/appengine-php-wordpress-starter-project/
但是,在将项目部署到 appengine 并使用 URL:https://<PROJECT-ID>.appspot.com/wp-admin/install.php 访问 wordpress 安装页面后,我似乎发现了问题
显示的错误是:
**Error establishing a database connection**
/** The name of the database for WordPress */
define( 'DB_NAME', 'wordpress_db' );
/** MySQL database username */
define( 'DB_USER', 'root' );
/** MySQL database password */
define( 'DB_PASSWORD', '' );
有人可以为这个错误提供一个合适的解决方案,因为我无法绕过它,即使我能够部署我的项目。如果没有数据库连接,我无法在 cloudsql 上安装 Wordpress。
【问题讨论】:
-
你能在命令行连接到你正在运行的 SQL 实例吗?
-
是的,我可以通过命令行输入已发布的 IP4 并使用用户名和密码进行连接。
标签: php mysql database wordpress google-app-engine