c41n Posted June 15, 2020 Share Posted June 15, 2020 Hi everyone, I'v trying to install Prestashop 1.7 on CentOS 8 with php-fpm and Azure MySQL (database as a service). However, when I a fill fields with Azure MySQL login information in formulary and I test connection, I get the next error My database already exist on server and login from my web server is ok What I'm doing wrong ? For advanced, thanks for you help. Link to comment Share on other sites More sharing options...
musicmaster Posted June 15, 2020 Share Posted June 15, 2020 Did you try with a simple php file whether you can connect with those values using mysqli_connect()? Link to comment Share on other sites More sharing options...
c41n Posted June 15, 2020 Author Share Posted June 15, 2020 Hi musicmaster, thanks for you replay. I've tried with the next script from official Azure documentation: And the error is : Do you have any idea how I can solve it? Thanks. Link to comment Share on other sites More sharing options...
c41n Posted June 15, 2020 Author Share Posted June 15, 2020 Ok, I'v found a workaround from Azure official documentation using SSL connection: https://docs.microsoft.com/en-us/azure/mysql/howto-configure-ssl I've modify the code like this: And the PHP code works My question now is .... how I can use this workaround with Prestashop ? .... any Idea ? Link to comment Share on other sites More sharing options...
musicmaster Posted June 16, 2020 Share Posted June 16, 2020 11 hours ago, c41n said: Ok, I'v found a workaround from Azure official documentation using SSL connection: https://docs.microsoft.com/en-us/azure/mysql/howto-configure-ssl I've modify the code like this: And the PHP code works My question now is .... how I can use this workaround with Prestashop ? .... any Idea ? And what happens when you run this script - without mysqli_ssl_set - as a https program? Link to comment Share on other sites More sharing options...
c41n Posted August 6, 2020 Author Share Posted August 6, 2020 Quote And what happens when you run this script - without mysqli_ssl_set - as a https program? Show "Failed to connect to Mysql" Sorry for long delay to response. Reading Azure MySQL documentation, the correct way to implement Prestashop with Azure MySQL databases is using Service endpoints (to local VM communication inside vNet subnet), InnoDB driver and disabling SSL security. I hope this information is useful with this type of implementations. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now