hi when i want to create a database using php code it says : Access denied for user ''@'localhost' to database 'my_db' i am sure that username and password are true note that it connect to the server with no problems but when i want to create a database in the server it says : Access denied for user ''@'localhost' to database 'my_db'
can you publish your solution? im just curious, but i think other people can appreciate it.. especialy those, who will experience same problem in the future
ok i will tell u the solution first i have 3 variables , no problem here the value of var 1 is the mysql server the value of var 2 is the username the value of var 3 is the password no problems here so to connect to the database i must use mysql_connect() i typed mysql_connect("var1,var2,var3"); here i found the problem variables must not typed between "" so , i corrected it , the correct syntax is mysql_connect(var1,var2,var3); that's the solution
this is an error associated to username or password being invalid. try focusing on connecting properly. - Sumer Kolcak