The code provided can this be ran directly into mysql?
Almost.
CREATE TABLE {$wpdb->base_prefix}ethpress_addresses (
id BIGINT UNSIGNED NOT NULL AUTO_INCREMENT,
name varchar(255) NOT NULL,
user_id BIGINT UNSIGNED NOT NULL,
coin varchar(15) DEFAULT NULL,
date datetime DEFAULT '2000-01-01 00:00:00',
modified datetime DEFAULT '2000-01-01 00:00:00',
PRIMARY KEY (id),
UNIQUE KEY name (name),
KEY user_id (user_id)
);
You need to swap out “{$wpdb->base_prefix}” to match whatever prefix you see in your “users” table. For example, it could be “wp5454_users”, or “wp12321321_users”, or something different, and then you would use
CREATE TABLE wp5454_ethpress_addxresses (
id BIGINT UNSIGNED NOT NULL AUTO_INCREMENT,
name varchar(255) NOT NULL,
user_id BIGINT UNSIGNED NOT NULL,
coin varchar(15) DEFAULT NULL,
date datetime DEFAULT '2000-01-01 00:00:00',
modified datetime DEFAULT '2000-01-01 00:00:00',
PRIMARY KEY (id),
UNIQUE KEY name (name),
KEY user_id (user_id)
);
or wp12321321_ethpress_addresses. It can be ran directly.
You can run: SHOW TABLES LIKE %ethpress_addresses
to see if the table does exist.
Error 500 is correct, so no problem there.