So my problem has had me bashing my head against a wall trying to figure out what is going on, I'm hoping somebody here might know what is going on.
Basically I am trying to access mysql so that users who go to my site can register an account and their information will be put into a database (simple enough). I am using a homemade php script for this.
The Problem: When I try to execute the registration process I recieve this error:
Access denied for user 'root'@'localhost' (using password: NO)
Now my connection file for establishing the connection to the database does not have any of the above information in it. Why would my script attempt to connect to the database using this information when I have clearly laid out the host, username, and password that it should be using to connect to the database (aka: the information that corresponds to the database and user I created in my plesk panel)?
I understand that the root is not allowed access to mysql for security reasons, but I'm just trying to figure out why I'm getting this error and how I can fix it. Maybe this is a very simple fix, as this is my first time hosting on a virtual private server, but right now I'm stumped.
Any help is much appreciated!
Basically I am trying to access mysql so that users who go to my site can register an account and their information will be put into a database (simple enough). I am using a homemade php script for this.
The Problem: When I try to execute the registration process I recieve this error:
Access denied for user 'root'@'localhost' (using password: NO)
Now my connection file for establishing the connection to the database does not have any of the above information in it. Why would my script attempt to connect to the database using this information when I have clearly laid out the host, username, and password that it should be using to connect to the database (aka: the information that corresponds to the database and user I created in my plesk panel)?
I understand that the root is not allowed access to mysql for security reasons, but I'm just trying to figure out why I'm getting this error and how I can fix it. Maybe this is a very simple fix, as this is my first time hosting on a virtual private server, but right now I'm stumped.
Any help is much appreciated!