LinuxQuestions.org
Visit Jeremy's Blog.
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 03-29-2008, 01:53 PM   #1
blizunt7
Member
 
Registered: Mar 2004
Distribution: Fedora Core 1,2,3, RHEL3,4,5 Ubuntu
Posts: 272

Rep: Reputation: 30
phpmyadmin root cannot change privileges


Hey all,
Just setup a private mysql server on RHES 5.1. I installed phpmyadmin on a different server (RHES 4) on the same LAN which I have public access to. Phpmyadmin is finding the database, and everything seems ok, however, when I login as the root user, There is no option to change privileges, or drop databases.

I am currently using phpmyadmin on another machine, which the database is on localhost, and the root use has access to drop, change privilegs, etc.

I also setup my.cnf to use a separate partition for mysql, but I dont think that has anything to do with it.
my.cnf:
Code:
[mysqld]
datadir=/mysql
socket=/var/lib/mysql/mysql.sock
# Default to using old password format for compatibility with mysql 3.x
# clients (those using the mysqlclient10 compatibility package).
old_passwords=1
     
[mysql.server]
user=mysql
basedir=/var/lib

[mysqld_safe]
log-error=/var/log/mysqld.log
pid-file=/var/run/mysqld/mysqld.pid
Another interesting thing is that "mysql -V" reports:
Code:
$mysql -V
mysql  Ver 14.12 Distrib 5.0.22, for redhat-linux-gnu (i686) using readline 5.0

$rpm -qa | grep -i mysql
php-mysql-5.1.6-15.el5
MySQL-python-1.2.1-1
libdbi-dbd-mysql-0.8.1a-1.2.2
mysql-5.0.22-2.2.el5_1.1
perl-DBD-MySQL-3.0007-1.fc6
mysql-connector-odbc-3.51.12-2.2
mod_auth_mysql-3.0.0-3.1
mysql-server-5.0.22-2.2.el5_1.1
however, phpmyadmin says
Code:
# Server version: 3.23.32
# Protocol version: 10

Anyone know what I can do to allow root user access to modify privileges?

Thanks very much!!
Josh
 
Old 03-31-2008, 02:57 AM   #2
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,924

Rep: Reputation: 1327Reputation: 1327Reputation: 1327Reputation: 1327Reputation: 1327Reputation: 1327Reputation: 1327Reputation: 1327Reputation: 1327Reputation: 1327
You should grant privileges to the root user when connecting from a remote host:
Code:
GRANT ALL ON *.* TO 'root@remotehost';
FLUSH PRIVILEGES;
Or use phpmyadmin from localhost to do the same thing

Regards
 
Old 03-31-2008, 03:38 PM   #3
blizunt7
Member
 
Registered: Mar 2004
Distribution: Fedora Core 1,2,3, RHEL3,4,5 Ubuntu
Posts: 272

Original Poster
Rep: Reputation: 30
Thanks for the reply.
From the local machine, i did grant ALL privileges to root from any host, and phpmyadmin still does not show any ability to grant privileges.

Does PhpMyadmin NOT allow ANY user (root included) to modify privileges, unless phpmyadmin is hosted on the same machine as the mysql server??

Thanks
 
Old 03-31-2008, 08:03 PM   #4
blizunt7
Member
 
Registered: Mar 2004
Distribution: Fedora Core 1,2,3, RHEL3,4,5 Ubuntu
Posts: 272

Original Poster
Rep: Reputation: 30
In case anyone is curious.
I installed phpmyadmin on the local machine, and via web browser went to phpmyadmin, and the privileges option was present.

So I guess for phpmyadmin to show privileges option, phpmyadmin must be hosted on the same machine as the mysql server.
 
  


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
Change time and date withowt root privileges si.erkac Linux - Software 5 07-26-2007 03:47 PM
mkdir with root privileges slam Programming 3 09-29-2006 05:22 PM
Can't change privileges for my second harddrive even though I am root cmlal Linux - Newbie 13 11-03-2005 04:49 AM
Root privileges for user ar1 Linux - Security 2 01-07-2005 09:33 PM
User with root privileges ShakyJake Linux - Newbie 2 06-18-2004 12:12 PM


All times are GMT -5. The time now is 05:22 PM.

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