Answers.Body: <p>Have you checked that all the required PHP extensions are installed/loaded when you check phpinfo()?</p>
  <p><a href="https://craftcms.com/docs/3.x/requirements.html#required-php-extensions" rel="nofollow noreferrer">https://craftcms.com/docs/3.x/requirements.html#required-php-extensions</a></p>
  <p>The error might not be about the MySQL server version but the fact that the required MySQL driver for PHP isn't loaded potentially.</p>
  <p>You may also want to run the Craft server check, to confirm if everything is present: <a href="https://github.com/craftcms/server-check" rel="nofollow noreferrer">https://github.com/craftcms/server-check</a></p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-07-08T12:51:18.800Z
Answers.Text: Hi James, Thank you for your response. I have checked both of these, add we have all extensions added and the server checker comes back all clean and ready. 
  
  I found that php7 was still installed on the server also, so I have removed this but now getting a timeout error when attempting to view the admin section.
Answers.UserDisplayName: Richard Griffiths
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-07-08T12:57:33.880Z
Answers.Text: After server reboot - getting the same error
Answers.UserDisplayName: Richard Griffiths
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-07-19T13:18:58.680Z
Answers.Text: @RichardGriffiths Just a thought, for Craft CMS 4 have you set the CRAFT_DB related environment variables? https://craftcms.com/docs/4.x/config/db-settings.html#attributes.
Answers.UserDisplayName: James White
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-07-05T17:37:44.073Z
Answers.LastActivityDate: 2022-07-08T08:31:14.923Z
Answers.LastEditDate: 2022-07-08T08:31:14.923Z
Answers.UserDisplayName: James White
Body: <p>I'm extremely new to Craft CMS and having to ensure it can be ran from a Azure Virtual Machine. I have added, Apache, PHP and MySQL and the website does run on the server. However the issue occurs when I head to the Admin part of the site, where I get the error (title of this post).</p>
  <p>All PHP extensions are installed as per the requirements.</p>
  <p><a href="https://i.sstatic.net/Z8fll.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/Z8fll.png" alt="enter image description here" /></a></p>
  <p>The server has MySQL 8 on it and the database is on a different server also running MySQL 8.</p>
  <p><a href="https://i.sstatic.net/23ajH.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/23ajH.png" alt="enter image description here" /></a></p>
  <p>It's worth noting that this works fine locally using XAMPP and I can access the /admin section.</p>
  <p>Any ideas what I can be missing, perhaps I need install an additional package of the server or some sort of configuration?</p>
  <p>Any help is greatly appreciated, thanks.
  Rich</p>
  
Tags: <craft3><mysql>
Title: MySQL 5.7.8 or higher is required to run Craft CMS Error
ThreadText: # MySQL 5.7.8 or higher is required to run Craft CMS Error
  
  (Asked by: username_0 on 2022-07-05)
  
  I'm extremely new to Craft CMS and having to ensure it can be ran from a Azure Virtual Machine. I have added, Apache, PHP and MySQL and the website does run on the server. However the issue occurs when I head to the Admin part of the site, where I get the error (title of this post).
  
  All PHP extensions are installed as per the requirements.
  
  [![enter image description here](https://i.sstatic.net/Z8fll.png)](https://i.sstatic.net/Z8fll.png)
  
  The server has MySQL 8 on it and the database is on a different server also running MySQL 8.
  
  [![enter image description here](https://i.sstatic.net/23ajH.png)](https://i.sstatic.net/23ajH.png)
  
  It's worth noting that this works fine locally using XAMPP and I can access the /admin section.
  
  Any ideas what I can be missing, perhaps I need install an additional package of the server or some sort of configuration?
  
  Any help is greatly appreciated, thanks.
  Rich
  
  **Tags:** craft3, mysql
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2022-07-05. Score: 1
  
  Have you checked that all the required PHP extensions are installed/loaded when you check phpinfo()?
  
  <https://craftcms.com/docs/3.x/requirements.html#required-php-extensions>
  
  The error might not be about the MySQL server version but the fact that the required MySQL driver for PHP isn't loaded potentially.
  
  You may also want to run the Craft server check, to confirm if everything is present: <https://github.com/craftcms/server-check>
  
  > **Comments:**
  > **username_0**: Hi username_1, Thank you for your response. I have checked both of these, add we have all extensions added and the server checker comes back all clean and ready.   I found that php7 was still installed on the server also, so I have removed this but now getting a timeout error when attempting to view the admin section.  
  > **username_0**: After server reboot - getting the same error  
  > **username_1**: @username_0 Just a thought, for Craft CMS 4 have you set the CRAFT_DB related environment variables? https://craftcms.com/docs/4.x/config/db-settings.html#attributes.  
  
  ---
  
  