mysql

PHP Login Script Not Linking With Database  #angularjs #reactjs

  • It seems like the password is not right for user root also i would suggest you to use the constants for connecting to mysql which u have already defined.
  • there is no password set – Bernd Buffen 2 hours ago
  • Warning: mysql_select_db(): Access denied for user ‘hkode’@’localhost’ (using >password: NO) in /home/hkode/public_html/dbconnect.php on line 13
  • Go to your database and check if user root actually does not require a password.

Warning: mysql_connect(): Access denied for user ‘root’@’localhost’ (using >password: NO) in /home/hkode/public_html/dbconnect.php on line 12

@ng_real_ninja: PHP Login Script Not Linking With Database #angularjs #reactjs

Then change

to

On a further note the comment

Suggest you don’t use these methods. You should only do this if you absolutely know what you are doing, which seems like you do not.

I highly suggest using something like laracasts to learn php. Good luck

It seems like the password is not right for user root also i would suggest you to use the constants for connecting to mysql which u have already defined. i would rewrite connection statement and subsequent statement something like this

Try this

Edited Check all passwords

Go to your database and check if user root actually does not require a password. If it does then insert it as a third parameter in the empty single quotes below. Now use the code below and you will be just fine. Happy new year.

mysql