Go Back   CodingForums.com > :: Server side development > MySQL

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 01-26-2007, 03:37 AM   PM User | #1
redfroc
New Coder

 
Join Date: Mar 2006
Posts: 51
Thanks: 1
Thanked 0 Times in 0 Posts
redfroc is an unknown quantity at this point
Unhappy Cannot start MySQL. Please help..

Hi..

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.

Best regards.
redfroc is offline   Reply With Quote
Old 01-26-2007, 03:40 AM   PM User | #2
ConnorB
New Coder

 
Join Date: Jan 2007
Posts: 24
Thanks: 0
Thanked 0 Times in 0 Posts
ConnorB is an unknown quantity at this point
Not enough information.
__________________
Doctypes - W3Schools CSS2 Reference
ConnorB is offline   Reply With Quote
Old 01-28-2007, 12:53 AM   PM User | #3
guelphdad
Super Moderator


 
guelphdad's Avatar
 
Join Date: Mar 2006
Location: St. Catharines, Ontario Canada
Posts: 2,629
Thanks: 4
Thanked 147 Times in 138 Posts
guelphdad will become famous soon enoughguelphdad will become famous soon enough
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.
guelphdad is offline   Reply With Quote
Old 01-28-2007, 04:44 AM   PM User | #4
redfroc
New Coder

 
Join Date: Mar 2006
Posts: 51
Thanks: 1
Thanked 0 Times in 0 Posts
redfroc is an unknown quantity at this point
I install and run it from command prompt only, not by any GUI.

These are commands I have done:

Code:
- 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.
redfroc is offline   Reply With Quote
Old 01-28-2007, 03:14 PM   PM User | #5
guelphdad
Super Moderator


 
guelphdad's Avatar
 
Join Date: Mar 2006
Location: St. Catharines, Ontario Canada
Posts: 2,629
Thanks: 4
Thanked 147 Times in 138 Posts
guelphdad will become famous soon enoughguelphdad will become famous soon enough
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:
Code:
mysql
do this:
Code:
mysql -uroot
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.
guelphdad is offline   Reply With Quote
Old 01-30-2007, 01:08 PM   PM User | #6
redfroc
New Coder

 
Join Date: Mar 2006
Posts: 51
Thanks: 1
Thanked 0 Times in 0 Posts
redfroc is an unknown quantity at this point
Yes, I run mysql -uroot and success. Thank you..
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..
Attached Thumbnails
Click image for larger version

Name:	mysql_user.JPG
Views:	117
Size:	29.2 KB
ID:	5021  
redfroc is offline   Reply With Quote
Old 01-30-2007, 02:40 PM   PM User | #7
guelphdad
Super Moderator


 
guelphdad's Avatar
 
Join Date: Mar 2006
Location: St. Catharines, Ontario Canada
Posts: 2,629
Thanks: 4
Thanked 147 Times in 138 Posts
guelphdad will become famous soon enoughguelphdad will become famous soon enough
GRANT syntax from the manual.
guelphdad is offline   Reply With Quote
Old 01-30-2007, 03:57 PM   PM User | #8
CFMaBiSmAd
Senior Coder

 
CFMaBiSmAd's Avatar
 
Join Date: Oct 2006
Location: Denver, Colorado USA
Posts: 2,743
Thanks: 2
Thanked 255 Times in 247 Posts
CFMaBiSmAd is a jewel in the roughCFMaBiSmAd is a jewel in the roughCFMaBiSmAd is a jewel in the roughCFMaBiSmAd is a jewel in the rough
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.
__________________
If you are learning PHP, developing PHP code, or debugging PHP code, do yourself a favor and check your web server log for errors and/or turn on full PHP error reporting in php.ini or in a .htaccess file to get PHP to help you.
CFMaBiSmAd is offline   Reply With Quote
Old 01-31-2007, 02:02 PM   PM User | #9
redfroc
New Coder

 
Join Date: Mar 2006
Posts: 51
Thanks: 1
Thanked 0 Times in 0 Posts
redfroc is an unknown quantity at this point
All right. I'll try to.
Thank you so much for all of helps.

I realy realy appreciate it.
Thank you..

Best regards.
redfroc is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 05:53 AM.


Advertisement
Log in to turn off these ads.