无法为 mariadb 中的 wordpress 更新 table wp_options
Cant update table wp_options for wordpress in mariadb
我正在尝试使用新的 url 更新 wp_options table,但该命令无法正常工作。
UPDATE TABLE wp_options
SET option_value = "http://34.66.147.230"
WHERE option_name = "siteurl";
"You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server
version for the right syntax to use near 'TABLE wp_options SET option_value = "http://34.66.147.230" WHERE option_n
ame ...' at line 1"
您不需要 'table' 关键字,对字符串值使用单引号:
UPDATE wp_options
SET option_value = 'http://34.66.147.230'
WHERE option_name = 'siteurl';
我正在尝试使用新的 url 更新 wp_options table,但该命令无法正常工作。
UPDATE TABLE wp_options
SET option_value = "http://34.66.147.230"
WHERE option_name = "siteurl";
"You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'TABLE wp_options SET option_value = "http://34.66.147.230" WHERE option_n ame ...' at line 1"
您不需要 'table' 关键字,对字符串值使用单引号:
UPDATE wp_options
SET option_value = 'http://34.66.147.230'
WHERE option_name = 'siteurl';