Where do we get
- mysql database name
- mysql user name
- mysql password
Please help.
Where do we get
Please help.
In the file Site_config.json file inside the site
Do we also get Mysql Username and Password in site_config.json file?
@noetico Hi, i am very glad to see your struggle for building this feature.
i’ve also tried implementing this but it didn’t work.
i’ve downloaded this and set it up as per user manual.
I’ve putted ip, dbname , dbuser, dbpasword in setup.txt file
but when i am connecting it to server it show below error,
Connection failed with error: Unable to connect to any of the specified MySQL hosts.
please have look into it. your reply will be highly appreciated.
Have you set up the right privileges in mysql? also edit my.cnf; comment out skip-networking and bind-address, add # in front of both lines. Set privileges from the mysql command line.
Sorry buddy i’ve not got your point. please guide step by step or provide documentation if possible.
we have been done it for weighing machines on android!
extremely sorry for the late reply. try the following steps
all the best
Can you please explain this step? i am unable to find my.cnf file.
Try this
frappe@erpnext:~/frappe-bench$ find /etc -name '*.cnf' | xargs grep bind-address
find: `/etc/ssl/private': Permission denied
find: `/etc/polkit-1/localauthority': Permission denied
grep: /etc/mysql/debian.cnf: Permission denied
/etc/mysql/my.cnf:#bind-address = 127.0.0.1
/etc/mysql/my.cnf:bind-address = 0.0.0.0
I’ve tried this and below is the result :
/etc/ssl/openssl.cnf
find: ‘/etc/lvm/backup’: Permission denied
find: ‘/etc/lvm/archive’: Permission denied
/etc/mysql/mariadb.conf.d/erpnext.cnf
/etc/mysql/my.cnf
/etc/mysql/debian.cnf
/etc/mysql/conf.d/settings.cnf
/etc/mysql/conf.d/mysqld_safe_syslog.cnf
/etc/mysql/conf.d/mariadb.cnf
But still i am unable to find the file.
You say this is not the file you require /etc/mysql/my.cnf
In my case that file worked for me.
edit: Here are docs to be found Configuring MariaDB with Option Files - MariaDB Knowledge Base
@clarkej thanks for your reply actually i am new here, i don’t have enough knowledge of ERPNext as how much you have, i am just following @noetico 's these steps, i am stuck in step no 4. i am unable to understand it properly.
extremely sorry for the late reply. try the following steps
1 - log into mysql, you can use bench mysql
2 - set privileges as follows: grant all privileges on databaseName TO ‘user’ @’%’ identified by ‘password’ with grant option; hit enter
3 - enter flush privileges; hit enter
4 - edit my.cnf to allow external connections as follows, navigate to etc/mysql and open the my.cnf file, look for bind-address 127.0
0.1 add a # in front of it, before it like so, #bind-address…
5 - add another line, #skip-networking
6 - save file, restart server
please dont make a mistake in the conf file.
all the best
Right there /etc/mysql/my.cnf
Many thanks @clarkej & @noetico i’ve found the file my.cnf
but it is not allowing me to edit the file. my user name is frappe, and the file owner is root, but i don’t have the root password, where can i get root password?
For user ‘frappe’ to edit that file that user account must have sudo privileges.
Run this to identify if that’s the case for you:
frappe@erpnext:~/frappe-bench$ groups
frappe adm cdrom sudo dip plugdev lpadmin sambashare libvirtd
If not then you will need to obtain or reset the root password…
how are you running erpnext? well check this out:
if you are the server owner you can actually change the password fairly easily and use sudo.
@noetico I’ve finished all above 6 points, but still getting this error while Click on Connect Server
Connection failed with error: Unable to connect to any of the specified MySQL hosts.
Now please tell me what to do next?
ok, maybe you should query the mysql users and see, remember when you use the grant privileges the part with identified by ‘password’ should have the password for that user.
also do this and see what you have.
at the mysql prompt type
use mysql;
select host, user, password from user;
then whats the output for each of these…
show grants for 'user'@'localhost';
show grants for 'user' @'%' ;
replace user with user name like root or frappe
hi
i try to install application in window 8 but show message this package not install window 8 or later