LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 01-23-2006, 01:45 PM   #1
mattp
Member
 
Registered: Mar 2004
Location: Chicago, USA
Distribution: Slackware 10.2
Posts: 368

Rep: Reputation: 30
Trying to Secure MySQL, errors


I have a default installation of MySQL. I am trying to secure for use on a production server. I am trying to set the root password, but I keep getting errors:

mysql@host:/var/www/htdocs$ mysql -u root
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)

What is the problem here?

Also, when I try to create a new database, more errors:

mysqladmin -u mysql create DiTelWeb

mysqladmin: CREATE DATABASE failed; error: 'Access denied for user ''@'localhost' to database 'DiTelWeb''

Last edited by mattp; 01-23-2006 at 01:50 PM.
 
Old 01-24-2006, 01:20 PM   #2
mattp
Member
 
Registered: Mar 2004
Location: Chicago, USA
Distribution: Slackware 10.2
Posts: 368

Original Poster
Rep: Reputation: 30
bump.......
 
Old 01-25-2006, 04:13 AM   #3
yoron
Member
 
Registered: Nov 2005
Posts: 120

Rep: Reputation: 15
can this link help ?
http://dev.mysql.com/doc/refman/5.0/...rivileges.html
 
Old 01-25-2006, 01:19 PM   #4
mattp
Member
 
Registered: Mar 2004
Location: Chicago, USA
Distribution: Slackware 10.2
Posts: 368

Original Poster
Rep: Reputation: 30
Thanks. I tried that link. I did a reinstall from the TGZ and it worked.
 
Old 01-25-2006, 05:11 PM   #5
azucaro
Member
 
Registered: Jan 2005
Location: Washington, D.C.
Distribution: Arch (Custom), CentOS
Posts: 239

Rep: Reputation: 30
mattp,

I get that error (the first one) when I don't include the -p option to mysql when starting:

mysql -u root -p
 
  


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
MySQL errors newuser455 Linux - Software 3 03-24-2005 10:48 PM
postfix + mysql + pop3(secure something) and imap. (Serius Problems:/ ) Esid *BSD 0 07-25-2004 02:32 PM
Is my MySQL secure? reesee Linux - Security 6 04-10-2004 10:28 PM
postfix / mysql errors theetderks Linux - Newbie 1 02-04-2004 02:22 PM
MySQL errors Hdata Linux - Distributions 8 04-26-2003 02:56 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 11:08 PM.

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