image
image

Go Back   macosx.com > Mac Help Forums > Mac OS X Server

Reply
 
Thread Tools
  #1  
Old June 29th, 2008, 02:38 PM
wicky's Avatar
play thing
 
Join Date: Jul 2002
Location: London
Posts: 358
Thanks: 0
Thanked 0 Times in 0 Posts
wicky is on a distinguished road
OS X server - phpMyAdmin?

I'm setting up os x server (10.5) for the first time and could really do with a little advice.

I'm used to doing much of my web development on a local MAMP install, and I'd like to replicate a similar set up on the server.

I understand that PHP & MySQL are pre-installed on the server, but I've always done all of my admin via phpMyAdmin so don't really understand where to add a new database.

Can anybody tell me how to install phpMyAdmin in the relevant place, or alternatively, point me towards some other help/ instructions.

Thanks
__________________
#me {
Leaf Media: Design & Dev;
Liquid Layouts: Interactive Photography;
}
Reply With Quote
  #2  
Old June 29th, 2008, 07:30 PM
michaelsanford's Avatar
Psycholinguist
 
Join Date: Oct 2002
Location: Ottawa/Montrιal
Posts: 2,172
Thanks: 0
Thanked 0 Times in 0 Posts
michaelsanford is on a distinguished road
You can install phpMyAdmin in any location that apache can serve files from.

To add a new database in the command-line, you can, from the shell, run
Code:
mysqladmin -u root -p create <database_name>
or, from inside mysql:
Code:
create database <database_name>;
Though you do not need to do it as the MySQL 'root' user, but as any user with create permissions.

I must add that I despise phpMyAdmin and do almost all of my database manipulation in the shell. It keeps my brain fresh, especially for correctly and efficiently crafting queries for use in my php apps. If you're a sysadmin, I would recommend spending some more time in the Terminal and getting used to–and comfortable with–the shell.
__________________
michaelsanford.com • Blog • Twitter • Tumblr • LinkedIn
• iMac Aluminum 24" |
MacOS X 10.5-current | 3.06 GHz Intel Core Duo | 4 GB RAM | 1 TB HDD
• iBook G4 1.42 GHz | MacOS X 10.5-current | 1 GB RAM, 100 GB HDD
• AMD Athlon64 3500+ | Slackware 12 (2.6.21.5-smp) | 2 GB RAM, 2•120 GB RAID 1, 2•500 GB RAID 0
Reply With Quote
  #3  
Old October 3rd, 2008, 01:25 PM
wicky's Avatar
play thing
 
Join Date: Jul 2002
Location: London
Posts: 358
Thanks: 0
Thanked 0 Times in 0 Posts
wicky is on a distinguished road
Thanks for the feedback Michael.

Another question: what are the shell commands to start Apache & MySQL?

On the subject of despising phpMyAdmin:
We don't all work the same way! I'm sure over time I'll become increasingly easy with the Terminal, as I have so far by learning as I go along. However, as a designer, I work best visually and phpMyAdmin provides a reasonable interface for me, and seemingly for other people too which is why it was developed in the first place and why it is so widely used.
__________________
#me {
Leaf Media: Design & Dev;
Liquid Layouts: Interactive Photography;
}
Reply With Quote
  #4  
Old October 3rd, 2008, 01:45 PM
michaelsanford's Avatar
Psycholinguist
 
Join Date: Oct 2002
Location: Ottawa/Montrιal
Posts: 2,172
Thanks: 0
Thanked 0 Times in 0 Posts
michaelsanford is on a distinguished road
wicky,

Surely, some people love it! I was only voicing my personal opinion. If you enjoy it, and it does the job for you, then by all means, use it! I'm sure I do things, and use tools, that others find useless (like doing most of my SQL in the Terminal ) I just can't stand mousing or tabbing around in fields, only to have the query fail, leaving me with no command history. As this is my chief concern, using the mysql client tool in the terminal is my perfect solution.

Apache can be started from the Sharing pane (Web Sharing) and MySQL is usually started with "/usr/bin/mysqld_safe &" but it would depend somewhat on your particular implementation.

EDIT: Sorry, I forgot that this was in the OS X Server forum. I don't use OS X Server edition, but I imagine a search of Google "start mysql OS X server" would fix that.
__________________
michaelsanford.com • Blog • Twitter • Tumblr • LinkedIn
• iMac Aluminum 24" |
MacOS X 10.5-current | 3.06 GHz Intel Core Duo | 4 GB RAM | 1 TB HDD
• iBook G4 1.42 GHz | MacOS X 10.5-current | 1 GB RAM, 100 GB HDD
• AMD Athlon64 3500+ | Slackware 12 (2.6.21.5-smp) | 2 GB RAM, 2•120 GB RAID 1, 2•500 GB RAID 0
Reply With Quote
Reply

Tags
mysql, phpmyadmin

Thread Tools

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off
Forum Jump


All times are GMT -5. The time now is 07:16 PM.


Mac Support® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0
Copyright 2000-2008 DigitalCrowd, Inc.