Database syntax error
-
Hello people,
I would like to ask you for your guidance on my mysql issue. Yesterday I was trying to change my website url by making changes in my database records. When I was editing my wp_posts and paste the code for update a new site adress, which was:
UPDATE wp_posts SET post_content = replace(post_content, ‘https://olddomain.com’, ‘https://newdomain.com’);
I got the message that my syntax isn’t right. I freak out a little bit, and ctrl z undo the changes, but even though I restored the original code of wp_posts, I’m still getting this syntax error, which is:
#1064 – You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘[value-1],
name
=[value-2],slug
=[value-3],term_group
=[value-4] WHERE 1′ at line 1It’s very strange, because I noticed that I get the same error in other tables in the UPDATE section.
And I’ts even more strange that even when I restored the backup of my database, I’m still getting the same error. When I’m opening my website I get this nice, big “Error establishing a database connection.”Would appreciate your assistance a LOT.
- The topic ‘Database syntax error’ is closed to new replies.