Hi All,
I need some help with configuration and would appreciate if you guys could provide me some guidance or point me to the right direction.
I have been struggling these last few weeks to install ERPNext on one server and have the database on another server.
I have read through the forum in search of guidance and tried almost everything i found.
Adding the below to both the site_config.json and common site did not help also.
_“db_host”: “10.0.1.7”,
_“db_port”: “3306”,
After adding the above, i ran the below query to create the database.
bench new-site site1.local --db-name erpnext --mariadb-root-username root --mariadb-root-password Password.2 --install-app erpnext --verbose --force
With the above, i noticed that the database was created in the remote server but it stopped at this error.
Created user erpnext
Created database erpnext
Granted privileges to user erpnext and database erpnext
Starting database import…
Imported from database /home/frappe/frappe-bench/apps/frappe/frappe/data/Framework.sql
Database not installed, this can due to lack of permission, or that the database name exists.
Check your mysql root password, or use --force to reinstall
I tried the below sql to provide additional access right to the user but it did not work.
GRANT ALL PRIVILEGES ON erpnext.* TO ‘erpnext’@‘10.0.1.15’ IDENTIFIED BY ‘password’ WITH GRANT OPTION;
The password in the query comes from the site_config.json file for the site.
10.0.1.15 is the server where i have installed ERPNext.
I would really appreciate if you could provide any help. I don’t know what else to try.
Many Thanks.