Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > phpMyAdmin: Enabling Relational Features

phpMyAdmin: Enabling Relational Features
Thread Tools
Mac Elite
Join Date: Nov 2003
Location: Rockville, MD
Status: Offline
Reply With Quote
Jun 21, 2005, 11:34 AM
 
Arrggh!! I'm running phpMyAdmin 2.6.3-rc1 and am having a whale of a time trying to enable its full relational features. Something about enabling the pma_db account and privileges, etc. I did find this one tutorial but it seems rather out-of-date.

Help?
     
Dedicated MacNNer
Join Date: Aug 2004
Status: Offline
Reply With Quote
Jun 24, 2005, 08:15 AM
 
i want to know that as well
There were once four people named Everybody, Somebody, Nobody and Anybody. Somebody had to do a job, but Nobody wanted to do it. Nobody could see that Anybody could do it, and Somebody got angry about that because it was Everybody's job. Nobody ended up doing it, and it so happened that Everybody blamed Somebody when Nobody did what Anybody could have done.
     
Mac Elite
Join Date: Nov 2003
Location: Rockville, MD
Status: Offline
Reply With Quote
Jun 24, 2005, 08:41 AM
 
Maybe we should call for Underdog.
     
Professional Poster
Join Date: Oct 2001
Location: London
Status: Offline
Reply With Quote
Jun 25, 2005, 03:40 PM
 
What problems are you having - I just tried (mainly using the included PHPMyAdmin docs) - and it appears to work.

1 - run the create-tables.sql script via phpmyadmin.
2 - edit the phpmyadmin config file to set-up the pma tables - using the default values in the comments.
3 - set up the relationships via the 'relational view' page.
     
Mac Elite
Join Date: Nov 2003
Location: Rockville, MD
Status: Offline
Reply With Quote
Jun 25, 2005, 05:47 PM
 
Originally Posted by Diggory Laycock
What problems are you having - I just tried (mainly using the included PHPMyAdmin docs) - and it appears to work.

1 - run the create-tables.sql script via phpmyadmin.
2 - edit the phpmyadmin config file to set-up the pma tables - using the default values in the comments.
3 - set up the relationships via the 'relational view' page.
Well, when I run the create_table.sql script as instructed, I get this error message:

Code:
Error SQL query: -- -------------------------------------------------------- -- SQL Commands to set up the pmadb as described in Documentation.html. -- -- DON'T RUN THIS SCRIPT ON MySQL 4.1.2 AND ABOVE! -- Instead, please run create_tables_mysql_4_1_2+.sql. -- -- This script expects the user pma to already be existing. If we would put a -- line here to create him too many users might just use this script and end -- up with having the same password for the controluser. -- -- This user "pma" must be defined in config.inc.php (controluser/controlpass) -- -- Please don't forget to set up the tablenames in config.inc.php -- -- $Id: create_tables.sql,v 2.9 2004/07/18 13:06:03 lem9 Exp $ -- -------------------------------------------------------- -- -- Database : `phpmyadmin` -- DROP DATABASE IF EXISTS `phpmyadmin` MySQL said: Documentation #1044 - Access denied for user: 'barridoff@localhost' to database 'phpmyadmin'
Also, when I first log into phpMyAdmin, I get the message No Privileges.

I guess I don't understand how to set users and privileges well enough to clear the error.
     
Professional Poster
Join Date: Oct 2001
Location: London
Status: Offline
Reply With Quote
Jun 25, 2005, 06:50 PM
 
     
Mac Elite
Join Date: Nov 2003
Location: Rockville, MD
Status: Offline
Reply With Quote
Jun 25, 2005, 07:09 PM
 
Originally Posted by Diggory Laycock
Thanks. But I really don't have the time or patience to read through all that just to figure out how to enable the relational featurs of phpMyAdmin. Is there a shorter, simpler way to reach that objective? No lectures, please.
     
Mac Elite
Join Date: Nov 2003
Location: Rockville, MD
Status: Offline
Reply With Quote
Jun 25, 2005, 07:20 PM
 
Oops.
     
Grizzled Veteran
Join Date: Jun 2001
Location: Melbourne, Australia
Status: Offline
Reply With Quote
Jun 25, 2005, 09:39 PM
 
Originally Posted by selowitch
Thanks. But I really don't have the time or patience to read through all that just to figure out how to enable the relational featurs of phpMyAdmin. Is there a shorter, simpler way to reach that objective? No lectures, please.
The reason you're getting privilege errors is that the 'barridoff' user probably doesn't have sufficient permissions to drop or alter tables. Choose the root user, or grant permissions to a new user who can CREATE, ALTER, INDEX and DROP to any database on your server (obviously this won't be an account that you use frequently, so choose a very secure password).

E.g. (from the MySQL command-line client)

%>GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, ALTER, INDEX, DROP ON *.* TO 'yourusername'@'localhost' IDENTIFIED BY 'yourverysecurepassword';

Then you can run the supplied scripts as this user and initialise the PMA tables/privileges.

I know you don't want the lecture, so you won't get the full rant, but you're really going to save yourself a lot of grief if you can spend a wee bit of time familiarising yourself with mysql administration.

The relationship stuff is cool once you get it running.
Computer thez nohhh...
     
Mac Elite
Join Date: Nov 2003
Location: Rockville, MD
Status: Offline
Reply With Quote
Jun 25, 2005, 11:09 PM
 
Originally Posted by Simon Mundy
The reason you're getting privilege errors is that the 'barridoff' user probably doesn't have sufficient permissions to drop or alter tables.
That's what I thought but I don't have a clue how to grant myself those permissions/privileges. But, thanks to your tip, I can at least get started.
Originally Posted by Simon Mundy
I know you don't want the lecture, so you won't get the full rant, but you're really going to save yourself a lot of grief if you can spend a wee bit of time familiarising yourself with mysql administration.
I'm sure you're right about that. Could you perhaps recommend a good book on the subject?
Originally Posted by Simon Mundy
The relationship stuff is cool once you get it running.
I know. I hate having to look up and copy foreign keys in other tables manually.
(Last edited by selowitch; Jun 26, 2005 at 08:31 PM. )
     
Professional Poster
Join Date: Oct 2001
Location: London
Status: Offline
Reply With Quote
Jun 27, 2005, 03:49 AM
 
http://www.amazon.com/exec/obidos/tg...ce&s=books

Is a book I have that gives you the very basics of MySQL for PHP development.
     
Mac Elite
Join Date: Nov 2003
Location: Rockville, MD
Status: Offline
Reply With Quote
Jun 27, 2005, 07:29 AM
 
Seems like my biggest need is not a book on PHP/MySQL itself, but one on how to administer a LAMP environment (Linux, Apache, MySQL, PHP) effectively using SSH, the command line, and phpMyAdmin.

EDIT: I finally got things working with the help of this book. It involved modifying the create_tables.sql file to remove the portion of the query for which I didn't have permission, and modifying the config file accordingly. Not easy, but at least now it works.
(Last edited by selowitch; Jul 12, 2005 at 03:43 PM. )
     
   
Thread Tools
Forum Links
Forum 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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 09:17 AM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2