LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-07-2008, 01:33 PM   #1
brgsousa
Member
 
Registered: Aug 2007
Location: Salvador, Brazil
Distribution: Debian, Ubuntu
Posts: 185

Rep: Reputation: 15
Installing mysql server on Debian Etch


I am using debian etch and need to install mysql server this way:

Code:
# aptitude install mysql-server

# mysql_secure_installation

NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MySQL
      SERVERS IN PRODUCTION USE!  PLEASE READ EACH STEP CAREFULLY!


In order to log into MySQL to secure it, we'll need the current
password for the root user.  If you've just installed MySQL, and
you haven't set the root password yet, the password will be blank,
so you should just press enter here.

Enter current password for root (enter for none):
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
I entered none when asked for password.

Why is that happening?


Thanks

Last edited by brgsousa; 08-07-2008 at 01:34 PM.
 
Old 08-07-2008, 03:38 PM   #2
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,249
Blog Entries: 5

Rep: Reputation: 191Reputation: 191
Did you actually type none or did you simply hit ENTER as directed ? Pressing ENTER without typing anything should have worked, if not there is another possibility

Did you have mysql-server installed previously ? if so it could be looking at the old password. you could try purging mysql-server and then re-installing it.


aptitude purge mysql-server
aptitude install mysql-server-5.0

Last edited by farslayer; 08-07-2008 at 03:39 PM.
 
Old 08-08-2008, 05:16 AM   #3
brgsousa
Member
 
Registered: Aug 2007
Location: Salvador, Brazil
Distribution: Debian, Ubuntu
Posts: 185

Original Poster
Rep: Reputation: 15
Lol, I simply hit ENTER as directed. My english is not that good, that's why you misunderstood me. I had mysql server previously installed, and I did purge it as you said. It didn't work.


In order to make it work I did this (But i don't it is the best way coz once I installed it with mysql_secure_installation):

apt-get install mysql mysql-server

There is often a problem with mysql to setup the root password. So the best thing to do is first stopping mysql:

/etc/init.d/mysql stop

Then update the user table

mysqld --skip-grant-tables --skip-networking &

mysql mysql

UPDATE user SET password=PASSWORD('yourrootpassword') WHERE User="root" AND Host="localhost";

quit

/etc/init.d/mysql restart
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Installing And Using The Unbound Name Server On Debian Etch LXer Syndicated Linux News 0 05-29-2008 12:20 PM
MySQL not installing in Debian Etch Stathis92 Linux - Server 9 11-01-2007 01:17 PM
LXer: Installing Lighttpd With PHP5 And MySQL Support On Debian Etch LXer Syndicated Linux News 0 08-12-2007 10:30 AM
LXer: Installing Zabbix (Server And Agent) On Debian Etch LXer Syndicated Linux News 0 07-13-2007 05:31 PM
MySQL Server crashes on Start - Debian Etch bence8810 Linux - Server 5 05-01-2007 12:44 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:24 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration