-2

ローカルホストで最初の WP Db をセットアップしようとしていますが、ブラウザーで実行すると、次のエラーが発生します。

解析エラー: 構文エラー、22 行目の C:\xampp\htdocs\wordpress\wp-config.php の予期しない T_CONSTANT_ENCAPSED_STRING

設定を確認し、想定外のものは何も変更していませんが、それでもこのエラーが発生します。

次のphpで何が欠けていますか??

`**// ** MySQL settings - You can get this info from your web host ** //'

`/** The name of the database for WordPress */`
define('DB_NAME', wordpress_test');

/** MySQL database username */
define('DB_USER', 'root');

/** MySQL database password */
define('DB_PASSWORD', '');

/** MySQL hostname */
define('DB_HOST', 'localhost');

/** Database Charset to use in creating database tables. */
define('DB_CHARSET', 'utf8_unicode_ci');

/** The Database Collate type. Don't change this if in doubt. */
define('DB_COLLATE', '');**
4

2 に答える 2

3

変化する

define('DB_NAME', wordpress_test');

define('DB_NAME', 'wordpress_test');
于 2012-06-09T22:02:25.547 に答える
1
`**// ** MySQL settings - You can get this info from your web host ** //' <-- there we see a lost quote...
//It should be ` I think...

`/** The name of the database for WordPress */`
define('DB_NAME', wordpress_test');

/** MySQL database username */
define('DB_USER', 'root');

/** MySQL database password */
define('DB_PASSWORD', '');

/** MySQL hostname */
define('DB_HOST', 'localhost');

/** Database Charset to use in creating database tables. */
define('DB_CHARSET', 'utf8_unicode_ci');

/** The Database Collate type. Don't change this if in doubt. */
define('DB_COLLATE', '');**
于 2012-06-09T18:13:49.850 に答える