I followed this tutorial here “https://www.digitalocean.com/community/tutorials/how-to-set-up-a-remote-database-to-optimize-site-performance-with-mysql-on-ubuntu-16-04” to Set Up a Remote Database with MySQL on Ubuntu 16.04.
I have also download wordpress onto the web server. However when i attempt to run the wordpress install from browser, I get this error (wordpress debug mode set to true):- Warning: mysqli_real_connect(): (HY000/3159): Connections using insecure transport are prohibited while --require_secure_transport=ON. in /var/www/html/wp-includes/wp-db.php on line 1538
What is causing this error and How do I fix this error?
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
go to sudo nano /etc/mysql/mysql.conf.d/mysqld.cnf
just remove the “require_secure_transport = on” than sudo systemctl restart mysql
now you can check login from webserver to database server
I do not believe the answer above is sufficient, if you want to establish an encrypted connection between your database server and web server.
I dealt with the same problem and solved it by changing the ownership of the generated ca.pem, server-cert.pem and server-key.pem files from root to mysql.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.