I am starting to use php and I can't seem to get mysql to work for me. I am running php 4.3.10, apache 2.0, and mysql 4.1.9. My harddrive got erased but i had backups of my php files so i installed php, apahce and mysel on the new harddrive. When tried running a page with a call to mysql_connect it always gives me the error:
Warning: mysql_connect(): Access denied for user 'ODBC'@'localhost' (using password: NO) in C:\Program Files\Apache Group\Apache2\htdocs\project2\login.php on line 7
Could not connect to database server
does anyone know whats goign on?
Last edited by James M. on Tue Feb 01, 2005 1:34 am, edited 1 time in total.
How would i go about finding out if i have a password and username for mysql, the version i had before had this monitor tool that gave me info like that, but this version is just cmd programs.
ok well basically your error is saying you dont have permission and you arent using a password
so first of recode your connect statement so you have a password and then if you still get the error make sure your user has proper permissions for whatever you are doing
I don't have phpmyadmin, and i have never set up a username or password for mysql (i dont even see that option anymore). This is running off my computer by the way.
edit: i can't even access the databse from mysyladmin.exe, gives me the same error