View Full Version : Cannot start MySQL. Please help..
01-26-2007, 03:37 AM
I have configure Apache and PHP successfully.
Then I try to configure MySQL. I have install it as Windows service and run it.
But when I type 'mysql' it says 'Access denied for user ODBC@localhost'.
Where exactly should I fix it?
Thank you so much for help.
01-26-2007, 03:40 AM
Not enough information.
01-28-2007, 12:53 AM
yes it is enough information. It is telling you that you don't have access for that user.
are you starting from a command prompt/shell? or are you using a GUI to start mysql?
Did you create a regular user when you installed mysql or only the root user? you should create a user and not rely on the root user. to test if the root user can connect, by default you only need to name the root user but no password.
01-28-2007, 04:44 AM
I install and run it from command prompt only, not by any GUI.
These are commands I have done:
- mysqld-nt --console
- mysqladmin -u root shutdown
- mysqld-nt --install
- net start mysql
then when I type 'mysql' it says the error message.
what is command I should use to make it clear?
Thank you very much.
01-28-2007, 03:14 PM
you can have mysql start as a service if that would be easier for you (I personally find that it is).
when you get to the point that you need to connect to the mysql client, instead of doing this:
and of course it would help if you answered whether or not you installed a regular user and whether or not you included a password for your root user.
01-30-2007, 01:08 PM
Yes, I run mysql -uroot and success. Thank you.. :thumbsup:
I've attached the error message when I type mysql.
What is command to add user so I don't need to add -uroot parameter?
Thank you.. :)
01-30-2007, 02:40 PM
GRANT syntax (http://dev.mysql.com/doc/refman/5.0/en/grant.html) from the manual.
01-30-2007, 03:57 PM
If you are using Windows, I seriously recommend that you obtain the Windows Essentials .msi version of mysql to install and configure the instance of the mysql server. Also, the mysql administrator (part of the GUI tool box) should be used to create users and databases.
01-31-2007, 02:02 PM
All right. I'll try to. :)
Thank you so much for all of helps.
I realy realy appreciate it.
Thank you.. :)
Powered by vBulletin® Version 4.2.2 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.