Database Administrators
Q&A for database professionals who wish to improve their database skills
Latest Questions
0
votes
1
answers
141
views
Can I downscale/upscale my MySQL server automatically?
Is this doable? Since we know the peak times of our platform we are planning to downscale our DB after peak hours then upgrade the specs before the start of peak hours, how can we do this? Like how is RDS doing this?
Is this doable? Since we know the peak times of our platform we are planning to downscale our DB after peak hours then upgrade the specs before the start of peak hours, how can we do this? Like how is RDS doing this?
JRA
(137 rep)
Feb 26, 2021, 09:34 AM
• Last activity: Jul 23, 2025, 08:03 AM
0
votes
0
answers
103
views
mongodb downgrade stuck in downgrading from setFeatureCompatibilityVersion: “6.0” to “5.0”
So I've encountered essentially the same (unanswered) problem posted about [here](https://www.mongodb.com/community/forums/t/stuck-in-downgrading-from-setfeaturecompatibilityversion-6-0-to-5-0/295938). I upgraded an existing sharded cluster from 5.0.30 to 6.0.19. And, thinking everything was working...
So I've encountered essentially the same (unanswered) problem posted about [here](https://www.mongodb.com/community/forums/t/stuck-in-downgrading-from-setfeaturecompatibilityversion-6-0-to-5-0/295938) .
I upgraded an existing sharded cluster from 5.0.30 to 6.0.19. And, thinking everything was working, I got overconfident and updated the FCV, only to discover that our existing clients were using libraries that broke on 6.0.
So now I'm trying to do the dangerous thing and move it back to 5.0. In our test cluster, this worked fine. But in production (because of course it's production), the attempt to
setFeatureCompatibilityVersion
seems to have deadlocked (waiting over an hour), and we have the following observed behavior:
1. All the non-config, non-arbiter mongod instances, when queried with db.adminCommand({ getParameter: 1, featureCompatibilityVersion: 1 })
, report featureCompatibilityVersion: { version: '5.0' }
2. The arbiters all report featureCompatibilityVersion: { version: '6.0' }
3. The config replicas all report featureCompatibilityVersion: { version: '5.0', targetVersion: '5.0', previousVersion: '6.0' }
Unlike the linked question, there was no obvious error from the attempt to set the FCV (no tables reported as incompatible, it just deadlocks).
Is there any reasonable way to diagnose and correct this problem and get us back to a working 5.0
FCV (and then downgrade the binaries, at least for mongos
since they're the entry point that's likely responsible for the incompatibility with our code, since the code doesn't talk to the mongod
s directly)?
ShadowRanger
(101 rep)
Jan 16, 2025, 03:19 AM
3
votes
1
answers
567
views
Can we downgrade edition from SQL Server 2016 Enterprise to Standard when we have compression feature enabled?
I have a production database running on SQL Server 2016 Enterprise. I ran the below query to check the edition-specific feature and see the compression feature in use. Can we still downgrade the edition? Query ---------- SELECT feature_name FROM sys.dm_db_persisted_sku_features; GO Output ----------...
I have a production database running on SQL Server 2016 Enterprise. I ran the below query to check the edition-specific feature and see the compression feature in use. Can we still downgrade the edition?
Query
----------
SELECT feature_name
FROM sys.dm_db_persisted_sku_features;
GO
Output
----------
feature_name
----------
Compression
Vikas Kanoujiya
(31 rep)
Jun 11, 2024, 02:12 PM
• Last activity: Jun 11, 2024, 02:49 PM
2
votes
0
answers
364
views
SQL Edition Downgrade Impact on Jobs
We’ve made a downgrade from Enterprise Evaluation Edition to Standard and we saw the overnight jobs all running much longer. These are ETL packages and stored procedures to load data from an application server to a DW server (which was also downgraded from Enterprise to Standard). All other settings...
We’ve made a downgrade from Enterprise Evaluation Edition to Standard and we saw the overnight jobs all running much longer. These are ETL packages and stored procedures to load data from an application server to a DW server (which was also downgraded from Enterprise to Standard). All other settings haven't changed, including configuration and network etc.
It seems the performance took a hard hit, but we don't know where to start?
The downgrade was performed by a third-party vendor and steps are as suggested on the [MS SQLTips website](https://www.mssqltips.com/sqlservertip/3079/downgrade-from-sql-server-enterprise-edition-to-standard-edition/) .
We didn't move to a new server, just reinstalled SQL Server; copy out and back in the sys databases. We've checked the scale limits, we have 16 cores and max memory set to 70G, DW size around 900G which all within the range of limit of Standard Edition. And I believe, the core engine is the same as Enterprise. We do not utilise any features in Scale and Performance box too. Configurations all the same as master db copied.
yang
(41 rep)
Oct 16, 2017, 02:48 PM
• Last activity: Mar 12, 2024, 08:38 AM
1
votes
2
answers
375
views
SQL Developer edtion as a new node within an Enterprise Availability Group
We currently have a 2 node Availability Group in our test environment running SQL Server 2017 Enterprise Edition. I need to downgrade these both to Developer edition, since we are not using this in a production environment, and the use of licenses for Enterprise Edition is cost-prohibitive. My initi...
We currently have a 2 node Availability Group in our test environment running SQL Server 2017 Enterprise Edition.
I need to downgrade these both to Developer edition, since we are not using this in a production environment, and the use of licenses for Enterprise Edition is cost-prohibitive.
My initial plan is:
1) Uninstall the secondary node, install Developer 2017
2) Sync over jobs, logins, etc via DbaTools PS library
3) Add the newly built Developer instance to the existing AG on the primary node
4) Failover and test in Developer instance. If all is well, repeat on old primary node.
My initial feeling is that this "should" work given that Developer Edition has all the features Enterprise Edition has. The pessimist in me feels that Microsoft will definitely not let me do this and how would you match the patch levels for a different version!?!
Has anyone had experience with this before or know if it's possible?
My fall back is to migrate the databases manually into the newly built instance on the passive via backup/restore, eventually creating a new AG to finish the project off.
user3346030
(11 rep)
Feb 21, 2024, 04:26 PM
• Last activity: Feb 22, 2024, 07:59 PM
2
votes
1
answers
2754
views
How to Downgrade MySQL from 8.0.33 to 8.0.28
I need to downgrade because I cannot use MySQL for Excel add-in. How can I do it? I use windows 8. There is no information on the MySQL's website.
I need to downgrade because I cannot use MySQL for Excel add-in. How can I do it? I use windows 8.
There is no information on the MySQL's website.
Ömer Faruk VERGİSİZ
(23 rep)
Apr 21, 2023, 02:41 PM
• Last activity: Apr 22, 2023, 12:16 PM
1
votes
2
answers
1224
views
how to downgrade mysql on Debian 10 from 8.029 to 8.02x
I have MySQL installed on my test server (Debian 10). I recently updated it to the newest version (8.0.29), but there are some issues with it so I want to go back to an older version (8.0.28). But I can't for the life of me figure out how to do so. I have removed the existing database, and tried to...
I have MySQL installed on my test server (Debian 10). I recently updated it to the newest version (8.0.29), but there are some issues with it so I want to go back to an older version (8.0.28). But I can't for the life of me figure out how to do so.
I have removed the existing database, and tried to re-install it using:
apt-get install mysql-server=8.0.28-1debian10
but that didn't work, and suggested I run:
apt --fix-broken install
which of course upgraded it to the latest version again.
I have tried numerous variations of this,but all result in mysql-server can't be found
or similar errors.
I have been scouring the internet, and there seems to be lots of people asking similar questions, but no real solutions. Even the official MySQL documentation glosses over this bit.
Can it be done? And if so, how?
It's only a test database so I have no issues with scrapping it and starting again.
IGGt
(2276 rep)
May 5, 2022, 01:49 PM
• Last activity: May 6, 2022, 02:56 PM
0
votes
1
answers
704
views
db2 - Downgrade of upgraded instance and database?
So far I have always "upgraded" database using clean install (new Linux install etc) inside virtual machine. But now I have requirement to upgrade Db2/Linux from Db2 v11.1 to Db2 v11.5 installed on physical machine (not virtual machine). Existing instance Db2 v11.1 is installed on the machine. 1. Du...
So far I have always "upgraded" database using clean install (new Linux install etc) inside virtual machine.
But now I have requirement to upgrade Db2/Linux from Db2 v11.1 to Db2 v11.5 installed on physical machine (not virtual machine).
Existing instance Db2 v11.1 is installed on the machine.
1. During installation I have got error about incompatible libraries, so it was forced to use db2rmln command to remove Linux links to libraries.
2. After install it was required to upgrade (not update!) instance and I did it with: ./db2iupgrade
3. Then migrate database.
I am just wondering in case of some bad luck. Is it possible to downgrade the instance and database from V11.5 to V11.1? Is downgrading supported between two Db2 releases?
folow
(523 rep)
Apr 7, 2022, 01:18 PM
• Last activity: Apr 7, 2022, 02:51 PM
2
votes
1
answers
2903
views
Can I downgrade from SQL Server 2017 CU25 to CU20?
New instance of SQL Server 2017. I chose to install up to CU25 during the initial installation. Been using the database for a few months, but it seems to have a memory leak when using memory-optimized tables which causes it to crash overnight sometimes. I have another instance with the same jobs and...
New instance of SQL Server 2017. I chose to install up to CU25 during the initial installation. Been using the database for a few months, but it seems to have a memory leak when using memory-optimized tables which causes it to crash overnight sometimes.
I have another instance with the same jobs and hardware on CU20 and it has never had this problem. Leads me to believe this is a CU25 issue.
I'd like to downgrade to CU20 to see if this fixes the issue. What is the best way of doing this?
eek
(133 rep)
Sep 11, 2021, 11:11 AM
• Last activity: Sep 11, 2021, 03:43 PM
2
votes
5
answers
2186
views
CREATE Windows User in database for not existing domain
Is it possible to create a Windows User in the database when the domain is not accessible? I am preparing database at my dev environment outside of the targeted domain. Created user is not expected to work at my dev of course. I am trying: CREATE USER [NOTEXISTINGDOMAIN\User1] WITHOUT LOGIN; But get...
Is it possible to create a Windows User in the database when the domain is not accessible?
I am preparing database at my dev environment outside of the targeted domain.
Created user is not expected to work at my dev of course.
I am trying:
CREATE USER [NOTEXISTINGDOMAIN\User1] WITHOUT LOGIN;
But getting an error:
Windows NT user or group 'NOTEXISTINGDOMAIN\User1' not found. Check the name again.
I have searched for help and it seems there is no way...which I don't believe much cause this seems to me like relevant scenario.
**ADDITION:**
Let me explain my scenario. My task is to downgrade database to older MS SQL Server (SQL 2017 to SQL 2016 to be precise). I cannot do this in customers environment (and domain, DC) cause obviosly there is no both MS SQL versions available. So I amd doing the downgrade in my dev. And I want to prepare the database for my customer with all objects in it, including users of all types, including Windows Users - so when my customer restores the database everything is ready and the same as in original database.
Obviosly I'll have to create users later after restoring the database in the customers environment.
jericzech
(977 rep)
Feb 4, 2021, 11:51 AM
• Last activity: Feb 5, 2021, 03:20 PM
4
votes
1
answers
7382
views
How to prevent pg_dump from generating "SET default_table_access_method=heap;"?
I have a big dump file that is generated by `pg_dump` that comes with PostgreSQL v12 client, and it is in customized format instead of plain sql text. The version of the server is PostgreSQL v12 too. Now I need to reload the file into a PostgreSQL v11 server, and I get a error message: ```none unrec...
I have a big dump file that is generated by
pg_dump
that comes with PostgreSQL v12 client, and it is in customized format instead of plain sql text. The version of the server is PostgreSQL v12 too.
Now I need to reload the file into a PostgreSQL v11 server, and I get a error message:
unrecognized configuration parameter "default_table_access_method"
I guess that this parameter is introduced by PG12, so PG11 can't recognize it, even though I use the 12 version of pg_restore
.
Because the file is huge and in binary format, I can NOT edit it to remove the line manually.
I tested that pg_restore test_file -f plain.sql
with a test dump file, and it looks like work, and I can remove the line from the plain SQL file.
But the real dump file is about 30GB, the plain SQL file expanded from the binary might be bigger (the working database occupies 300GB disk space).
**Is there a way in it, I can cleanly reload it into PG11, only without the line "SET default_table_access_method = heap;"?**
In fact, the following all can be ignored, because they are all default values:
SET statement_timeout = 0;
SET lock_timeout = 0;
SET idle_in_transaction_session_timeout = 0;
SET client_encoding = 'UTF8';
SET standard_conforming_strings = on;
SELECT pg_catalog.set_config('search_path', '', false);
SET check_function_bodies = false;
SET xmloption = content;
SET client_min_messages = warning;
SET row_security = off;
SET default_tablespace = '';
Leon
(411 rep)
Jan 29, 2021, 11:56 AM
• Last activity: Jan 29, 2021, 02:00 PM
0
votes
1
answers
6733
views
How to properly downgrade mysql 8 to 5.7 in centos 8
I would like to downgrade MySQL 8 to MySQL 5.7 on centos 8, can I get the proper steps/commands. Thanks in advance.
I would like to downgrade MySQL 8 to MySQL 5.7 on centos 8, can I get the proper steps/commands. Thanks in advance.
Ajmalriyaz
(1 rep)
Dec 18, 2020, 06:34 AM
• Last activity: Dec 18, 2020, 07:56 AM
0
votes
1
answers
4915
views
Downgrade SQL Server from Enterprise to Developer edition in an Availability Group
I will be transitioning some non-production SQL environments from Enterprise to Developer edition over the next few months. I'm pretty settled on the procedure I will be using, which is laid out in this blog post: [Downgrading SQL Server Editions][1] [1]: https://www.sqlskills.com/blogs/jonathan/dow...
I will be transitioning some non-production SQL environments from Enterprise to Developer edition over the next few months. I'm pretty settled on the procedure I will be using, which is laid out in this blog post:
Downgrading SQL Server Editions
I have not been able to find any information specific to any special precautions needed when doing this in an environment with Availability Groups. We have a 2 node Synchronous commit AG. Considering we are going from Enterprise to Developer, I am not concerned with Enterprise only features being an issue. My assumed workflow will be:
1. Downgrade the secondary first according to the blog post above, make sure everything is synchronized afterwards.
2. Fail over to the secondary(now on developer edition)
3. Downgrade the old primary, and make sure db's are synced up.
It's essentially the same process I use for rolling patches and upgrades, but not sure if there are special considerations for downgrading editions... Anyone have any issues doing this?
DBA Greg14
(265 rep)
Dec 2, 2020, 09:53 PM
• Last activity: Dec 6, 2020, 04:29 PM
2
votes
3
answers
8143
views
Can we downgrade from 19c to 12.1.0 if the compatibility is set to 12.2.0
Team: Recently i upgraded a 12.1.0 database to 19c (non CDB architecture). Current compatibility is set to 12.2.0. Can I downgrade it to the earlier version - 12.1.0? Documentation states the downgrade is possible but am not sure about the compatibility parameter. https://docs.oracle.com/en/database...
Team:
Recently i upgraded a 12.1.0 database to 19c (non CDB architecture). Current compatibility is set to 12.2.0. Can I downgrade it to the earlier version - 12.1.0? Documentation states the downgrade is possible but am not sure about the compatibility parameter.
https://docs.oracle.com/en/database/oracle/oracle-database/19/upgrd/downgrading-oracle-db-after-upgrade.html#GUID-59F92E2A-DC4D-46A3-9AC9-63F47BE4A86F
The Owl
(27 rep)
Oct 31, 2020, 06:47 PM
• Last activity: Nov 17, 2020, 01:58 PM
1
votes
0
answers
310
views
What kind of complications would I face downgrading from MySQL 8 to MySQL 5?
Let's assume I wanted to downgrade to from MySQL 8 to MySQL 5.7. [I know this isn't supported](https://dev.mysql.com/doc/refman/8.0/en/downgrading.html), but what kind of complications am I likely to encounter. The docs say, > The only supported alternative is to restore a backup taken ***before***...
Let's assume I wanted to downgrade to from MySQL 8 to MySQL 5.7. [I know this isn't supported](https://dev.mysql.com/doc/refman/8.0/en/downgrading.html) , but what kind of complications am I likely to encounter.
The docs say,
> The only supported alternative is to restore a backup taken ***before*** upgrading. It is therefore imperative that you backup your data ***before*** starting the upgrade process.
Let's say I buck the caveat, and dump on 8 and revive on 5.7? What should I expect? [Dumping on 5.x would product comments like](https://dev.mysql.com/doc/refman/8.0/en/extensions-to-ansi.html)
/*!40101 SET character_set_client = @saved_cs_client */;
These comments are documented as,
> If you add a version number after the
!
character, the syntax within the comment is executed **only if the MySQL version is greater than or equal to the specified version number**.
Are those kind of comments still produced by version 8? If so, what kind of scenarios would they not cover?
Evan Carroll
(65502 rep)
Feb 14, 2020, 04:27 PM
• Last activity: Feb 19, 2020, 09:40 PM
1
votes
2
answers
2750
views
Downgrading SQL Server database and moving it to another computer
I have created database on my computer using SQL Server 2019, and now i want to move it to another computer that has SQL Server 2014 installed on it. Do I have to download SQL Server 2014 and downgrade the database or there is another solution for it? What should I do?
I have created database on my computer using SQL Server 2019, and now i want to move it to another computer that has SQL Server 2014 installed on it.
Do I have to download SQL Server 2014 and downgrade the database or there is another solution for it? What should I do?
Keno Ps
(19 rep)
Jan 30, 2020, 10:52 AM
• Last activity: Jan 30, 2020, 03:25 PM
-1
votes
1
answers
2970
views
How to downgrade sqlite3 that comes with Python and Django
So I am stuck in this problem: https://stackoverflow.com/questions/53637182/django-no-such-table-main-auth-user-old I can't upgrade Django because many other applications are connected to it using version 2.1. The only approach is to edit the sqlite3. Currently, I am using SQLITE3 3.26.0 and I want...
So I am stuck in this problem: https://stackoverflow.com/questions/53637182/django-no-such-table-main-auth-user-old
I can't upgrade Django because many other applications are connected to it using version 2.1. The only approach is to edit the sqlite3. Currently, I am using SQLITE3 3.26.0 and I want to downgrade to 2.5.1. How can I do this?
Nano
(139 rep)
Oct 4, 2019, 04:46 PM
• Last activity: Nov 3, 2019, 06:02 PM
1
votes
3
answers
15013
views
Downgrading PostgreSQL 10 to 9.4
Are there any particular precautions I should take when downgrading PG 10 to 9.4? I have a database on Heroku (PG 9.4) which I'm going to upgrade to PG 10.6. In case something goes wrong, I want to be able to go back to 9.4. Things I already tested: 1. create a backup of the already upgraded PG 10.6...
Are there any particular precautions I should take when downgrading PG 10 to 9.4?
I have a database on Heroku (PG 9.4) which I'm going to upgrade to PG 10.6. In case something goes wrong, I want to be able to go back to 9.4.
Things I already tested:
1. create a backup of the already upgraded PG 10.6 DB (Heroku creates binary compressed dumps)
2. create a new PG 9.4 DB
3. upload the backup from step 1. to DB from step 2
The backup seems to be restored properly. What should focus on in particular to be sure this procedure is all right? Are there any other ways to downgrad PostgreSQL?
pmichna
(323 rep)
Dec 14, 2018, 11:46 AM
• Last activity: Oct 30, 2019, 05:41 PM
34
votes
4
answers
23224
views
How to move a database from SQL Server 2012 to SQL Server 2005
What are my options if I need to move a database from SQL Server 2012(32bit) to SQL Server 2005(64bit)? I know I cannot: - restore a backup of the database on SQL Server 2005 - detach & attach I know I can: - use import data wizard, and I tried it on one database, but it only moves data, and even th...
What are my options if I need to move a database from SQL Server 2012(32bit) to SQL Server 2005(64bit)?
I know I cannot:
- restore a backup of the database on SQL Server 2005
- detach & attach
I know I can:
- use import data wizard, and I tried it on one database, but it only moves data, and even that was troublesome as I needed to do a lot of work creating temp tables to maintain identity columns, recreating all FKs, indexes etc.
Is there an easier option?
Greg Bala
(1025 rep)
Dec 15, 2013, 02:56 PM
• Last activity: May 26, 2019, 01:31 PM
0
votes
0
answers
260
views
Restoring backup with a MySQL Database downgrade
I want to migrate a MySQL 5.7 database to a MySQL 5.1 version because the MySQL version of the server I’m migrating my WordPress webpage is 5.1. I tried to do it in the usual way but it was not possible. Moreover, I read on this webpage: https://dev.mysql.com/doc/mysql-enterprise-backup/3.12/en/rest...
I want to migrate a MySQL 5.7 database to a MySQL 5.1 version because the MySQL version of the server I’m migrating my WordPress webpage is 5.1. I tried to do it in the usual way but it was not possible. Moreover, I read on this webpage:
https://dev.mysql.com/doc/mysql-enterprise-backup/3.12/en/restore-upgrade.html
that restoring to an older MySQL version should only be performed when the original and the final server versions are in the same release series.
I was wondering what other options I have besides creating the WordPress webpage from scratch using the MySQL 5.1 version this time.
andrestoga
(1 rep)
May 10, 2019, 09:25 PM
Showing page 1 of 20 total questions