LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 02-08-2004, 12:38 PM   #1
dublinclontarf
Member
 
Registered: Jan 2004
Location: dublin ireland
Distribution: Ubuntu PPC
Posts: 39

Rep: Reputation: 15
Connect to mysql as non root(linux) user


Cant connect to mysql as non root(linux) user.
Im using slackware 9.1
mysql is running, starts fine at boot.
as the linux root user im able to connect, getting the mysql> prompt and then everything works fine.

when im not root(linux) i get this error when i try to connect

james@darkstar:~$ mysql -u root -p
Enter password:
ERROR 2002: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (13)
james@darkstar:~$

i enter the correct password because it works when im the root(linux)user.

any ideas anyone?
 
Old 02-09-2004, 04:19 AM   #2
Bundaho
LQ Newbie
 
Registered: Feb 2004
Posts: 3

Rep: Reputation: 0
Check your mysql db access. You might have granted access to your mysql DB from root but no other user. eg:

grant CREATE, INSERT, SELECT, DELETE, UPDATE on (your db).* to user@localhost;

 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
connect wvdial as non-root user? cdhgee Linux - Software 4 08-01-2005 02:37 AM
pan doesnt connect as user only as root madcow007 Linux - Software 0 06-27-2005 07:58 PM
Duplicate root user in MySQL buddhahat Linux - Newbie 4 08-29-2004 10:34 PM
Starting mysql daemon as user rather than root arubin Slackware 8 05-10-2004 04:03 PM
MySQL db exists, can't connect to it, do I need to add user to it? Hero Doug Linux - General 7 01-09-2004 03:54 PM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration