This should be working:
Be sure that your DB prefix is “wp_”
Update wp_users set wp_users.user_login=wp_users.user_nicename where wp_users.user_login="x"
Related Posts:
- simple sql query on wp_postmeta very slow
- How many WordPress SQL Queries per page?
- Multipart/formatted MySQL query problem
- Are database queries created using WordPress filters protected from SQL injection?
- Grouping related postmeta data via SQL query
- Mysql / WordPress killing my server with 80k users [closed]
- Slow meta_query with about 4 milion record on wp_postmeta
- Select User by Joining Multiple Meta Value Results
- mySQL query. ORDER BY meta_key
- Update slug (URL) of pending posts via phpMyAdmin
- You have an error in your SQL syntax – Help with query
- MySQL variable in query
- how would I create a custom query to get all users, and a related post based on a postmeta field?
- Help with MySQL to $WPDB query
- SQL query to select posts from multiple categories
- How do I see the mysql query generated by get_posts( $args )?
- Alter query with posts_clauses to retrieve NULL values last
- MySql Query very slow
- Searching With Apostrophe
- WordPress Query wp-terms SLOW
- wpdb COALESCE won’t work
- Get posts from category with custom query
- how to insert missing tags into the posts through mySQL?
- Ideas how to search & replace post_content when string contains a newline?
- Valid SQL query return empty
- mysql query – how to escape apostrophe?
- Query the WordPress database to get data together with replaced information
- Optimize slow SQL query for multiple meta values
- Updating with $qpdb->query() always returns 0 rows affected
- How to return count of custom post type posts with a specific custom field value via $wpdb?
- WordPress Mysql query and Duplicate
- Help with Related Posts Function
- How to delete all images from code in all post_content
- I want to get on those users their meta value are like “AGENT” .. but this query is not working
- Displaying data from custom table
- Get 2 meta values from meta key column
- PHP Fatal error: Uncaught Error: Call to a member function insert() on null
- SQL query to delete users with multiple meta keys and comments
- OR condition not working
- Trouble migrating custom post types from non-wordpress cms
- Are there any best practices for creating a Like/Favourite feature in WordPress using custom MySQL tables and without any plugins?
- Performance of wp_get_attachment_image_srcset() and wp_get_attachment_image_url()
- How to make MySQL search queries with quotes
- Custom MySQL Query for Post and Post Meta
- Mysql query and odd results
- sql for querying post and their category
- Access Tables with number prefix
- Custom query_var causes displaying posts archive on front page
- What is the most efficient way of implementing a favorite post system?
- Why does get_the_time(‘F j’) return November 30 for all posts?
- Query by one meta_key and sort by another (possibly NULL value)
- Query & Sort Comments by custom comment meta
- is_archive() doesn’t work on public query var archive pages?
- How to count get_users query?
- Possible to get posts from multiple meta keys/values in a single query?
- Delete duplicate rows from wordpress database where a column is duplicate in phpmyadmin
- Difference between fragment caching and wp_cache
- How to display all posts with today’s same month and day only?
- Show featured image as background image from postQuery
- Using $wpdb->update but confused on the WHERE in and SET
- WordPress Loop: List All Posts by a Category & Subcategory
- Order query by post meta value
- CRUD operations using WordPress database API
- Why is variable not working on custom sql query using wpdb?
- List all posts from past week grouped by sub-category
- Query Custom Post Type posts by Keyword/url slug
- Display posts with a start OR end date later than current date
- Order posts by custom field DATE value
- Slow queries constantly getting stuck on WordPress database of ~100,000 posts
- Query to Get All Users from wp_users With NO matching user_id In wp_usermeta
- WordPress custom setting page – add flashing message
- Custom query AFTER rss fetch_feed not working
- Multiple Category Query
- Passing parameters to a static front page
- wp_list_pages() refuses to output posts
- Can’t seem to do combined query AND sort?
- sort query results by newest
- How to reset usual $query on search page to push custom $wpdb query there?
- Best practice to limit results in get_row()?
- $wpdb->prepare affecting the query?
- WordPress SQL search, how to handle SQL Injection?
- How to manage a particular “order by” for get_search_query()?
- Query to view scheduled or draft post
- How to add a Variable to post query
- Sort a list of a CPT ( job) if a meta is empty
- Restore WordPress Backup Locally?
- How to do a MySql query in WordPress?
- “order” does not affect order of custom query
- Create a new post on a specified publish date via link?
- Query String for the WP_QUERY parameters
- $wpdb query for price in custom field value
- Multiple terms not working on taxonomy
- Sorting of coupons in the right way
- excludeCat function reverses order of blog posts
- Run search query again without pagination gives no results?
- Parsing External Table Arguments
- WP_Query orderby meta key/value suddely stopped working
- Where can I find the SQL to get the most used information by wordpress database?
- WooCommerce Total # orders [closed]
- How to show sticky posts on all pages of the pagination, not just the first page?