LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE
User Name
Password
SUSE / openSUSE This Forum is for the discussion of Suse Linux.

Notices


Reply
  Search this Thread
Old 04-21-2006, 08:44 PM   #1
mindjet
Member
 
Registered: Feb 2006
Posts: 43

Rep: Reputation: 15
SuSe Logins and mySql


Hey, how can i link my suse logins to the mysql server?

i want i can have a database per user and each can have their own phpMyAdmin with view to only their database.
Sorry if this has been covered already, i searched but didn't find it.

I think it's prob a security risk if opened up onto the web now because the user databases connect with root mysql password!
 
Old 04-21-2006, 11:33 PM   #2
leandean
Member
 
Registered: Oct 2005
Location: Burley, WA
Distribution: Sabayon, Debian
Posts: 278

Rep: Reputation: Disabled
Please see this article regarding logins::

http://dev.mysql.com/doc/refman/4.1/en/user-names.html

You can grant permissions to individual databases. Only the user you grant said permissions to will be able to access that database. It would be something like::

grant select,insert,delete,etc. on mydb.* to 'johndoe'@'localhost' identified by 'passwordgoeshere';

Use .htaccess for phpMyAdmin security. That way only people with user/pass can access the db via phpMyAdmin and will only be able to see 'their' database.
 
Old 04-23-2006, 07:04 AM   #3
mindjet
Member
 
Registered: Feb 2006
Posts: 43

Original Poster
Rep: Reputation: 15
Thanks for taking the time to point me in the right direction.
 
  


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
ERROR 2002: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql. NoviceW Linux - Networking 17 09-17-2014 02:13 PM
ERROR 2002: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql. suziecorbett Linux - Software 8 10-09-2008 01:52 AM
Problems with MySQL on SuSE: Can't Connect (/var/lib/mysql/mysql.sock) neocookie Linux - Software 8 02-07-2008 11:48 PM
mysql error Can't connect to local MySQL server through socket '/var/lib/mysql/mysql. Dannux Linux - Software 3 03-24-2006 08:44 AM
Suse Standard Server wont accpet user logins pshepperd Linux - Software 2 01-13-2004 03:19 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE

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