LinuxQuestions.org
Help answer threads with 0 replies.
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-22-2013, 12:58 AM   #1
Glenn D.
Member
 
Registered: May 2009
Location: ACT - Australia
Distribution: Opensuse x86_64 (Latest)
Posts: 132

Rep: Reputation: 26
I need help to mariadb/mysql going on 13.1 milestone 4 new install.


Hello,
I need help to log in to mariadb/mysql on 13.1 milestone 4 new install.
Thanks Glenn

What I've done so far:

# rpm -qa | grep -i mariadb | sort
mariadb-5.5.32-1.2.x86_64
mariadb-bench-5.5.32-1.2.x86_64
mariadb-client-5.5.32-1.2.x86_64
mariadb-debug-version-5.5.32-1.2.x86_64
mariadb-errormessages-5.5.32-1.2.x86_64
mariadb-test-5.5.32-1.2.x86_64
mariadb-tools-5.5.32-1.2.x86_64

# mysqld_safe --skip-grant-tables --skip-networking
130822 15:28:22 mysqld_safe Logging to '/var/lib/mysql/orac.site.err'.
130822 15:28:22 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
#
# mysql -u root
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
 
Old 08-22-2013, 01:24 AM   #2
astrogeek
Moderator
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=15, FreeBSD_12{.0|.1}
Posts: 6,269
Blog Entries: 24

Rep: Reputation: 4196Reputation: 4196Reputation: 4196Reputation: 4196Reputation: 4196Reputation: 4196Reputation: 4196Reputation: 4196Reputation: 4196Reputation: 4196Reputation: 4196
Quote:
Originally Posted by Glenn D. View Post
Hello,

# mysql -u root
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
[EDIT] For clarity... [/EDIT]

In my experience the user, even with --skip-grant-tables, must still be identifiable. In other words, you still could not start the mysql client with mysql -u nobodyhome.

And on my own systems, -u root results in the error message that you see, whereas -u root@localhost does not (I do not fully understand why, but that is how it works).

So...

Code:
mysql -u root - Does not work

mysql - Does work for local users including root

mysql -u root@localhost - Does work

Last edited by astrogeek; 08-22-2013 at 02:03 AM.
 
  


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
MariaDB/MySQL uses too much RAM martvefun Linux - Server 3 06-23-2013 08:50 AM
[SOLVED] New MariaDB as replacement for Mysql vdemuth Slackware 10 03-31-2013 09:05 AM
Replace MySQL with MariaDB in Slackware abesirovic1 Slackware 36 03-28-2013 08:53 AM
LXer: Wikipedia moving from MySQL to MariaDB LXer Syndicated Linux News 0 12-17-2012 10:42 PM
LXer: MySQL 6 Features Roll Into MySQL 5.5 Milestone LXer Syndicated Linux News 0 12-22-2009 10:00 PM

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

All times are GMT -5. The time now is 02:01 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