gpt4 book ai didi

php - MySQL 数据库迁移失败

转载 作者:行者123 更新时间:2023-11-29 02:46:44 26 4
gpt4 key购买 nike

对于一个 wordpress 网站,我正在尝试迁移该网站和 MySQL 数据库。虽然当我导入它时,它给了我一个错误。我无法再访问旧版本。

 Error
SQL query:


CREATE TABLE `wp_commentmeta` (
`meta_id` bigint(20) UNSIGNED NOT NULL,
`comment_id` bigint(20) UNSIGNED NOT NULL DEFAULT '0',
`meta_key` varchar(255) COLLATE utf8mb4_unicode_520_ci DEFAULT NULL,
`meta_value` longtext COLLATE utf8mb4_unicode_520_ci
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_520_ci
MySQL said: Documentation

#1046 - No database selected

最佳答案

1046 - No database selected Should have been a bit of a clue. Add a USE DATABASE_NAME; at the top of this script. So that MYSQL knows which database you are trying to create the table in

– RiggsFolly

关于php - MySQL 数据库迁移失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41185898/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com