Hi Dears,
I keep getting this error “Table ‘tabDefaultValue’ missing” and here is the full error body
Table ‘tabDefaultValue’ missing in the restored site. Database not installed correctly, this can due to lack of permission, or that the database name exists. Check your mysql root password, validity of the backup file or use --force to reinstall
The command I was running is: bench new-site library.test inside the bench folder.
I’ve tried to find a similar issue opened but couldn’t
❯ bench new-site testdevelop.localhost --install-app erpnext --admin-password admin --force
WARN: bench is installed in editable mode!
This is not the recommended mode of installation for production. Instead, install the package from PyPI with: `pip install frappe-bench`
MySQL root password:
ERROR 4047 (HY000) at line 10: InnoDB refuses to write tables with ROW_FORMAT=COMPRESSED or KEY_BLOCK_SIZE.
Table 'tabDefaultValue' missing in the restored site. Database not installed correctly, this can due to lack of permission, or that the database name exists. Check your mysql root password, validity of the backup file or use --force to reinstall
I replaced ROW_FORMAT=COMPRESSED to ROW_FORMAT=DYNAMIC everywhere and it worked.
tried above setting and also tried
[mysqld]
skip-innodb-read-only-compressed
continue to get same error message. verified that above setting was being loaded with the # myslqd --print-defaults command. Also verified:
MariaDB [(none)]> SHOW VARIABLES LIKE 'innodb_read_only_compressed';
+-----------------------------+-------+
| Variable_name | Value |
+-----------------------------+-------+
| innodb_read_only_compressed | OFF |
+-----------------------------+-------+
AS @revant_one suggested - the solution lies in modifying frappe framework and not in Mariadb setting? Any suggestions?
Was my problem - on a fresh install of erpnext in Ubuntu 20.04 with mariadb on a remote server, still need to run the command on ERP server : apt install mariadb-client && apt install libmariadbclient-dev (for my future reference)
the correct setting for mariadb 10.6 is as highlighted above:
Table ‘tabDefaultValue’ missing in the restored site. Database not installed correctly, this can due to lack of permission, or that the database name exists. Check your mysql root password, validity of the backup file or use --force t reinstall
you have to install mysql client in your host machine. When using a remote database such as mariadb docker image like i did,
I am stuck with this error for almost a week now, on ubuntu 22.04, I tried to change the my.cnf file as mentioned, I installed the client and still stuck with same error, it is a fresh installation. any help?
I got the solution, Make sure to comment all [server], [mysqld] and [mysq] sections in 50-server.cnf and keep them in my.cnf, because two files conflicts together, then reinstall sql using
$sudo mysql_secure_installation and restart your machine.
mysql: unknown variable 'pid-file=/run/mysqld/mysqld.pid'
Table 'tabDefaultValue' missing in the restored site. Database not installed correctly, this can due to lack of permission, or that the database name exists. Check your mysql root password, validity of the backup file or use --force to reinstall