【问题标题】:yourls.org error creating tableyourls.org 错误创建表
【发布时间】: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


【解决方案1】:

我今天安装了你的同样的错误

Error creating table 'yourls_url'.
Error creating table 'yourls_options'.
Error creating table 'yourls_log'.
Error creating YOURLS tables.

File .htaccess successfully created/updated.

但是..不是真的,我检查了数据库并且所有表都在工作

【讨论】:

    【解决方案2】:

    这是已解决的 YOURLS 代码问题:

    https://github.com/YOURLS/YOURLS/issues/1617

    等待新版本,或者自己改代码如上url。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2017-11-04
      • 2013-12-15
      • 2010-10-05
      • 1970-01-01
      • 1970-01-01
      • 2014-03-17
      • 2014-06-06
      • 2017-10-27
      相关资源
      最近更新 更多