WordPress looking at old DB username?
-
I recently changed domains of my wordpress site. I exported the database and imported it into a new database, then updated wp-config to point to my new database and username. For simplicities sake let’s say the old database was olddatabasename and the old user was olduser. The new database is newdatabasename and the new user is newuser.
My wp-config file now reads:
/** The name of the database for WordPress */
define(‘DB_NAME’, ‘newdatabasename’);/** MySQL database username */
define(‘DB_USER’, ‘newuser’);However, when updating a post the post does not actually get updated. When I turn debug mode on I get the following error:
WordPress database error: [TRIGGER command denied to user ‘olduser’@’localhost’ for table ‘wp_postmeta’]
- The topic ‘WordPress looking at old DB username?’ is closed to new replies.