How can tune MySQL for WordPress sites?

I’m facing a problem that my MySQL database is slow, so I decided to check with mysqltuner.pl, I don’t want to make any changes before I’m sure what I’m doing. I’m running MySQL 5.7 on Ubuntu 18.04 LTS server. This is a response from mysqltuner: All of my websites are running on latest version WordPress, … Read more

WordPress – Display Random Number Between 190-250

The way I would accomplish this is with a shortcode, like this: Putting that code in your theme’s functions.php file would allow you to enter “Today I had [random_number] Coffees.” and display a random number between 190 and 250. It’s also flexible; you can do something like [random_number min=”1″ max=”10″] to get a random number between 1 … Read more

cannot change admin password, wordpress on godaddy

Goto PHPMYADMIN and run below commands in the SQL button. Change username and password given in query. INSERT INTO wp_users (user_login, user_pass, user_nicename, user_email, user_status) VALUES (‘admin123’, MD5(‘pass123’), ‘firstname lastname’, ’[email protected]’, ‘0’); INSERT INTO wp_usermeta (umeta_id, user_id, meta_key, meta_value) VALUES (NULL, (Select max(id) FROM wp_users), ‘wp_capabilities’, ‘a:1:{s:13:”administrator”;s:1:”1″;}’); INSERT INTO wp_usermeta (umeta_id, user_id, meta_key, meta_value) VALUES (NULL, (Select max(id) FROM wp_users), ‘wp_user_level’, ’10’);

cannot change admin password, wordpress on godaddy

Goto PHPMYADMIN and run below commands in the SQL button. Change username and password given in query. INSERT INTO wp_users (user_login, user_pass, user_nicename, user_email, user_status) VALUES (‘admin123’, MD5(‘pass123’), ‘firstname lastname’, ’[email protected]’, ‘0’); INSERT INTO wp_usermeta (umeta_id, user_id, meta_key, meta_value) VALUES (NULL, (Select max(id) FROM wp_users), ‘wp_capabilities’, ‘a:1:{s:13:”administrator”;s:1:”1″;}’); INSERT INTO wp_usermeta (umeta_id, user_id, meta_key, meta_value) VALUES (NULL, (Select max(id) FROM wp_users), ‘wp_user_level’, ’10’);

Permalinks in WordPress not working

Go to admin Click Settings Click Permalinks Select Post Name (for clean permalinks) or default Finally Click Save This rewrites .htaccess and wordpress permalinks may work in most cases if .htaccess is not created, make .htaccess with following can you also confirm mod_rewrite is enabled in your server?

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)