gpt4 book ai didi

mysql - Wordpress v2.9.2 无法在 MAMP 上创建数据库

转载 作者:行者123 更新时间:2023-11-29 15:01:34 25 4
gpt4 key购买 nike

我熟悉以前的 Wordpress 安装程序,但在这个新版本中,我遇到了一些我没有看到记录的新内容。

我尝试将 WordPress 安装到 MAMP 作为我的本地主机,但收到错误消息,表明表创建失败。

PHP:5.2.11

MySQL:5.1.37

我已经使用安装程序界面来设置数据库设置,并且我也手动尝试过,没有区别。

我在安装成功屏幕上收到以下错误。表 wp-commentmeta 和 wp-links 已创建,并且我获得了登录名/密码 - 即使未创建用户表。

WordPress database error: [MyISAM table 'wp_terms' is in use (most likely by a MERGE table). Try FLUSH TABLES.]
CREATE TABLE wp_terms ( term_id bigint(20) unsigned NOT NULL auto_increment, name varchar(200) NOT NULL default '', slug varchar(200) NOT NULL default '', term_group bigint(10) NOT NULL default 0, PRIMARY KEY (term_id), UNIQUE KEY slug (slug), KEY name (name) ) DEFAULT CHARACTER SET utf8

WordPress database error: [MyISAM table 'wp_term_taxonomy' is in use (most likely by a MERGE table). Try FLUSH TABLES.]
CREATE TABLE wp_term_taxonomy ( term_taxonomy_id bigint(20) unsigned NOT NULL auto_increment, term_id bigint(20) unsigned NOT NULL default 0, taxonomy varchar(32) NOT NULL default '', description longtext NOT NULL, parent bigint(20) unsigned NOT NULL default 0, count bigint(20) NOT NULL default 0, PRIMARY KEY (term_taxonomy_id), UNIQUE KEY term_id_taxonomy (term_id,taxonomy), KEY taxonomy (taxonomy) ) DEFAULT CHARACTER SET utf8

WordPress database error: [MyISAM table 'wp_term_relationships' is in use (most likely by a MERGE table). Try FLUSH TABLES.]
CREATE TABLE wp_term_relationships ( object_id bigint(20) unsigned NOT NULL default 0, term_taxonomy_id bigint(20) unsigned NOT NULL default 0, term_order int(11) NOT NULL default 0, PRIMARY KEY (object_id,term_taxonomy_id), KEY term_taxonomy_id (term_taxonomy_id) ) DEFAULT CHARACTER SET utf8

WordPress database error: [MyISAM table 'wp_comments' is in use (most likely by a MERGE table). Try FLUSH TABLES.]
CREATE TABLE wp_comments ( comment_ID bigint(20) unsigned NOT NULL auto_increment, comment_post_ID bigint(20) unsigned NOT NULL default '0', comment_author tinytext NOT NULL, comment_author_email varchar(100) NOT NULL default '', comment_author_url varchar(200) NOT NULL default '', comment_author_IP varchar(100) NOT NULL default '', comment_date datetime NOT NULL default '0000-00-00 00:00:00', comment_date_gmt datetime NOT NULL default '0000-00-00 00:00:00', comment_content text NOT NULL, comment_karma int(11) NOT NULL default '0', comment_approved varchar(20) NOT NULL default '1', comment_agent varchar(255) NOT NULL default '', comment_type varchar(20) NOT NULL default '', comment_parent bigint(20) unsigned NOT NULL default '0', user_id bigint(20) unsigned NOT NULL default '0', PRIMARY KEY (comment_ID), KEY comment_approved (comment_approved), KEY comment_post_ID (comment_post_ID), KEY comment_approved_date_gmt (comment_approved,comment_date_gmt), KEY comment_date_gmt (comment_date_gmt) ) DEFAULT CHARACTER SET utf8

WordPress database error: [MyISAM table 'wp_options' is in use (most likely by a MERGE table). Try FLUSH TABLES.]
CREATE TABLE wp_options ( option_id bigint(20) unsigned NOT NULL auto_increment, blog_id int(11) NOT NULL default '0', option_name varchar(64) NOT NULL default '', option_value longtext NOT NULL, autoload varchar(20) NOT NULL default 'yes', PRIMARY KEY (option_id), UNIQUE KEY option_name (option_name) ) DEFAULT CHARACTER SET utf8

WordPress database error: [MyISAM table 'wp_postmeta' is in use (most likely by a MERGE table). Try FLUSH TABLES.]
CREATE TABLE wp_postmeta ( meta_id bigint(20) unsigned NOT NULL auto_increment, post_id bigint(20) unsigned NOT NULL default '0', meta_key varchar(255) default NULL, meta_value longtext, PRIMARY KEY (meta_id), KEY post_id (post_id), KEY meta_key (meta_key) ) DEFAULT CHARACTER SET utf8

WordPress database error: [MyISAM table 'wp_posts' is in use (most likely by a MERGE table). Try FLUSH TABLES.]
CREATE TABLE wp_posts ( ID bigint(20) unsigned NOT NULL auto_increment, post_author bigint(20) unsigned NOT NULL default '0', post_date datetime NOT NULL default '0000-00-00 00:00:00', post_date_gmt datetime NOT NULL default '0000-00-00 00:00:00', post_content longtext NOT NULL, post_title text NOT NULL, post_excerpt text NOT NULL, post_status varchar(20) NOT NULL default 'publish', comment_status varchar(20) NOT NULL default 'open', ping_status varchar(20) NOT NULL default 'open', post_password varchar(20) NOT NULL default '', post_name varchar(200) NOT NULL default '', to_ping text NOT NULL, pinged text NOT NULL, post_modified datetime NOT NULL default '0000-00-00 00:00:00', post_modified_gmt datetime NOT NULL default '0000-00-00 00:00:00', post_content_filtered text NOT NULL, post_parent bigint(20) unsigned NOT NULL default '0', guid varchar(255) NOT NULL default '', menu_order int(11) NOT NULL default '0', post_type varchar(20) NOT NULL default 'post', post_mime_type varchar(100) NOT NULL default '', comment_count bigint(20) NOT NULL default '0', PRIMARY KEY (ID), KEY post_name (post_name), KEY type_status_date (post_type,post_status,post_date,ID), KEY post_parent (post_parent) ) DEFAULT CHARACTER SET utf8

WordPress database error: [MyISAM table 'wp_users' is in use (most likely by a MERGE table). Try FLUSH TABLES.]
CREATE TABLE wp_users ( ID bigint(20) unsigned NOT NULL auto_increment, user_login varchar(60) NOT NULL default '', user_pass varchar(64) NOT NULL default '', user_nicename varchar(50) NOT NULL default '', user_email varchar(100) NOT NULL default '', user_url varchar(100) NOT NULL default '', user_registered datetime NOT NULL default '0000-00-00 00:00:00', user_activation_key varchar(60) NOT NULL default '', user_status int(11) NOT NULL default '0', display_name varchar(250) NOT NULL default '', PRIMARY KEY (ID), KEY user_login_key (user_login), KEY user_nicename (user_nicename) ) DEFAULT CHARACTER SET utf8

WordPress database error: [MyISAM table 'wp_usermeta' is in use (most likely by a MERGE table). Try FLUSH TABLES.]
CREATE TABLE wp_usermeta ( umeta_id bigint(20) unsigned NOT NULL auto_increment, user_id bigint(20) unsigned NOT NULL default '0', meta_key varchar(255) default NULL, meta_value longtext, PRIMARY KEY (umeta_id), KEY user_id (user_id), KEY meta_key (meta_key) ) DEFAULT CHARACTER SET utf8

然后很多消息说更新/插入等失败,因为表不存在。

有人遇到过这种情况吗?

编辑:MAMP 报告 mysql 的端口 8889,因此我将 wp-config 中的主机名更改为 localhost:8889。但没有成功。

编辑:我解决了这个问题。我以前有一个 WordPress 数据库,我删除并重新创建了该数据库,反复尝试解决这个问题。显然删除它还不够好,因为问题是通过创建一个名为 newwordpress 的数据库并使用它来解决的。

MySQL 必须保留已删除数据库中的一些数据。

最佳答案

您确定 MAMP 数据库的端口正确吗?我忘记这样做了,它正在访问我机器上的默认 mySQL 服务器。

编辑:MAMP 安装的端口号在设置对话框中指定。默认情况下,它可能是 8889。您可以阅读 WordPress documentation关于如何指定非默认的 MySQL 端口。

关于mysql - Wordpress v2.9.2 无法在 MAMP 上创建数据库,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2950187/

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