[英]Error in running any query on the phpmyadmin on the live server . But when i am runnign it on the adminer.php it is executing
I have a WordPress site on a Linux based server.我在基于 Linux 的服务器上有一个 WordPress 站点。 The phpmyadmin is giving connectivity error. phpmyadmin 出现连接错误。 Daily it gives errors for different queries and today is giving me errors for any query which I am using.I used the same query yesterday and it helped me to fetch the data.每天它都会为不同的查询提供错误,而今天我正在使用的任何查询都会出现错误。我昨天使用了相同的查询,它帮助我获取数据。 But today it is not working.但是今天它不起作用。 I also use the adminer.php and it is working fine and giving the data based on the query.我还使用了 adminer.php,它工作正常并根据查询提供数据。 Can anyone tell me I will give a screenshot of the error.谁能告诉我我会给出错误的截图。 Please give your thought on it.请给出你的想法。 Here is the query which I am running.这是我正在运行的查询。
SELECT u.id,f.meta_value as first_name,l.meta_value as last_name,u.user_nicename as slug,u.user_email as email,u.user_pass as password,b.meta_value as badge_id,e.meta_value as expiry_date,lc.meta_value as location_id, u.emailVarification as verification_code,v.meta_value as user_verified,s.meta_value as remember_token,u.user_registered as created_at,p.post_modified as updated_at,d.meta_value as is_disabled
FROM `wp_users` as u
LEFT JOIN wp_usermeta as f ON f.user_id = u.ID AND f.meta_key = "first_name"
LEFT JOIN wp_usermeta as l ON l.user_id = u.ID AND l.meta_key = "last_name"
LEFT JOIN wp_usermeta as b ON b.user_id = u.ID AND b.meta_key = "badge_id"
LEFT JOIN wp_usermeta as e ON e.user_id = u.ID AND e.meta_key = "expiry_date"
LEFT JOIN wp_usermeta as lc ON lc.user_id = u.ID AND lc.meta_key = "location_id"
LEFT JOIN wp_usermeta as v ON v.user_id = u.ID AND v.meta_key = "_is_verified"
LEFT JOIN wp_usermeta as s ON s.user_id = u.ID AND s.meta_key = "session_tokens"
LEFT JOIN wp_usermeta as d ON d.user_id = u.ID AND d.meta_key = "is_disabled"
LEFT JOIN wp_posts as p ON p.post_author=u.id
WHERE p.post_type="freelancers"
AND u.freelancerpaid="1"
The issue was because of the Cloudfare installed on the server I tried to bypass it and everything worked.问题是因为安装在服务器上的 Cloudfare 我试图绕过它并且一切正常。 Thanks everyone for the answers.谢谢大家的回答。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.