-
Star
(161)
You must be signed in to star a gist -
Fork
(73)
You must be signed in to fork a gist
-
-
Save nakamuraos/717eb99b5e145ed11cd754ad3714b302 to your computer and use it in GitHub Desktop.
I got this error: reset-trial-navicat.sh: 23: [[: not found
Did I do something wrong?
I got this error: reset-trial-navicat.sh: 23: [[: not found Did I do something wrong?
Run it as sudo
I got this error: reset-trial-navicat.sh: 23: [[: not found Did I do something wrong?
Run it as sudo
still the same error bruh :<
still the same error bruh :<
What distro do you use?
What distro do you use?
I am using Ubuntu 22.04
What distro do you use?
I am using Ubuntu 22.04
Can you show screenshot how do run command, and the result? It works good on ubuntu 22.04
@Cien267 use
sudo ./reset-trial-navicat.sh
I think this script uses bash commands in it. And sh can't normally execute
@dotmitsu
I try chmod +x and run "./" instead of "sh" and it works. Thank you very much <3
confirm it works on 17.0
really works. Thank you
confirm it works on 17.1
Thank you
it works
find preferences.json preferences.json.lock
remove them
start navicat
Is there a win version available
Funciona, muchas gracias
Is there no chance of data or databases being deleted?
Is there no chance of data or databases being deleted?
Short answer: No, absolute.
Navicat is a database management tool, and it doesn't store your data. The connections in Navicat are just login information and configurations to access databases on remote servers.
This script only modifies Navicat's trial data (such as registry entries or configuration files), it won't affect your actual database data. However, it's still a good idea to backup your navicat data in case you have multiple important connection configurations, and newer versions of Navicat have changes in how connection configurations are stored.
You save my life, thank you so much.
It works but it doesn't in 17.3.2. I am using Ubuntu 22.04.
It works but it doesn't in 17.3.2. I am using Ubuntu 22.04.
@i-oc Can you show me a screenshot after running this script?

┌──────────────────────────────────────┐
│ !!! WARNING !!! │
├──────────────────────────────────────┤
│ ALL DATA can be destroyed. │
│ Always BACKUP before continuing. │
└──────────────────────────────────────┘
Report issues:
https://gist.github.com/nakamuraos/717eb99b5e145ed11cd754ad3714b302
Reset trial Navicat Premium:
Are you sure? (y/N) y
Starting reset...
=> Creating a backup...
The user dconf backup was created at /home/michale/.config/dconf/user.20250923_094844.bk
cp: 对 '/home/michale/.config/navicat/Premium/preferences.json' 调用 stat 失败: 没有那个文件或目录
The Navicat preferences backup was created at /home/michale/.config/navicat/Premium/preferences.json.20250923_094844.bk
=> Resetting...
./reset-trial-navicat.sh: 行 43: dconf: 未找到命令
The user dconf data was reset
sed:无法读取 /home/michale/.config/navicat/Premium/preferences.json:没有那个文件或目录
The Navicat preferences was reset
Done.
./reset-trial-navicat.sh: 行 43: dconf: 未找到命令
@MIchale-GPT It seems that dconf is not installed on your system. You can install it using the command:
sudo apt install dconf-cli
It works but it doesn't in 17.3.2. I am using Ubuntu 22.04.
@i-oc Can you show me a screenshot after running this script?


It works but it doesn't in 17.3.2. I am using Ubuntu 22.04.
@i-oc Can you show me a screenshot after running this script?
![]()
@i-oc I've run this script on Navicat 17.3.2 and Ubuntu 22.04, and it still works. Did you completely exit Navicat before running this script? Can you check that the output of ps aux | grep navicat
does not include any Navicat process?
It works but it doesn't in 17.3.2. I am using Ubuntu 22.04.
@i-oc Can you show me a screenshot after running this script?
![]()
@i-oc I've run this script on Navicat 17.3.2 and Ubuntu 22.04, and it still works. Did you completely exit Navicat before running this script? Can you check that the output of
ps aux | grep navicat
does not include any Navicat process?
I’m not sure why it isn’t working on your computer. How did you install and run Navicat?
Sorry,I think I found the reason.Since the lite version has not been deleted and is in the same directory, you can reset it by deleting and reinstalling it.
is there any way to "hide" the trial reminder?
No. It'll keep all current settings, your connections will remain in place.