@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.
extremely sorry for the late reply. try the following steps
log into mysql, you can use bench mysql
set privileges as follows: grant all privileges on databaseName TO ‘user’ @‘%’ identified by ‘password’ with grant option; hit enter
enter flush privileges; hit enter
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…
add another line, #skip-networking
save file, restart server
please dont make a mistake in the conf file.
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…
Can you please explain this step? i am unable to find my.cnf file.
@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
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?
@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' @'%' ;
hey hii
i am got this error at connect server time how to solve dear i am confused how to solved… i am confused.
Connection failed with error: Authentication to host ‘192.168.0.15’ for user ‘root’ using method ‘mysql_native_password’ failed with message: Access denied for user ‘root’@‘192.168.0.102’ (using password: YES)