
22nd January 2006, 22:01
|
|
Junior Member
|
|
Join Date: Jan 2006
Posts: 27
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
MySQL - The Perfect Set Up Fedora Core 4
Hello..
I am in the process of setting up my server and am having a problem with the install for MySQL....I have followed the directions as posted and these are the errors that I am getting...
ERROR: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1
060122 14:18:09 [ERROR] Aborting
and when trying to set the password for root I am getting this error...
error: 'Access denied for user 'root'@'localhost' (using password: NO)'
MySQL starts and stops OK, and I have even started the whole install of Fedora over and am getting the same errors...I have goggled to see what I can do to fix the problem, but can not seem to find anything.
Any help would be appreciated.
Thanks
|

22nd January 2006, 22:31
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 19,805
Thanks: 285
Thanked 1,805 Times in 1,357 Posts
|
|
Quote:
|
Originally Posted by Gem
ERROR: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1
060122 14:18:09 [ERROR] Aborting
|
When exactly did you get this error. Please post the command that results in this error.
|

22nd January 2006, 22:48
|
|
Junior Member
|
|
Join Date: Jan 2006
Posts: 27
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
I got this error after typing in
Code:
/etc/init.d/mysqld start
edits to add I am still getting the 1064 error
Code:
mysqladmin: connect to server at 'localhost' failed
error: 'Access denied for user 'root'@'localhost' (using password: NO)'
Last edited by Gem; 22nd January 2006 at 23:58.
|

23rd January 2006, 00:12
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,853
Thanks: 781
Thanked 1,558 Times in 1,477 Posts
|
|
Quote:
|
Originally Posted by Gem
edits to add I am still getting the 1064 error
Code:
mysqladmin: connect to server at 'localhost' failed
error: 'Access denied for user 'root'@'localhost' (using password: NO)'
|
What's the exact command you ran that gave you this error?
|

23rd January 2006, 00:42
|
|
Junior Member
|
|
Join Date: Jan 2006
Posts: 27
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
I used
Code:
mysqladmin -root password mypasswordhere
I also tried
Code:
SET PASSWORD FOR root = PASSWORD("mypassword");
and got the same error...
|

23rd January 2006, 07:04
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,853
Thanks: 781
Thanked 1,558 Times in 1,477 Posts
|
|
Have a look here: http://www.howtoforge.com/perfect_se...dora_core_4_p4
The correct command is
Code:
mysqladmin -u root password yourrootsqlpassword
, not
Code:
mysqladmin -root password yourrootsqlpassword
|

23rd January 2006, 13:36
|
|
Junior Member
|
|
Join Date: Jan 2006
Posts: 27
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
I'm sorry, that was a typo on my part, I was using the comand
Code:
mysqladmin -u root password yourrootsqlpassword
I even tried it again to make sure and I am getting the same error...
|

23rd January 2006, 18:51
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,853
Thanks: 781
Thanked 1,558 Times in 1,477 Posts
|
|
|

24th January 2006, 01:14
|
|
Junior Member
|
|
Join Date: Jan 2006
Posts: 27
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
I have read the thread that you posted and I am not sure that it really is going to help me. I have not tried to install ISPConfig yet because of the MySQL error that I am getting, plus the error that user was getting was:
Code:
ERROR:1045: Access denied for user:'root@localhost' (Using password:YES)
ERROR: The provided MySQL password is wrong! The installation routine stops here!
Mine is
Code:
mysqladmin: connect to server at 'localhost' failed
error: 'Access denied for user 'root'@'localhost' (using password: NO)'
I have not been able to create a password for root. I have tried to unistall MySQL to start over and it wont let me because of PHP, and that was before I got to the part of the install steps in the tut on PHP.
I have even gone as far as starting completly over with a fresh install of Fedroa and am still getting the same error. I am at a loss...and it is getting so frusterating....got to love it though...*grin*
Thanks for taking the time out and answering my questions...*S*
|

24th January 2006, 09:52
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,853
Thanks: 781
Thanked 1,558 Times in 1,477 Posts
|
|
Is MySQL listening on localhost? Please post the output of What's in /etc/hosts?
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT +2. The time now is 22:33.
|
Recent comments
14 hours 55 sec ago
19 hours 16 min ago
19 hours 27 min ago
19 hours 35 min ago
20 hours 37 min ago
22 hours 45 min ago
1 day 1 hour ago
1 day 1 hour ago
1 day 1 hour ago
1 day 2 hours ago