Hello Guys,
At present i am doing one android application(Client-Server type).
I deployed two instances namely
1.)Tomcat Stack - to run servlets
2.)Lamp Stack - to perform jdbc operations
yes,i know ..tomcat stack itself contains mysql thing..but i want phpmyadmin also as my database is very big(lot of fields)..so installed Lamp Stack.
The following are the details given during jdbc connection from servlet.
String DriverName="com.mysql.jdbc.Driver";
String userName="root";
String password="root";
String driverManager="jdbc:mysql://localhost:3306/databasename";
I am getting the following exception
java.sql.SQLException: Access denied for user 'root'@'localhost' (using password: YES)
Upon googling ,i came to know that we have to grant all privileges.
So granted all privileges from the phpmyadmin itself.
But still the same exception.
As a trail , i created new user 'sai' with password 'sai' of host type 'any host' will all priviledges
String DriverName="com.mysql.jdbc.Driver";
String userName="sai";
String password="sai";
String driverManager="jdbc:mysql://localhost:3306/databasename";
java.sql.SQLException: Access denied for user 'sai'@'localhost' (using password: YES)
One source on google said that you should keep $cfg['Servers'][$i]['password'] = 'root'; on config.inc.php file
while downloading the config.inc.php file from the phpmyadmin directory of lamp instance through filezilla,it returns a empty file
I am unable to move to the next steps because of this problem.
So is there anyone who faced similar type of problem or who knows how to solve this problem???
Can any one tell why i am getting an empty config.inc.php file ????