last day (15 days later) » 

2:27 PM
0
A: Node.js doesnot connect with MySQL, PHPMyAdmin

owaishanif786In the ../utils/database set username to "root" and leave password empty or "" as it's default setting in windows lamp and xamp settings. EDIT var mysql = require('mysql'); var c = mysql.createConnection({ host : 'localhost', // port : '3306', user : 'root', password : '', ...

 
Bik
Yes, I've added the database.js file in the edit above.
 
i have done edits. keep the password field empty
 
Bik
The login page does not accept an empty password field. It shows error: "Please fill out this field."
 
which login page? goto localhost/phpmyadmin and check what credentials working over there
 
Bik
The tables are empty in database. The credentials need to be added in database in phpmyadmin. But the username and password set over there doesn't work on the login page. What am I not getting here?
 
2:27 PM
just answer this simple thing. what are the username and password when you go to this page "localhost/phpmyadmin" i am not asking application or any other password.
 
Bik
The username is 'root' and the password is empty, but when I do that in the login page of manager.js it asks to enter sth in the password field and says it can't be left empty.
 
what are you using xamp? wamp?
go and change mysql password to "root"
 
Bik
Thank you so much for helping me! :) I'm using wamp
 
ok do you know how to change password in wamp?
mysql password ?
if not i will help you
 
Bik
i can figure it out
if it's easy please guide me
 
2:31 PM
ok goto wamp logo click on mysql and open mysql console
 
Bik
done
i just pressed enter
since it needs no pws
pwd*
 
SET PASSWORD for 'root'@'localhost' = password('root');
 
Bik
mysql> SET PASSWORD for 'root'@'localhost' = password('root');
Query OK, 0 rows affected, 1 warning (0.07 sec)
 
now in your database settings file set it to "root" and try again to login
oh wait password is not set 0 rows affected
 
Bik
yes it says username or password incorrect
do you have teamviewer? is it possible to connect with you via teamviewer?
 
2:35 PM
try to login using mysql -u "root" -p "root"
 
Bik
in mysql console?
 
Bik
it would be easier with a teamviewer connection
 
right now busy wait after hour
 
Bik
still says username or password incorrect when i try to login to the webpage
 
2:38 PM
if you can wait
 
Bik
yes i can definitely wait for an hour
it would be great help to me
please reply when you're available
 
Bik
thank you so much :)
 
 
1 hour later…
Bik
3:44 PM
hey are you there?
 
yes
send your
teamviewer
wait i have to download teamviewer
are you there
can you send me to connect
 
Bik
3:59 PM
yes
I'm here
are you available?
my teamviewer id is: 922 594 188
 
Bik
7972
me here
perhaps we should communicate here
or a notepad?
stackoverlow chat is ok
 
Bik
4:15 PM
Hey are you there?
 
just wait 1 min
 
Bik
ok
 
5:07 PM
bye
 
Bik
bye :)
 

  last day (15 days later) »