【发布时间】:2013-05-14 06:17:26
【问题描述】:
我正在尝试在我的服务器上的子目录中安装 yourls.org 网址缩短软件:http://[mydomain.tld]/y/admin/install.php。多次安装尝试导致以下错误:
Error creating table 'y20130519_url'.
Error creating table 'y20130519_options'.
Error creating table 'y20130519_log'.
Error creating YOURLS tables.
File .htaccess successfully created/updated.
我已经仔细检查了 db 用户和密码。我什至尝试创建新的。我已经重新安装了几次。
在 phpMyAdmin 中,我确认没有将表添加到数据库中,如错误所示。
在配置文件中,我修改了以下[敏感信息在这里一般替换]:
define( 'YOURLS_DB_USER', '[my new db user name is here]' );
define( 'YOURLS_DB_PASS', '[my new db password is here]' );
define( 'YOURLS_DB_NAME', '[my new db name is here]' );
define( 'YOURLS_DB_PREFIX', 'y20130519_' );
define( 'YOURLS_SITE', 'http://[mydomain.tld]/y' );
define( 'YOURLS_HOURS_OFFSET', -5 );
define( 'YOURLS_COOKIEKEY', '[I typed random characters here]' );
$yourls_user_passwords = array(
'[I created new user]' => '[I created new password]',
'[I created another new user]' => '[I created another new password]' // You can have one or more 'login'=>'password' lines
);
有什么想法吗?
【问题讨论】:
-
仔细检查您的“用户”是否已添加到“MySQL 数据库”中的数据库中,并有权更改/编辑/修改/添加。
标签: runtime-error yourls