Try to disable temporarily SELinux on the web server, with the command:
sudo setenforce 0
If the error disappears after disabling SELinux, re-enable it with:
sudo setenforce 1
and then allow httpd to connect to a MySql server through the network with:
sudo setsebool -P httpd_can_network_connect_db 1 sudo setsebool -P httpd_can_network_connect 1
Related Posts:
- ERROR 1045 (28000): Access denied for user ‘root’@’localhost’ (using password: YES)
- ERROR 1045 (28000): Access denied for user ‘root’@’localhost’ (using password: YES)
- ERROR 1045 (28000): Access denied for user ‘root’@’localhost’ (using password: YES)
- How to restart remote MySQL server running on Ubuntu linux?
- MySQL config file location – redhat linux server
- How can I make wordpress suppress mysql errors?
- Can’t find my wordpress DB in phpmyadmin
- Changes not being reflected on new server
- 403 Forbidden home on localhost with nginx server
- Where other than wp-config can database access details be defined?
- String concatenation in MySQL
- What’s the difference between INNER JOIN, LEFT JOIN, RIGHT JOIN and FULL JOIN? [duplicate]
- error: ‘Can’t connect to local MySQL server through socket ‘/var/run/mysqld/mysqld.sock’ (2)’ — Missing /var/run/mysqld/mysqld.sock
- Cannot delete or update a parent row: a foreign key constraint fails
- ERROR 2003 (HY000): Can’t connect to MySQL server on localhost (10061)
- MySQL server startup error ‘The server quit without updating PID file’
- How do I restore a dump file from mysqldump?
- SQL – Update multiple records in one query
- Create a new database with MySQL Workbench
- Column ‘user_id’ in field list is ambiguous
- Database sharding vs partitioning
- 1052: Column ‘id’ in field list is ambiguous
- Escape string Python for MySQL
- 1052: Column ‘id’ in field list is ambiguous
- how to overcome ERROR 1045 (28000): Access denied for user ‘ODBC’@’localhost’ (using password: NO) permanently
- How to export a mysql database using Command Prompt?
- SQL ZOO List each continent and the name of the country that comes first alphabetically
- Fatal error: Please read “Security” section of the manual to find out how to run mysqld as root
- ERROR 1044 (42000): Access denied for user ”@’localhost’ to database ‘db’
- How to install Python MySQLdb module using pip?
- Access denied for user ‘root’@’localhost’ (using password: YES) after new installation on Ubuntu
- Dump all tables in CSV format using ‘mysqldump’
- How to do a batch insert in MySQL
- If variable equals value php [duplicate]
- MySQL: Cloning a MySQL database on the same MySql instance
- mysqldump data only
- PHP date() format when inserting into datetime in MySQL
- WordPress mysqli and PDO
- Connect to database using wordpress wp-config file
- Alternative to mysql_real_escape_string
- Extending the database
- Same option_id=0 for 2 options in wp_options?
- How to let a user choose an authors and save it to the database?
- How to remove ‘GROUP BY’ from SQL query produced from get_posts?
- MySQL LIKE not working
- Is a MySQL DATETIME or TIMESTAMP value retrieved through $wpdb in UTC?
- enable SFTP via SSH keys in wordpress
- Join new table with SQL query
- WordPress installation on valet php 8 (PHP Fatal error: Uncaught mysqli_sql_exception Table ‘wp_options’ doesn’t exist in wp-includes/wp-db.php:2056)
- MySQL crashed because of the large number of requests
- Why doesn’t this code add a table to my database?
- SQL database export-import
- Can Someone Help Me Fix This WordPress Missing Argument Error?
- How do I get create a custom table showing the hours remaining for all customers in one page from this transactions page?
- Uncaught Error: Call to undefined function mysql_connect() – WordPress installation
- SQL Database, repeated tables?
- Backing up and restoring multiple sites efficiently
- Visual/Text Editor displays blank pages in WP-Admin- but HTML on client side displays correctly
- Code to remove authors with no posts connected to them
- SQL Query in WordPress – Getting Impossible WHERE error
- Are these WordPress tables safe to add indexes to?
- Moving wordpress site from localhost to live server using GoDaddy cPanel
- WordPress create database not working
- database optimization and server errors
- Setting up WordPress Locally on WAMP for a new site (with one already)
- Calling mysql_query() on another database, assumes WordPress using that database
- WordPress VIP realpath Alternative?
- querying user bookmarks from a large number of bookmarks
- Pull post name from value of a specific meta key
- PHP variables in mysql query
- How to fix the amount of comments displayed for each post?
- How do I echo all users’ display_name and their meta_value who have a certain meta_key?
- How to get database connection details without longing to cpanel in WordPress?
- How to install WordPress from hosting service with mysql database from Compute Engine GCP?
- How to simulate web traffic to test performance of a website
- SQL query to change custom field in WordPress database
- SQL. Select category descendants
- MySQL Actibity without any active visitors via Google Analytics
- Why should be SQL keywords, like CREATE TABLE and UPDATE, must be uppercase in WordPress?
- Add row to SQL array
- SELECT statement wrong?
- mysql query on wp_user and user_meta problem
- $wpdb post type and term query only works when there are no dashes or spaces in the term slug and title
- Use custom query if main search query returns zero results in wordpress
- How to get Attachments(image) with specific width\height ratio
- get_results() query not working only when entering strings
- Geographical proximity query using post_meta
- Can I use mysql queries to replace query_posts()?
- Add value to array in database
- How to Import Multiple Values in custom field
- Making CURDATE() recognize current_time()
- How should I troubleshoot a database serialization issue with a WordPress migration
- How WP decide to show or not to show in admin panel the pop-up window with hint? Need a fix
- SQL – Pull products of particular category from a remote WordPress woocommerce db
- Efficiently loop over huge number of posts
- Using queries in and i see 7000+queries?
- Initialization of table in database using ‘CREATE … IF NOT EXISTS’
- mysqldump throws: Unknown table ‘COLUMN_STATISTICS’ in information_schema (1109)
- How do I load a sql.gz file to my database? (importing)
- Batch Replace URLs in WordPress Database