Adaptation for Migrating from MySQL to Kingbase
KDTS Tool Usage Guide
Changing the Password of the Kingbase Database Administrator
After the Kingbase database is installed, the initial password of the system administrator account system is randomly generated. You can perform the following operations to change the initial password.
- Go to the database installation directory.
1cd /opt/Kingbase/ES/V8/KESRealPro/V008R006C008B0020/Server/bin
- Connect to the database.
1./ksql -U system -d KINGBASE
Enter the password of the system user as prompted.
1Password for user system:
- Change the password. Replace xxxxxx with the new password.
1alter user system with password 'xxxxxx';
Kingbase Database Compatibility Settings
Before data migration, adapt Kingbase parameters to MySQL. (Set the default value of the Kingbase database parameter mysql_interval_style to off.)
- Go to the data directory.
1cd /opt/Kingbase/ES/V8/data
- Open the kingbase.conf file and add the following content to the file:
1mysql_interval_style = on
- Restart the database.
1/opt/Kingbase/ES/V8/Server/bin/sys_ctl -D /opt/Kingbase/ES/V8/data restart
Kingbase Database Null Value Settings
In Kingbase, the default value of ora_input_emptystr_isnull is true. If the inserted field information is empty, the field information is automatically converted to NULL and written to the database. You need to set ora_input_emptystr_isnull to false.
- Go to the data directory.
1cd /opt/Kingbase/ES/V8/data
- Open the kingbase.conf file. Check whether the value of ora_input_emptystr_isnull is false. If it is not false, change it to false.
- Restart the database.
1/opt/Kingbase/ES/V8/Server/bin/sys_ctl -D /opt/Kingbase/ES/V8/data restart
Parent topic: References
