donyd — 2011-07-15T18:53:47-04:00 — #1
I'm reading the 4th edition of Database driven...with MySQL and PHP. I've had most of my issues with the other components sorted with info from this site, however, after reaching
Post-Installation Set-up Tasks
trying to check MySQL status query mysqladmin -u root status in the command prompt I get the following message:
mysqladmin: connect to server at 'localhost' failed
error: 'Access denied for user 'root'@'localhost' (using password: NO)
I've installed the MySQL community server 5.5.14 using the Windows (x86, 32-bit), MSI Installer and mysqld.exe is running in processes. If anyone could shed some light on the matter, it would be great.
I've been bogged down on just installing the components for the last 2 days. Since the book says it's better to do it separately, i.e. learn more i'm trying to stick to it, but i'd really just get started on the coding and other aspects of the languages.
dan_grossman — 2011-07-15T21:40:44-04:00 — #2
donyd — 2011-07-16T02:34:56-04:00 — #3
I tried that and the option to set password from the book. However my MySQL installation dir only has one .ini and two .bak files and nothing else. Maybe I have downloaded the wrong version?
dan_grossman — 2011-07-16T03:21:36-04:00 — #4
I don't understand your response. You should have only one .ini file (my.ini in Windows, my.cnf in Linux). How is this related to changing your password?
donyd — 2011-07-16T18:35:38-04:00 — #5
Sorry I meant that the directory MySQL was installed to had only 'my.ini' and two .bak files and there were no bin directories or anything else. I've reinstalled it and everything seems to be in order and i've just successfully reset and connected to MySQL. Thank you so much for your help.