Mysql flexible server : how to set parameter who is not present ?

Thibault LE RESTE 0 Reputation points
2023-06-09T08:01:53.7233333+00:00

Hello,

I created a mysql flexible server.

I want to set the server parameter "optimizer_switch" to "prefer_ordering_index=off".

But this parameter is not present in the azure portal.

When I connect directly to the database and set this parameter to off, after about 30 minutes the value is reset.

Do you have a solution ?

Thanks

Azure Database for MySQL
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. RahulRandive 10,501 Reputation points Volunteer Moderator
    2023-06-09T12:09:38.8366667+00:00

    Hi @Thibault LE RESTE

    Thanks for your question.

    I have checked in my Azure portal and could see Server parameter "optimizer_switch" for MySQL Flexible server.

    User's image

    May I please know which region and version your server is in? If possible, please share a screenshot of the server parameter.

    Thank you!

    0 comments No comments

  2. Thibault LE RESTE 0 Reputation points
    2023-06-09T12:33:00.7+00:00

    Thanks for your reply.

    Here is a screenshot of my parameters.

    User's image

    This is a Mysql 8.0 server based on France Central location.


  3. GeethaThatipatri-MSFT 29,587 Reputation points Microsoft Employee Moderator
    2023-06-12T14:15:43.76+00:00

    @Thibault LE RESTE

    This is not a region-level setting. The allowed values should be the same for all 8.0 servers. 

    I checked the configuration template for 8.0, seems we don’t have this prefer_ordering_index=on and prefer_ordering_index=off for 8.0 from day 1

    Checking with Internal team in adding the missing parameters

    Thanks for bringing this issue to us.

    @RahulRandive Can you please reverify if you have checked in 8.0 or 5.7?

    Regards

    Geetha


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.