1

サーバーのサブディレクトリ http://[mydomain.tld]/y/admin/install.php に yourls.org 短縮 URL ソフトウェアをインストールしようとしています。インストールを何度も試行すると、次のエラーが発生します。

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
);

何か案は?

4

2 に答える 2

1

これは、解決された YOURLS コードの問題です。

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

新しいバージョンを待つか、上記の URL のコードを自分で変更してください。

于 2014-07-10T20:42:26.023 に答える
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.

しかし..そうではありません。データベースをチェックしたところ、すべてのテーブルが機能しています

于 2014-01-18T10:42:21.910 に答える