简体   繁体   中英

WordPress Database Error: [Table 'databasename.wp_users' doesn't exist] SELECT * FROM wp_users WHERE user_login = 'Username'

I was developing a WordPress theme locally on a Mac (OSx Sierra) using XAMPP. It was set up so that when I typed localhost/ThemeName into the URL, I was taken to my site. I restarted my computer after installing some updates and now when I go to localhost/ThemeName I get this:

在此处输入图片说明

Obviously I don't want another WordPress installation - it's already installed. After checking around, I found this article which seems to address a similar problem. He suggests 'deleting both the wp_users and wp_usermeta tables', but I don't know what he means by 'importing them from backups made from the live server'.

In phpMyAdmin, my database looks like this:

在此处输入图片说明

As you can see, I get an error message for every table within the Database for my theme - wp_commentmeta , wp_comments , wp_links , wp_options , etc. - if I click on any of those I get a message saying that the table doesn't exist. I tried to 'drop' the wp_users and wp_usermeta tables but they're still there and now the 'drop' option is actually gone:

在此处输入图片说明

Please help if you know what to do, thanks!

EDIT : After going ahead and entering Site Title, Email Address, and hitting Install WordPress, I received thousands of error messages:

在此处输入图片说明 在此处输入图片说明 在此处输入图片说明

And so on and so on.

Open your terminal and run:

sudo /opt/lampp/lampp restart

Then, run your Wordpress installation normally.

I restarted Apache and switched to a different internet connection at a different location. I can go to localhost/MyWPTheme and it works just fine.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM