alixerie - Aug 13, 2005 - 10:15 pm
i opened up my terminal for the first time last week. i am trying to use mysql and am having a lot of problems. i have already created/changed many things and not only have i gotten nowhere, but it seems as though i have started to go backwards in my progress. when i first started i was able to open mysqld and type in the simple commands to show a table containing databases and the like. i started to run across problems when i realized that the test database was the only one in existence, so i tried to create a mysql database. the response was that my permission was denied (or forbidden access, something like that...i cant remeber exactly).
so, i started changing things: moving folders, creating pages that began with \".\", and changing my permissions for some of the documents in the mysql bin folder.
come to think of it...another major problem i was having was that, even though i was able to open up mysql directly by clicking the icon, i was never able to open it by typing in a string if i just openend the terminal application. in the terminal i have only been able to type in paths to recieve the information that databases exist.
ok...before i go any further i will tell you where some of my folders are located:
I. /Macintosh HD/Users :
1) /alix/MySQL (ALL of the permissions in this folder are as follows: Owner: alix, Access: Read & Write, Group: staff, Access: Read only, Others: Read Only)
2) /local/root (this is the ONLY folder i have under \"local\"
3) /Shared (has nothing important here)
4) /test (in this directory there are folders like \'desktop\' and \'documents\' that have little red minus signs on the bottom right)
II. /Macintosh HD/Library
1) /MySQL (SOME of the permissions in this folder have been changed to \"Owner: alix , Access: Read & Write, Group: network, Access: Read & Write, Others: ReadOnly\")
2) /Perl/5.8.1/......
3) /PHP4/(this folder contains bin, dist, etc, include, info, lib, man, and share)
4) /Apache 2/modules/libphp4.so (only existing file here)
5) /StartupItems/MySQL (these are the ONLY two things here)
a) /MySQL (Unix Executable File)
b) /StartupParameters.plist
III. /Macintosh HD/System/Library
a)/Perl/5.8.1/......
b)/PHP/(this folder is completely empty)
_____________________
the following is a copy/paste of the files on my localhost...i cannot reach this from Safari-I get a page that says if i am seeing it, apache is installed and \"This page is here because the site administrator has changed the configuration of this web server.\" Etc, etc.. So i use explorer when tyring to access my localhost, and then it only works when i type in the webname \"localhost\"...but when i try and type my ip addresses (127.0.0.1 and 10.0.0.1) the same thing happens as with Safari.
localhost
Path:*
Name Size Kind Last Modified
.bash_profile.rtf 324 bytes Rich Text Format Sat, Aug 13, 2005, 9:58 PM
.vol -*** Alias -
aceoftrades -*** Folder Sat, Aug 6, 2005, 10:46 PM
AppleWorks (US English) -*** Folder Tue, Sep 21, 2004, 1:47 PM
AppleWorks 6 -*** Folder Thu, Dec 25, 2003, 11:48 PM
Applications -*** Folder Sat, Aug 13, 2005, 8:32 PM
Applications (Mac OS 9) -*** Folder Wed, Dec 1, 2004, 9:53 AM
ApplicationsP -*** Folder Tue, Dec 14, 2004, 10:43 PM
Desktop (Mac OS 9) 15 bytes Alias Sun, Oct 31, 2004, 3:43 AM
Desktop Folder -*** Folder Sat, Apr 3, 1976, 1:58 AM
dev -*** Alias -
Documents -*** Folder Tue, Dec 2, 2003, 12:56 AM
GREG <3 -*** Folder Fri, Jul 23, 2004, 12:00 PM
Library -*** Folder Fri, Aug 12, 2005, 10:55 PM
LibraryP -*** Folder Tue, Dec 14, 2004, 10:43 PM
LimeWire 67K Alias Sun, Aug 14, 2005, 10:13 AM
mach 9 bytes Alias Sun, Aug 14, 2005, 7:48 AM
mach.sym 557K Document Sun, Aug 14, 2005, 7:48 AM
mach_kernel 3,781K Document Thu, Mar 31, 2005, 12:11 PM
MAU 1.1.1 Update Log 12K Text Readme Thu, Nov 4, 2004, 1:51 AM
MAU 1.1.2 Update Log 12K Text Readme Sat, Nov 20, 2004, 2:42 PM
Network -*** Alias -
Previous Systems -*** Folder Tue, Dec 14, 2004, 11:55 PM
privateP -*** Folder Tue, Dec 14, 2004, 10:43 PM
School Papers -*** Folder Tue, May 11, 2004, 1:22 PM
String Theory -*** Folder Wed, Jan 7, 2004, 3:29 AM
System -*** Folder Thu, Jun 30, 2005, 4:29 PM
System Folder (from old Mac) -*** Folder Sat, Nov 27, 2004, 8:06 AM
SystemP -*** Folder Tue, Nov 30, 2004, 2:06 PM
User Guides And Information 820 bytes Alias Sun, Oct 31, 2004, 3:08 AM
Users -*** Folder Mon, Aug 8, 2005, 12:34 AM
_______________
you will notice that there are 2 invisible files here. i created the .bash_profile.rtf one. By the way, originally i was using tcsh and i changed it to bash. also notice the files that have a \"P\" after them (SystemP, etc.). these are files that were transfered over from my old powerbook OS, I am now using ibook G4 OS 10.3.9.
OKAY so...when I am in bash now, i can do this:
Alix:~ alix$ mysql
bash: mysql: command not found
Alix:~ alix$ /library
bash: /library: is a directory
Alix:~ alix$ /library/mysql
bash: /library/mysql: is a directory
Alix:~ alix$ /library/mysql/bin
bash: /library/mysql/bin: is a directory
Alix:~ alix$ /library/mysql/bin/mysql
ERROR 2002: Can\'t connect to local MySQL server through socket \'/tmp/mysql.sock\' (61)
Alix:~ alix$
obviously, the same thing happens when i try to directly click on the Unix file. but, like i said before, this did not happen in the beginning. this only started happening yesterday after i downloaded and started playing with the application MySQL 4x Manager, as suggested in a forum.
at first i was able to access my localhost but since mysql 4x manager, i cant...even though there is no password and it is still assigned to the user: \"root\" i am told that permission is denied.
So, what i want to know is:
1) how can i change the socket, as i dont have a file that exists under the alias \"mysql.sock\". I do have 5 directories named \"tmp\" though in different places:
a) /HD/Users/local/root/private/var/
b) /\"/\"/\"/\"/\"/\"/spool/cups/tmp
c) /alix/Library/Caches/Java Applets/cache/
d) /\"/\"/\"/\"/\"/javapi/v1.0/
e) /HD/privateP/var/
I am assuming that I would have to create a file under the first folder, but i dont want to do anymore assuming.
2)Why cant i access my localhost anymore using MySQL 4x Manager? is this the same problem or is it a problem with permissions, users, passwords? i dont even have the permission to create users anymore, and i did when i first opened Manager.
3)How do i get universal access in mysql...i guess this is the same question as number 2 but more specific. i want to have the permission to use the GRANT feature and to create databases!!!!
with that said, i will put all my other questions on hold for now and await a reply.
many many many thanks,
alix erie ; )
alixerie - Aug 16, 2005 - 5:49 am
i have found out where the problem lies...i have become aware of how to use unix and now when i open mysqld i get this
Alix:/Library/MySQL/bin alix$ /Library/MySQL/bin/mysqld_safe; exit
Starting mysqld daemon with databases from /Library/MySQL/var
rm: /tmp/mysql.sock: Operation not permitted
STOPPING server from pid file /Library/MySQL/var/Alix.local.pid
050815 20:32:01 mysqld ended
exit
[Process completed]
so, first of all there was not a file hd/Library/MySQL/var/tmp/mysql.sock so i created the tmp folder and mysql.sock file and typed 734 and saved the document. still nothing happened...i got the same response.
then i looked up the Alix.local.pid file and it seems i have a file named Alix.local.err and a file name Alix.pid, but not one named Alix.local.pid. So i created this file and still kept the other two, but nothing has happened yet.
Any thoughts?
alixerie - Aug 16, 2005 - 5:50 am
ok now i have realized that there actually is a tmp directory (though invisible) in my / folder. and there is also a file named mysql.sock
i know that when a user types "rm" it means remove file...but this is a response from bash. is bash trying to remove my socket for some reason?
ok i will update later i really have to close some windows
macbri - Aug 16, 2005 - 7:35 pm
Hi Alix -
My goodness you certainly have put a lot of work into this!! Although there's a number of issues here I think we'll start with your most recent -- that of /tmp/mysql.sock. When you start up a MySQL server it creates a socket file - a kind of reference point if you like where client and server can exchange information. This is /tmp/mysql.sock. If the server tries to start and sees that socket file already exists it will try to remove and re-create it.
In your case the socket file is most probably owned by root and if running MySQL as a non-privileged user, it will be unable to remove this. So I suggest the following:
(1) Restart your mac
(2) Open a terminal
(2) Make sure MySQL is *not* running with the command:
ps -ax | grep '[m]ysql'
If you get nothing but your prompt again, MySQL isn't running
(3) Remove the socket file:
sudo rm -f /tmp/mysql.sock
(4) Try starting MySQL and see what happens
Let me know how this goes and then we'll continue from there.
- Brian
--------
Brian S.
MacOSX.com Technical Support
brian@macosx.com
alixerie - Aug 17, 2005 - 12:45 am
well brian, i have a feeling that all of my neighbors in my apartment complex here in china had yet another thought of there being a young crazy blonde american girl living on the second floor when they heard my cry of joy after typing in your command (is that a run-on???)!!!!!!!!!
so now i get the prompt "mysql>" and i will go on working with that...if i have another question, which i am sure i will, i will respond again.
thanks a million
btw...when my web site is up i will send you a link. (it is menat to be a "sanctuary for like-minded individuals" which will originally not be a published directory. ; )
alixerie - Aug 17, 2005 - 1:52 am
ok great! so now that i am back at square one i can work with the original problem. i can run some simple commands in the mysql test database, but i do not have a database under the alias mysql. soooo, logically my next step is to try and create one and this is what it spits at me:
+----------------+--------------+
| USER() | CURRENT_DATE |
+----------------+--------------+
| alix@localhost | 2005-08-17 |
+----------------+--------------+
1 row in set (0.07 sec)
mysql> SHOW DATABASES;
+----------+
| Database |
+----------+
| test |
+----------+
1 row in set (0.06 sec)
mysql> USE test
Database changed
mysql> create database aceoftrades
-> ;
ERROR 1044: Access denied for user: '@localhost' to database 'aceoftrades'
mysql>
before when i got this i tried using GRANT and got all confused in the 850 page pdf manual and started changing permissions and somehow created the socket which you so kindly gave me the tools to remove!!!!
what do i do now?
macbri - Aug 17, 2005 - 2:08 am
Hi Alix -
Well, it looks as though you're connecting to the database as user 'alix' and this account doesn't have the required privileges. Try connecting to the database as root. If you didn't set a password for root when you installed MySQL you'd connect like this:
mysql -u root
If on the other hand you *did* set a password for root (HIGHLY recommended by the way) you should connect like this:
mysql -u root -p
and enter your password when prompted. In either case once connected you'll have full privileges to create databases etc.
- Brian
--------
Brian S.
MacOSX.com Technical Support
brian@macosx.com
alixerie - Aug 17, 2005 - 4:35 am
well i thought of that, too, and i am assuming that you mean for me to enter that string into bash (for many reasons that i guess i dont need to list).
this is what i got when entering it ito bash:
Alix:~ alix$ mysql -u root
bash: mysql: command not found
Alix:~ alix$ mysql -u root -p
bash: mysql: command not found
Alix:~ alix$
-----
not to your surprise i'm sure, this is exactly what is instructed in the MySQL manual at "4.2.11 Causes of Access Denied Errors." actually it says to do this:
"After installing MySQL, did you run the mysql_install_db script to set up the initial grant table contents? If not, do so. See Section 4.3.4 [Default privileges], page 223. Test the initial privileges by executing this command:
shell> mysql -u root test
The server should let you connect without error. You should also make sure you have a file ‘user.MYD’ in the MySQL database directory. Ordinarily, this is ‘PATH/var/mysql/user.MYD’, where PATH is the pathname to the MySQL installation root. "
And here is the stdin/out:
Alix:~ alix$ mysql -u root test
bash: mysql: command not found
Alix:~ alix$
so i am now moving to mysql_install_db again...which i earlier set to be read in TextEdit....here is another point to bring up....i am not exactly sure which file of mysql_install_db i should be using as i now somehow have 3 copies:
1) /Library/MySQL/...
2)/Users/local/MySQL/...
3)/usrs/alix/MySQL/...
incidentally, there is one more occurance of the MySQL folder in /Library/StartupItems.
ok well these are the things i am now examining:
i stareted mysql from the first directory on my list, so i am looking at the mysql_install_db in this bin folder. i am changing it to open in terminal. and i am looking at the section "4.3.4 Setting Up the Initial MySQL Privileges" as reccomended in the manual
..... ok just ran mysql_install_db from /Library/MySQL and there is a line instructing: "To start mysqld at boot time you have to copy support-files/mysql.server to the right place for your system"
______________
ok so now i am changing the mysqladmin file to open in textedit so that i can edit the script. Which has no command for -u, --user=
here is a copy of the buffer in the mysqladmin shell before i am changing it. i will send this email after i paste it, so nothing will follow:
Alix:/Library/MySQL/bin alix$ /Library/MySQL/bin/mysqladmin; exit
/Library/MySQL/bin/mysqladmin Ver 8.40 Distrib 4.0.21, for apple-darwin7.5.0 on powerpc
Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB
This software comes with ABSOLUTELY NO WARRANTY. This is free software,
and you are welcome to modify and redistribute it under the GPL license
Administration program for the mysqld daemon.
Usage: /Library/MySQL/bin/mysqladmin [OPTIONS] command command....
-c, --count=# Number of iterations to make. This works with -i
(--sleep) only
-#, --debug[=name] Output debug log. Often this is 'd:t

,filename'
-f, --force Don't ask for confirmation on drop database; with
multiple commands, continue even if an error occurs.
-C, --compress Use compression in server/client protocol
--character-sets-dir=name
Directory where character sets are.
-?, --help Display this help and exit.
-h, --host=name Connect to host
-p, --password[=name]
Password to use when connecting to server. If password is
not given it's asked from the tty.
-P, --port=# Port number to use for connection.
-r, --relative Show difference between current and previous values when
used with -i. Currently works only with extended-status.
-O, --set-variable=name
Change the value of a variable. Please note that this
option is deprecated; you can set variables directly with
--variable-name=value.
-s, --silent Silently exit if one can't connect to server
-S, --socket=name Socket file to use for connection.
-i, --sleep=# Execute commands again and again with a sleep between.
--ssl Enable SSL for connection (automatically enabled with
other flags). Disable with --skip-ssl
--ssl-key=name X509 key in PEM format (implies --ssl)
--ssl-cert=name X509 cert in PEM format (implies --ssl)
--ssl-ca=name CA file in PEM format (check OpenSSL docs, implies --ssl)
--ssl-capath=name CA directory (check OpenSSL docs, implies --ssl)
--ssl-cipher=name SSL cipher to use (implies --ssl)
-u, --user=name User for login if not current user.
-v, --verbose Write more information.
-V, --version Output version information and exit
-E, --vertical Print output vertically. Is similar to --relative, but
prints output vertically.
-w, --wait[=#] Wait and retry if connection is down
--connect_timeout=#
--shutdown_timeout=#
Variables (--variable-name=value)
and boolean options {FALSE|TRUE} Value (after reading options)
--------------------------------- -----------------------------
count 0
force FALSE
compress FALSE
character-sets-dir (No default value)
host (No default value)
port 3306
relative FALSE
socket (No default value)
sleep 0
ssl FALSE
ssl-key (No default value)
ssl-cert (No default value)
ssl-ca (No default value)
ssl-capath (No default value)
ssl-cipher (No default value)
user (No default value)
verbose FALSE
vertical FALSE
connect_timeout 43200
shutdown_timeout 3600
Default options are read from the following files in the given order:
/etc/my.cnf /Library/MySQL/var/my.cnf ~/.my.cnf
The following groups are read: mysqladmin client
The following options may be given as the first argument:
--print-defaults Print the program argument list and exit
--no-defaults Don't read default options from any options file
--defaults-file=# Only read default options from the given file #
--defaults-extra-file=# Read this file after the global files are read
Where command is a one or more of: (Commands may be shortened)
create databasename Create a new database
drop databasename Delete a database and all its tables
extended-status Gives an extended status message from the server
flush-hosts Flush all cached hosts
flush-logs Flush all logs
flush-status Clear status variables
flush-tables Flush all tables
flush-threads Flush the thread cache
flush-privileges Reload grant tables (same as reload)
kill id,id,... Kill mysql threads
password new-password Change old password to new-password
ping Check if mysqld is alive
processlist Show list of active threads in server
reload Reload grant tables
refresh Flush all tables and close and open logfiles
shutdown Take server down
status Gives a short status message from the server
start-slave Start slave
stop-slave Stop slave
variables Prints variables available
version Get version info from server
exit
[Process exited - exit code 1]
alixerie - Aug 17, 2005 - 4:46 am
ok silly me....i see that it actually DOES say
-u, --user=name User for login if not current user.
so im now working with that...by the way, when i opened mysqladmin in text edit, it was not pretty...i guess it changed the script after i ran it in terminal.
alixerie - Aug 17, 2005 - 5:02 am
ran mysqladmin got this:
Alix:/Library/MySQL/bin alix$ /Library/MySQL/bin/mysql_fix_privilege_tables; exit
This scripts updates the mysql.user, mysql.db, mysql.host and the
mysql.func tables to MySQL 3.22.14 and above.
This is needed if you want to use the new GRANT functions,
CREATE AGGREGATE FUNCTION or want to use the more secure passwords in 3.23
If you get 'Access denied' errors, you should run this script again
and give the MySQL root user password as an argument!
Converting all privilege tables to MyISAM format
ERROR 1045: Access denied for user: 'root@localhost' (Using password: NO)
If your tables are already up to date or partially up to date you will
get some warnings about 'Duplicated column name'. You can safely ignore these!
ERROR 1045: Access denied for user: 'root@localhost' (Using password: NO)
Creating Grant Alter and Index privileges if they don't exists
You can ignore any Duplicate column errors
ERROR 1045: Access denied for user: 'root@localhost' (Using password: NO)
Adding columns needed by GRANT .. REQUIRE (openssl)
You can ignore any Duplicate column errors
ERROR 1045: Access denied for user: 'root@localhost' (Using password: NO)
Creating the new table and column privilege tables
ERROR 1045: Access denied for user: 'root@localhost' (Using password: NO)
Changing name of columns_priv.Type -> columns_priv.Column_priv
You can ignore any Unknown column errors from this
ERROR 1045: Access denied for user: 'root@localhost' (Using password: NO)
Fixing the func table
You can ignore any Duplicate column errors
ERROR 1045: Access denied for user: 'root@localhost' (Using password: NO)
Adding new fields used by MySQL 4.0.2 to the privilege tables
You can ignore any Duplicate column errors
ERROR 1045: Access denied for user: 'root@localhost' (Using password: NO)
ERROR 1045: Access denied for user: 'root@localhost' (Using password: NO)
ERROR 1045: Access denied for user: 'root@localhost' (Using password: NO)
ERROR 1045: Access denied for user: 'root@localhost' (Using password: NO)
exit
[Process exited - exit code 1]
alixerie - Aug 17, 2005 - 5:07 am
from previous reply it seems as though root was set up and that i need to set a password....i am now restarting my computer to see what happens.
btw....i dont know how much of this info is superfluous to you, but it seems to be very handy for me to use this as a log at the same time...which i guess is the only way you know what i am doing...thanks a million
and what were you doing up at 2:30 in the morning anyway??? lol (that was rhetorical)
alixerie - Aug 17, 2005 - 5:19 am
when i said i ran mysql admin two posts ago i really meant mysql_fix_privelege_tables.
with that said...i guess i need to fix a password. which according to mysql_install_db:
PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !
To do so, start the server, then issue the following commands:
/Library/MySQL/bin/mysqladmin -u root password 'new-password'
/Library/MySQL/bin/mysqladmin -u root -h Alix.local password 'new-password'
See the manual for more instructions.
(believe me.... i am sooooo using the manual for MORE instructions!)
when i try and run this command i get:
Alix:~ alix$ /Library/MySQL/bin/mysqladmin -u root password 'alix1234'
/Library/MySQL/bin/mysqladmin: connect to server at 'localhost' failed
error: 'Access denied for user: 'root@localhost' (Using password: NO)'
Alix:~ alix$ /Library/MySQL/bin/mysqladmin - root -h Alix.local password 'alix1234'
/Library/MySQL/bin/mysqladmin: connect to server at 'Alix.local' failed
error: 'Host 'mysql' is not allowed to connect to this MySQL server'
Alix:~ alix$
_______
...also at some point in time i ran some code that was hidden in the labrynth of the mysqladmin script and got this:
Alix:~ alix$ telnet %s %d
%s: No address associated with nodename
Alix:~ alix$
alixerie - Aug 17, 2005 - 5:33 am
Alix:/Library/MySQL/sql-bench alix$ ls
Comments innotest1 test-ATIS
Data innotest1a test-alter-table
README innotest1b test-big-tables
bench-count-distinct innotest2 test-connect
bench-init.pl innotest2a test-create
compare-results innotest2b test-insert
copy-db limits test-select
crash-me run-all-tests test-transactions
graph-compare-results server-cfg test-wisconsin
Alix:/Library/MySQL/sql-bench alix$ pwd
/Library/MySQL/sql-bench
Alix:/Library/MySQL/sql-bench alix$ perl run-all-tests
Can't locate DBI.pm in @INC (@INC contains: /System/Library/Perl/5.8.1/darwin-thread-multi-2level /System/Library/Perl/5.8.1 /Library/Perl/5.8.1/darwin-thread-multi-2level /Library/Perl/5.8.1 /Library/Perl /Network/Library/Perl/5.8.1/darwin-thread-multi-2level /Network/Library/Perl/5.8.1 /Network/Library/Perl .) at run-all-tests line 36.
BEGIN failed--compilation aborted at run-all-tests line 36.
Alix:/Library/MySQL/sql-bench alix$
alixerie - Aug 17, 2005 - 5:57 am
(hmmm...whats hidden in the code??? I feel like Alix in Wonderland)
what is this? ----->
ENVIRONMENT=`uname -a`
macbri - Aug 17, 2005 - 6:07 am
Hi Alix -
"uname -a" gives the hostname and operating system name and version.
We seem to be getting buried in the details a little bit here, so I'm going to download and install MySQL on my powerbook and capture everything I do to a text file. I'll then post that here so you can see step by step what I did to install and configure MySQL, including making a user account with extra privileges, and creating a database.
- Brian
--------
Brian S.
MacOSX.com Technical Support
brian@macosx.com
alixerie - Aug 17, 2005 - 6:18 am
My mysqlbug seems to contain all the problems that i am having:
#!/bin/sh
# create a bug report and mail it to the mysql mailing list
# based on glibc bug reporting script.
echo "finding system information for a mysql bug report"
version="4.0.21 complete mysql by server logistics"
compilation_comment="source distribution"
bugmysql="mysql@lists.mysql.com"
# this is set by configure
comp_env_info="cc='gcc' cflags='' cxx='g++' cxxflags='' ldflags='' asflags=''"
configure_line="./configure '--with-pthreads' '--with-innodb' '--prefix=/library/mysql' '--enable-thread-safe-client' '--enable-shared' '--with-vio' '--with-openssl' '--with-server-suffix= complete mysql by server logistics'"
libc_info=""
for pat in /lib/libc.* /lib/libc-* /usr/lib/libc.* /usr/lib/libc-*
do
tmp=`ls -l $pat 2>/dev/null`
if test $? = 0
then
libc_info="$libc_info
$tmp"
fi
done
path=../client:$path:/bin:/usr/bin:/usr/local/bin
export path
bugaddr=${1-$bugmysql}
environment=`uname -a`
: ${user=${logname-`whoami`}}
command=`echo $0|sed 's%.*/\([^/]*\)%\1%'`
# try to create a secure tmpfile
umask 077
tempdir=/tmp/mysqlbug-$$
mkdir $tempdir || (echo "can not create directory in /tmp, aborting"; exit 1

temp=${tempdir}/mysqlbug
trap 'rm -f $temp $temp.x; rmdir $tempdir; exit 1' 1 2 3 13 15
trap 'rm -f $temp $temp.x; rmdir $tempdir' 0
# how to read the passwd database.
passwd="cat /etc/passwd"
if test -f /usr/lib/sendmail
then
mail_agent="/usr/lib/sendmail -oi -t"
elif test -f /usr/sbin/sendmail
then
mail_agent="/usr/sbin/sendmail -oi -t"
else
mail_agent="rmail $bugmysql"
fi
# figure out how to echo a string without a trailing newline
n=`echo 'hi there\c'`
case "$n" in
*c) echon1='echo -n' echon2= ;;
*) echon1=echo echon2='\c' ;;
esac
# find out the name of the originator of this pr.
if test -n "$name"
then
originator="$name"
elif test -f $home/.fullname
then
originator="`sed -e '1q' $home/.fullname`"
else
# must use temp file due to incompatibilities in quoting behavior
# and to protect shell metacharacters in the expansion of $logname
$passwd | grep "^$logname:" | awk -f: '{print $5}' | sed -e 's/,.*//' > $temp
originator="`cat $temp`"
rm -f $temp
fi
if test -n "$organization"
then
if test -f "$organization"
then
organization="`cat $organization`"
fi
else
if test -f $home/.organization
then
organization="`cat $home/.organization`"
elif test -f $home/.signature
then
organization=`sed -e "s/^/ /" $home/.signature; echo ">"`
fi
fi
path_dirs=`echo $path | sed -e 's/^:/. /' -e 's/:$/ ./' -e 's/::/ . /g' -e 's/:/ /g' `
which_1 ()
{
for cmd
do
# absolute path ?.
if expr "x$cmd" : "x/" > /dev/null
then
echo "$cmd"
exit 0
else
for d in $path_dirs
do
file="$d/$cmd"
if test -x "$file" -a ! -d "$file"
then
echo "$file"
exit 0
fi
done
fi
done
exit 1
}
change_editor ()
{
echo "you can change editor by setting the environment variable visual."
echo "if your shell is a bourne shell (sh) do"
echo "visual=your_editors_name; export visual"
echo "if your shell is a c shell (csh) do"
echo "setenv visual your_editors_name"
}
# if they don't have a preferred editor set, then use emacs
if test -z "$visual"
then
if test -z "$editor"
then
edit=emacs
else
edit="$editor"
fi
else
edit="$visual"
fi
#which_1 $edit
used_editor=`which_1 $edit`
echo "test -x $used_editor"
if test -x "$used_editor"
then
echo "using editor $used_editor";
change_editor
sleep 2
else
echo "could not find a text editor. (tried $edit)"
change_editor
exit 1
fi
# find out some information.
system=`( test -f /bin/uname && /bin/uname -a ) || \
( test -f /usr/bin/uname && /usr/bin/uname -a ) || echo ""`
arch=`test -f /bin/arch && /bin/arch`
machine=`test -f /bin/machine && /bin/machine`
file_paths=
for cmd in perl make gmake gcc cc
do
file=`which_1 $cmd`
if test $? = 0
then
if test $cmd = "gcc"
then
gcc_info=`$file -v 2>&1`
elif test $cmd = "perl"
then
perl_info=`$file -v | grep -i version 2>&1`
fi
file_paths="$file_paths $file"
fi
done
admin=`which_1 mysqladmin`
mysql_server=
if test -x "$admin"
then
mysql_server=`$admin version 2> /dev/null`
if test "$?" = "1"
then
mysql_server=""
fi
fi
subject_c="[50 character or so descriptive subject here (for reference)]"
organization_c='
'
licence_c='[none | licence | email support | extended email support ]'
synopsis_c=''
severity_c='<[ non-critical | serious | critical ] (one line)>'
priority_c='<[ low | medium | high ] (one line)>'
class_c='<[ sw-bug | doc-bug | change-request | support ] (one line)>'
release_c=''
environment_c=''
description_c=''
how_to_repeat_c=''
fix_c=''
cat > $temp <
send-pr: -*- send-pr -*-
send-pr: lines starting with \`send-pr' will be removed automatically, as
send-pr: will all comments (text enclosed in \`<' and \`>').
send-pr:
from: ${user}
to: ${bugaddr}
subject: $subject_c
>description:
$description_c
>how-to-repeat:
$how_to_repeat_c
>fix:
$fix_c
>submitter-id:
>originator: ${originator}
>organization:
${organization- $organization_c}
>mysql support: $licence_c
>synopsis: $synopsis_c
>severity: $severity_c
>priority: $priority_c
>category: mysql
>class: $class_c
>release: mysql-${version} ($compilation_comment)
`test -n "$mysql_server" && echo ">server: $mysql_server"`
>c compiler: gcc (gcc) 3.3 20030304 (apple computer, inc. build 1666)
>c++ compiler: g++ (gcc) 3.3 20030304 (apple computer, inc. build 1666)
>environment:
$environment_c
`test -n "$system" && echo "system: $system"`
`test -n "$arch" && echo "architecture: $arch"`
`test -n "$machine" && echo "machine: $machine"`
`test -n "$file_paths" && echo "some paths: $file_paths"`
`test -n "$gcc_info" && echo "gcc: $gcc_info"`
`test -n "$comp_env_info" && echo "compilation info: $comp_env_info"`
`test -n "$libc_info" && echo "libc: $libc_info"`
`test -n "$configure_line" && echo "configure command: $configure_line"`
`test -n "$perl_info" && echo "perl: $perl_info"`
eof
chmod u+w $temp
cp $temp $temp.x
eval $edit $temp
if cmp -s $temp $temp.x
then
echo "file not changed, no bug report submitted."
mv -f $temp /tmp/failed-mysql-bugreport
echo "the raw bug report exists in /tmp/failed-mysql-bugreport"
echo "if you use this remember that the first lines of the report are now a lie.."
exit 1
fi
#
# check the enumeration fields
# this is a "sed-subroutine" with one keyword parameter
# (with workaround for sun sed bug)
#
sed_cmd='
/$pattern/{
s|||
s|<.*>||
s|^[ ]*||
s|[ ]*$||
p
q
}'
while :; do
cnt=0
#
# 1) severity
#
pattern=">severity:"
severity=`eval sed -n -e "\"$sed_cmd\"" $temp`
case "$severity" in
""|non-critical|serious|critical) cnt=`expr $cnt + 1` ;;
*) echo "$command: \`$severity' is not a valid value for \`severity'."
esac
#
# 2) priority
#
pattern=">priority:"
priority=`eval sed -n -e "\"$sed_cmd\"" $temp`
case "$priority" in
""|low|medium|high) cnt=`expr $cnt + 1` ;;
*) echo "$command: \`$priority' is not a valid value for \`priority'."
esac
#
# 3) class
#
pattern=">class:"
class=`eval sed -n -e "\"$sed_cmd\"" $temp`
case "$class" in
""|sw-bug|doc-bug|change-request|support) cnt=`expr $cnt + 1` ;;
*) echo "$command: \`$class' is not a valid value for \`class'."
esac
#
# 4) synopsis
#
value=`grep "^>synopsis:" $temp | sed 's/>synopsis:[ ]*//'`
case "$value" in
"$synopsis_c") echo "$command: \`$value' is not a valid value for \`synopsis'." ;;
*) cnt=`expr $cnt + 1`
esac
test $cnt -lt 4 &&
echo "errors were found with the problem report."
# check if subject of mail was changed, if not, use synopsis field
#
subject=`grep "^subject" $temp| sed 's/^subject:[ ]*//'`
if [ x"$subject" = x"$subject_c" -o x"$subject" = x"$synopsis_c" ]; then
subject=`grep synopsis $temp | sed 's/>synopsis:[ ]*//'`
sed "s/^subject:[ ]*.*/subject: $subject/" $temp > $temp.tmp
mv -f $temp.tmp $temp
fi
while :; do
$echon1 "a)bort, e)dit or s)end? $echon2"
read input
case "$input" in
a*)
echo "$command: problem report saved in $home/dead.mysqlbug."
cat $temp >> $home/dead.mysqlbug
xs=1; exit
;;
e*)
eval $edit $temp
continue 2
;;
s*)
break 2
;;
esac
done
done
#
# remove comments and send the problem report
# (we have to use patterns, where the comment contains regex chars)
#
# /^>originator:/s;$originator;;
sed -e "
/^send-pr:/d
/^>organization:/,/^>[a-za-z-]*:/s;$organization_c;;
/^>confidential:/s;<.*>;;
/^>synopsis:/s;$synopsis_c;;
/^>severity:/s;<.*>;;
/^>priority:/s;<.*>;;
/^>class:/s;<.*>;;
/^>release:/,/^>[a-za-z-]*:/s;$release_c;;
/^>environment:/,/^>[a-za-z-]*:/s;$environment_c;;
/^>description:/,/^>[a-za-z-]*:/s;$description_c;;
/^>how-to-repeat:/,/^>[a-za-z-]*:/s;$how_to_repeat_c;;
/^>fix:/,/^>[a-za-z-]*:/s;$fix_c;;
" $temp > $temp.x
if $mail_agent < $temp.x
then
echo "$command: problem report sent"
xs=0; exit
else
echo "$command: mysterious mail failure, report not sent."
echo "$command: problem report saved in $home/dead.mysqlbug."
cat $temp >> $home/dead.mysqlbug
fi
exit 0
alixerie - Aug 17, 2005 - 6:20 am
great brian...just read your last reply....thanks
macbri - Aug 17, 2005 - 4:40 pm
Hi Alix -
Ok here's an annotated walk-through of installing MySQL on Mac OS X. I cut out the extraneous stuff and I hope it's not too lenghty. Admittedly it's still pretty long, and it's pretty dry reading but such is tech documentation

In this document all terminal input/output is indented for clarity. Also, my machine is called "powerbook" so you'll have to replace that with your system name (you can get that with the "uname -n" command). Also lines beginning with "[powerbook:/usr/local/mysql] user%" are lines I input, and whatever they come out looking like in this document, there is NO line break, in other words everything should be input on one line even if it looks here like it's on 2 lines. Phew.
If you want to follow this along yourself, I'd recommend removing *all* your previous installations of MySQL. Also make sure it's not running, and finally remove the /tmp/mysql.sock if it still exists, all as I described earlier. With that said, here we go. If you have questions about it just let me know and we can work through it.
Installing MySQL 4.1 on Mac OS X 10.4
This document follows the process for installing MySQL 4.1 (at time of
writing version 4.1.13) on Mac OS X 10.4.2 (Tiger). It uses the tarfile
downloaded from
www.mysql.com, although you may prefer to use the pre-packaged installer files (see the note in step 1 below). The reason I used the tarfile is to show where the files are installed, what permissions they get and so on.
(1) The MySQL 4.1.13 tarfile was downloaded to my desktop. It's to be
installed in /usr/local so we'll make sure that directory exists before we continue:
[powerbook:~] user% sudo mkdir /usr/local
mkdir: /usr/local: File exists
In my case the directory already existed, but no harm done. Note that the "[powerbook:/usr/local/mysql] user%" is the shell prompt I have, you don't enter that text. So to enter the above command is simply:
sudo mkdir /usr/local
This convention will be maintained throughout this document.
NOTE: If you use the pre-packaged Mac OS X Installer files from
www.mysql.com (see setp 15 for more information), installing it will automatically place all the files in /usr/local for you *and* run the 'mysql_install_db' command. If you go this route, you can run the installer and then skip along to step 8 in this document. If you have problems later on finding the 'mysql' command in your terminal, have a look at
step 5.
(2) Now we can unpack the MySQL tarfile:
[powerbook:~] user% cd /usr/local
[powerbook:/usr/local] user% sudo tar xvf ~/Desktop/mysql-standard-4.1.13-apple-darwin7.9.0-powerpc.tar
mysql-standard-4.1.13-apple-darwin7.9.0-powerpc/
mysql-standard-4.1.13-apple-darwin7.9.0-powerpc/bin/
mysql-standard-4.1.13-apple-darwin7.9.0-powerpc/bin/comp_err
.
.
.
mysql-standard-4.1.13-apple-darwin7.9.0-powerpc/tests/table_types.pl
mysql-standard-4.1.13-apple-darwin7.9.0-powerpc/tests/test_delayed_insert.pl
mysql-standard-4.1.13-apple-darwin7.9.0-powerpc/tests/udf_test.res
(3) It's all unpacked, but the directory name is pretty unwieldy, so we
make a link to it with a nice short name:
[powerbook:/usr/local] user% sudo ln -s mysql-standard-4.1.13-apple-darwin7.9.0-powerpc/ mysql
(4) Let's see what files we have:
[powerbook:/usr/local] user% cd mysql
[powerbook:/usr/local/mysql] user% ls
COPYING configure man support-files
EXCEPTIONS-CLIENT data mysql-test tests
INSTALL-BINARY docs scripts
README include share
bin lib sql-bench
(5) Now we want to add the path to the MySQL commands to our environment so that we can type the commands at any time without having to supply the full path each time. The setup depends on which shell we're using. To determine this all you have to do is:
[powerbook:/usr/local/mysql] user% echo $SHELL
/bin/tcsh
In my case I'm using the C-shell so I do the following:
[powerbook:/usr/local/mysql] user% touch ~/.cshrc
[powerbook:/usr/local/mysql] user% echo 'set path = ($path /usr/local/mysql/bin)' >> ~/.cshrc
[powerbook:/usr/local/mysql] user% source ~/.cshrc
[powerbook:/usr/local/mysql] user% which mysql
/usr/local/mysql/bin/mysql
On the other hand if you're using the Bourne Shell (/bin/bash) you would do:
[powerbook:/usr/local/mysql] user% touch ~/.profile
[powerbook:/usr/local/mysql] user% echo 'export PATH=$PATH:/usr/local/mysql/bin' >> ~/.profile
[powerbook:/usr/local/mysql] user% . ~/.profile
[powerbook:/usr/local/mysql] user% which mysql
/usr/local/mysql/bin/mysql
(6) Post-installation - we need to set up default grant tables, and there's a
script included to do this for us. (Note that I'm including all the output
of the script below for comparison):
[powerbook:/usr/local/mysql] user% sudo scripts/mysql_install_db --user=mysql
Installing all prepared tables
050817 4:30:10 [Warning] Setting lower_case_table_names=2 because file system for /usr/local/mysql-standard-4.1.13-apple-darwin7.9.0-powerpc/data/ is case insensitive
Fill help tables
050817 4:30:12 [Warning] Setting lower_case_table_names=2 because file system for /usr/local/mysql-standard-4.1.13-apple-darwin7.9.0-powerpc/data/ is case insensitive
To start mysqld at boot time you have to copy support-files/mysql.server
to the right place for your system
PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !
To do so, start the server, then issue the following commands:
./bin/mysqladmin -u root password 'new-password'
./bin/mysqladmin -u root -h powerbook.local password 'new-password'
See the manual for more instructions.
You can start the MySQL daemon with:
cd . ; ./bin/mysqld_safe &
You can test the MySQL daemon with the benchmarks in the 'sql-bench' directory:
cd sql-bench ; perl run-all-tests
Please report any problems with the ./bin/mysqlbug script!
The latest information about MySQL is available on the web at
http://www.mysql.com
Support MySQL by buying support/licenses at
https://order.mysql.com
Note that I *don't* run the sql-bench tests, if you want to you'll need to install some extra Perl packages first, and that's beyond the scope of this document. (I can help you with that later on if you wish though)
(7) Next we need to set up some permissions for the files we've extracted.
Everything in the MySQL directory should be owned by user root, group mysql, and the data subdirectory should be owned by user mysql. Once we've run the commands we do an "ls -l" to make sure everything is set up the way we want:
[powerbook:/usr/local/mysql] user% sudo chown -R root .
[powerbook:/usr/local/mysql] user% sudo chown -R mysql data
[powerbook:/usr/local/mysql] user% sudo chgrp -R mysql .
[powerbook:/usr/local/mysql] user% ls -la
total 96
drwxr-xr-x 19 root mysql 646 Jul 15 14:16 .
drwxr-xr-x 5 root wheel 170 Aug 17 04:27 ..
-rw-r--r-- 1 root mysql 19071 Jul 15 03:39 COPYING
-rw-r--r-- 1 root mysql 5303 Jul 15 13:59 EXCEPTIONS-CLIENT
-rw-r--r-- 1 root mysql 8743 Jul 15 13:59 INSTALL-BINARY
-rw-r--r-- 1 root mysql 1937 Jul 15 03:39 README
drwxr-xr-x 54 root mysql 1836 Jul 15 14:16 bin
-rwxr-xr-x 1 root mysql 801 Jul 15 14:16 configure
drwxr-x--- 4 mysql mysql 136 Aug 17 04:30 data
drwxr-xr-x 4 root mysql 136 Jul 15 14:16 docs
drwxr-xr-x 61 root mysql 2074 Jul 15 14:16 include
drwxr-xr-x 10 root mysql 340 Jul 15 14:16 lib
drwxr-xr-x 3 root mysql 102 Jul 15 14:16 man
drwxr-xr-x 12 root mysql 408 Jul 15 14:16 mysql-test
drwxr-xr-x 3 root mysql 102 Jul 15 14:16 scripts
drwxr-xr-x 5 root mysql 170 Jul 15 14:16 share
drwxr-xr-x 31 root mysql 1054 Jul 15 14:16 sql-bench
drwxr-xr-x 14 root mysql 476 Jul 15 14:16 support-files
drwxr-xr-x 21 root mysql 714 Jul 15 14:16 tests
(8) Now let's start up the MySQL server and see if it's working as we expect.
We can check with the 'mysqladmin version' command:
[powerbook:/usr/local/mysql] user% sudo ./bin/mysqld_safe --user=mysql &
[1] 8186
[powerbook:/usr/local/mysql] user% Starting mysqld daemon with databases from /usr/local/mysql/data
[powerbook:/usr/local/mysql] user% mysqladmin version
mysqladmin Ver 8.41 Distrib 4.1.13, for apple-darwin7.9.0 on powerpc
Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB
This software comes with ABSOLUTELY NO WARRANTY. This is free software,
and you are welcome to modify and redistribute it under the GPL license
Server version 4.1.13-standard
Protocol version 10
Connection Localhost via UNIX socket
UNIX socket /tmp/mysql.sock
Uptime: 3 min 14 sec
Threads: 1 Questions: 1 Slow queries: 0 Opens: 11 Flush tables: 1 Open tables: 0 Queries per second avg: 0.005
(9) Great - looks like it's working!. Now let's see if we can shut it down
properly:
[powerbook:/usr/local/mysql] user% mysqladmin -u root shutdown
[powerbook:/usr/local/mysql] user% STOPPING server from pid file /usr/local/mysql/data/powerbook.local.pid
050817 04:35:50 mysqld ended
[1] Done sudo ./bin/mysqld_safe --user=mysql
(10) Everything is working fine so far. Now we'll start it up again and set
up the passwords as we should. There are a few ways to set the password,
we'll try two. First, by connecting directly to the database and using the
"SET PASSWORD" MySQL command, which we'll use for the anonymous accounts, and secondly with the quicker command-line "mysqladmin password" commands for the root accounts (just to show both, it doesn't really matter which you use)
[powerbook:/usr/local/mysql] user% sudo ./bin/mysqld_safe --user=mysql &
[1] 8220
[powerbook:/usr/local/mysql] user% Starting mysqld daemon with databases from /usr/local/mysql/data
[powerbook:/usr/local/mysql] user% mysql -u root
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 4 to server version: 4.1.13-standard
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
mysql> set password for ''@'localhost' = password('12345');
Query OK, 0 rows affected (0.01 sec)
mysql> set password for ''@'powerbook.local' = password('12345');
Query OK, 0 rows affected (0.00 sec)
mysql> flush privileges;
Query OK, 0 rows affected (0.01 sec)
mysql> quit
Bye
[powerbook:/usr/local/mysql] user% mysqladmin -u root password '12345'
Of course I wouldn't use 12345 as a real password, and also don't use the same password for root as for your anonymous (or indeed any other) accounts.
(11) Now we'll add a new user "alix" to the MySQL database, with full privileges including the GRANT ability, which essentially allows this user to grant rights to other users:
[powerbook:/usr/local/mysql] user% mysql -u root -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 8 to server version: 4.1.13-standard
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
mysql> grant all privileges on *.* to 'alix'@'%' identified by '54321' with grant option;
Query OK, 0 rows affected (0.00 sec)
mysql> grant all privileges on *.* to 'alix'@'localhost' identified by '54321' with grant option;
Query OK, 0 rows affected (0.00 sec)
(12) Now let's test the account we just set up:
[powerbook:/usr/local/mysql] user% mysql -u alix -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 11 to server version: 4.1.13-standard
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
mysql> quit
Bye
(13) Everything's working fine. Now let's connect with user 'alix' again and
create a database and add a table with a couple of rows of data:
[powerbook:/usr/local/mysql] user% mysql -u alix -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 11 to server version: 4.1.13-standard
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
mysql> create database AmazingDatabase;
Query OK, 1 row affected (0.00 sec)
mysql> use AmazingDatabase;
Database changed
mysql> show tables;
Empty set (0.00 sec)
mysql> create table FirstSet (Id INTEGER, Name VARCHAR(40), Result Integer, Date DATE);
Query OK, 0 rows affected (0.03 sec)
mysql> show tables;
+---------------------------+
| Tables_in_amazingdatabase |
+---------------------------+
| FirstSet |
+---------------------------+
1 row in set (0.00 sec)
mysql> insert into FirstSet values(1, 'Sample1', 12, now());
Query OK, 1 row affected (0.00 sec)
mysql> insert into FirstSet values(1, 'Sample15', 912, now());
Query OK, 1 row affected (0.00 sec)
mysql> select * from FirstSet;
+------+----------+--------+------------+
| Id | Name | Result | Date |
+------+----------+--------+------------+
| 1 | Sample1 | 12 | 2005-08-17 |
| 1 | Sample15 | 912 | 2005-08-17 |
+------+----------+--------+------------+
2 rows in set (0.00 sec)
(oops, we set the Id for both table rows to 1. Nothing wrong with that but maybe we should set it to 2. A quick "UPDATE" command will do that for us):
mysql> update FirstSet set ID = 2 where Result=912;
Query OK, 1 row affected (0.00 sec)
Rows matched: 1 Changed: 1 Warnings: 0
(14) Now while still connected to the database let's do a simple "SELECT" on the table and see what we get:
mysql> select * from FirstSet;
+------+----------+--------+------------+
| Id | Name | Result | Date |
+------+----------+--------+------------+
| 1 | Sample1 | 12 | 2005-08-17 |
| 2 | Sample15 | 912 | 2005-08-17 |
+------+----------+--------+------------+
2 rows in set (0.01 sec)
mysql> quit
Bye
(15) That's it! Except, how do we easily have MySQL run automatically every
time we boot our Mac? Although there's several ways to accomplish this, to
me the easiest is to use the MySQLStartupItem and MySQL.prefpane. When you download the Mac OS X installer from
www.mysql.com (the .dmg file) you get a MySQLStartupItem.pkg file, which installs the necessary hooks to have MySQL automatically run at system start up, and a MySQL.prefPane file. All you need to do is install the MySQLStartupItems.pkg installer file (double-click and follow along the installer's prompts), and then drag the MySQL.prefPane file to your ~/Library/PreferencePanes/ Folder (look for
/Library/PreferencePanes/ under your home directory). Then open up your "System Preferences" and there at the bottom under the "Other" category you'll see a MySQL control panel. When you open this you get a simple "Start/Stop" button for MySQL and a checkbox which will set up everything to run MySQL automatically at boot time.
(For the curious, this toggles the MYSQLCOM entry in /etc/hostconfig between -YES- and -NO-. When the system boots and looks for services to automatically start, it finds /Library/StartupItems/MySQLCOM and the MySQLCOM script within this directory will run, *if* MYSQLCOM is set to -YES- in /etc/hostconfig)
--------
Brian S.
MacOSX.com Technical Support
brian@macosx.com
alixerie - Aug 17, 2005 - 11:24 pm
ok brian, i am going to try it out now, but i have one reservation...i am not using Tiger. I am using Panther 10.3.9. so i hopw it works. actually, i guess i will wait until i get home from working to try this, i am now on my lunch break, so if you think it will not work, i am not going to start until about 6 am your time.
macbri - Aug 17, 2005 - 11:34 pm
Hi Alix -
Not to worry, everything I described should work just as well on Panther. Just be sure to download the correct version of MySQL from their website. It's version 4.1.13 for Darwin 7.9 (Mac OS X 10.3). I just checked their website and the link for the tarfile version is:
http://dev.mysql.com/get/Downloads/MySQL-4.1/mysql-standard-4.1.13-apple-darwin7.9.0-powerpc.tar.gz/from/pick
and for the installer (dmg) version is:
http://dev.mysql.com/get/Downloads/MySQL-4.1/mysql-standard-4.1.13-apple-darwin7.9.0-powerpc.dmg/from/pick
Best of luck and I'll check in tomorrow morning to see how it's going, so let me know if there are any problems.
- Brian
--------
Brian S.
MacOSX.com Technical Support
brian@macosx.com
alixerie - Aug 18, 2005 - 7:11 am
Hello Brian,
I tried it using the tar file...I cut and pasted what you wrote in number two (Alix:/usr/local alix$ sudo tar xvf ~/Desktop/mysql-standard-4.1.13-apple-darwin7.9.0-powerpc.tar ...etc, etc.) and It spit out a long list of files to be unpacked folled by these messages:
mysql-standard-4.1.13-apple-darwin7.9.0-powerpc/tests/udf_test.res
Alix:/usr/local alix$ mysql-standard-4.1.13-apple-darwin7.9.0-powerpc/
bash: mysql-standard-4.1.13-apple-darwin7.9.0-powerpc/: is a directory
Alix:/usr/local alix$ mysql-standard-4.1.13-apple-darwin7.9.0-powerpc/bin/
bash: mysql-standard-4.1.13-apple-darwin7.9.0-powerpc/bin/: is a directory
Alix:/usr/local alix$ mysql-standard-4.1.13-apple-darwin7.9.0-powerpc/bin/comp_err
Usage: mysql-standard-4.1.13-apple-darwin7.9.0-powerpc/bin/comp_err [-?] [-I] [-V] fromfile[s] tofile
Alix:/usr/local alix$ .
bash: .: filename argument required
.: usage: . filename
Alix:/usr/local alix$ .
bash: .: filename argument required
.: usage: . filename
Alix:/usr/local alix$ .
bash: .: filename argument required
.: usage: . filename
Alix:/usr/local alix$ mysql-standard-4.1.13-apple-darwin7.9.0-powerpc/tests/table_types.pl
Can't locate DBI.pm in @INC (@INC contains: /System/Library/Perl/5.8.1/darwin-thread-multi-2level /System/Library/Perl/5.8.1 /Library/Perl/5.8.1/darwin-thread-multi-2level /Library/Perl/5.8.1 /Library/Perl /Network/Library/Perl/5.8.1/darwin-thread-multi-2level /Network/Library/Perl/5.8.1 /Network/Library/Perl .) at mysql-standard-4.1.13-apple-darwin7.9.0-powerpc/tests/table_types.pl line 4.
BEGIN failed--compilation aborted at mysql-standard-4.1.13-apple-darwin7.9.0-powerpc/tests/table_types.pl line 4.
Alix:/usr/local alix$ mysql-standard-4.1.13-apple-darwin7.9.0-powerpc/tests/test_delayed_insert.pl
Can't locate DBI.pm in @INC (@INC contains: /System/Library/Perl/5.8.1/darwin-thread-multi-2level /System/Library/Perl/5.8.1 /Library/Perl/5.8.1/darwin-thread-multi-2level /Library/Perl/5.8.1 /Library/Perl /Network/Library/Perl/5.8.1/darwin-thread-multi-2level /Network/Library/Perl/5.8.1 /Network/Library/Perl .) at mysql-standard-4.1.13-apple-darwin7.9.0-powerpc/tests/test_delayed_insert.pl line 10.
BEGIN failed--compilation aborted at mysql-standard-4.1.13-apple-darwin7.9.0-powerpc/tests/test_delayed_insert.pl line 10.
Alix:/usr/local alix$ mysql-standard-4.1.13-apple-darwin7.9.0-powerpc/tests/test_delayed_insert.pl
i searched to make sure that the files were not unstuffed, which they weren't, so i am now going to attempt the standard installation package....
however, i can remember once before seeing the message that DBI.pm could not be located...
alixerie - Aug 18, 2005 - 8:40 am
ok great, well i have gotten through part 15 and i have gone back to part 8. i have now been able to locate the mysql file witht he long darwin name and i have even gone through the steps to rename it just as you wrote. when i list the files within the directory it shows both the long name and the short name as existing....well here, see for yourself
Alix:/usr/local alix$ ls
mysql
mysql-standard-4.1.13-apple-darwin7.9.0-powerpc
Alix:/usr/local alix$ sudo ln -s mysql-standard-4.1.13-apple-darwin7.9.0-powerpc/ mysql
ln: mysql: File exists
Alix:/usr/local alix$ cd mysql-standard-4.1.13-apple-darwin7.9.0-powerpc
Alix:/usr/local/mysql-standard-4.1.13-apple-darwin7.9.0-powerpc alix$ ls
COPYING data scripts
EXCEPTIONS-CLIENT docs share
INSTALL-BINARY include sql-bench
README lib support-files
bin man tests
configure mysql-test
Alix:/usr/local/mysql-standard-4.1.13-apple-darwin7.9.0-powerpc alix$
so, i guess this is not a big problem, but i just wanted to let you know that it didnt work exactly as expected....also, i am working on an iBook G4
alixerie - Aug 18, 2005 - 8:40 am
ok great, well i have gotten through part 15 and i have gone back to part 8. i have now been able to locate the mysql file witht he long darwin name and i have even gone through the steps to rename it just as you wrote. when i list the files within the directory it shows both the long name and the short name as existing....well here, see for yourself
Alix:/usr/local alix$ ls
mysql
mysql-standard-4.1.13-apple-darwin7.9.0-powerpc
Alix:/usr/local alix$ sudo ln -s mysql-standard-4.1.13-apple-darwin7.9.0-powerpc/ mysql
ln: mysql: File exists
Alix:/usr/local alix$ cd mysql-standard-4.1.13-apple-darwin7.9.0-powerpc
Alix:/usr/local/mysql-standard-4.1.13-apple-darwin7.9.0-powerpc alix$ ls
COPYING data scripts
EXCEPTIONS-CLIENT docs share
INSTALL-BINARY include sql-bench
README lib support-files
bin man tests
configure mysql-test
Alix:/usr/local/mysql-standard-4.1.13-apple-darwin7.9.0-powerpc alix$
so, i guess this is not a big problem, but i just wanted to let you know that it didnt work exactly as expected....also, i am working on an iBook G4
alixerie - Aug 18, 2005 - 9:12 am
ok great disregard the last message...im now on to part 9!!!!
alixerie - Aug 18, 2005 - 9:39 am
i really have to go to bed...anyway there is a problem with my access to the mysqladmin or the bin.....
although the /usr/local/mysql-standard-4.1.13-apple-darwin7.9.0-powerpc shows up in bash, the file is invisible when i try and scope it from outside the terminal. furthermore, i havent been able to renameit a short name...and finally, i guess mysqld_install_db ran but without asking me for the password.
if you actually did explain this in your tech document, i am sorry for overlooking it...i am seriously sleep-deprived..
just wanted to let you know what progress i had made before i went to sleep
macbri - Aug 19, 2005 - 12:56 am
Hi Alix -
Ok sounds like progress! You've gotten most of the way there, I'll answer the issues you've noticed (well as much as I can anyway).
The first set of errors you got after extracting the tarfile is simple - in my instructions I gave you the command to type "tar xvf..." but I also showed the output of that command trimmed down to a few lines. But I never identified them as such, so that's my fault. The first few errors you got therefore were simply the shell telling you were were entering directory names without any commands. So these you can safely ignore. As regards the "DBI" error you've noticed, again that came about because one of the lines I listed (as an output to the tar command) was a Perl test script. This failed because youdon't have the DBI Perl package on your system (this is the "extra Perl packages" note I made at the end of step 6).
You next posting said that you had both a "mysql" and "mysql-standard-4.1.13-blah-blah-blah" directory in /usr/local. I think this is (and I'm making a possibly gross assumption here) that after you tried unpacking the tarfile and got all those errors, you then installed from the installer packages and therefore ended up with two versions of MySQL installed. Or perhaps you had another version from a previous install attempt left over? In any case, removing /usr/local/mysql entirely and then trying the "ln -s" command from step 3 again. Or, remove *ALL* mysql related directories in /usr/local and install from the installer again. On the command line you can do this with:
rm -rf /usr/local/mysql
rm -rf /usr/local/mysql-standard-4.1.13-apple-darwin7.9.0-powerpc
In your final post you talked about how the directories showed up in the terminal but not in the Finder. This is a trick Apple uses to "hide" most of the UNIX underpinnings from the Finder. This includes the /usr directory tree which is why you don't see it. You *can* make everything visible but I usually recommend against this, since if the Finder can't "see" the essential UNIX systems directories, it can't accidentally disturb them (have you ever went to open a folder and instead it disappeared into another folder? - I have!)
Last thing - you said the mysql_install_db had run without asking for a password? That's normal, if you use the installer to install MySQL, that script is run automatically for you.
So it seems as though you're just about there - well done!
- Brian
--------
Brian S.
MacOSX.com Technical Support
brian@macosx.com
alixerie - Aug 28, 2005 - 7:36 pm
Hello again!
I have worked all the way through step 8 and when I run the mysqladmin command it works. But when i go on to step 9 to shut down I get this:
Alix:/usr/local/mysql alix$ mysqladmin -u root shutdown
Alix:/usr/local/mysql alix$ STOPPING server from pid file /usr/local/mysql/data/powerbook.local.pid
bash: STOPPING: command not found
Alix:/usr/local/mysql alix$
I am going to try and figure out what is wrong...but i will wait for your reply.
alixerie - Aug 28, 2005 - 7:40 pm
OK and I guess I could have just messed something up, because I typed in "mysqladmin" again and it carried out a different fuction this time:
Alix:/usr/local/mysql alix$ mysqladmin
mysqladmin Ver 8.41 Distrib 5.0.11-beta, for apple-darwin6.8 on powerpc
Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB
This software comes with ABSOLUTELY NO WARRANTY. This is free software,
and you are welcome to modify and redistribute it under the GPL license
Administration program for the mysqld daemon.
Usage: mysqladmin [OPTIONS] command command....
-c, --count=# Number of iterations to make. This works with -i
(--sleep) only.
-#, --debug[=name] Output debug log. Often this is 'd:t

,filename'.
-f, --force Don't ask for confirmation on drop database; with
multiple commands, continue even if an error occurs.
-C, --compress Use compression in server/client protocol.
--character-sets-dir=name
Directory where character sets are.
--default-character-set=name
Set the default character set.
-?, --help Display this help and exit.
-h, --host=name Connect to host.
-p, --password[=name]
Password to use when connecting to server. If password is
not given it's asked from the tty.
-P, --port=# Port number to use for connection.
--protocol=name The protocol of connection (tcp,socket,pipe,memory).
-r, --relative Show difference between current and previous values when
used with -i. Currently works only with extended-status.
-O, --set-variable=name
Change the value of a variable. Please note that this
option is deprecated; you can set variables directly with
--variable-name=value.
-s, --silent Silently exit if one can't connect to server.
-S, --socket=name Socket file to use for connection.
-i, --sleep=# Execute commands again and again with a sleep between.
-u, --user=name User for login if not current user.
-v, --verbose Write more information.
-V, --version Output version information and exit.
-E, --vertical Print output vertically. Is similar to --relative, but
prints output vertically.
-w, --wait[=#] Wait and retry if connection is down.
--connect_timeout=#
--shutdown_timeout=#
Variables (--variable-name=value)
and boolean options {FALSE|TRUE} Value (after reading options)
--------------------------------- -----------------------------
count 0
force FALSE
compress FALSE
character-sets-dir (No default value)
default-character-set (No default value)
host (No default value)
port 3306
relative FALSE
socket (No default value)
sleep 0
user (No default value)
verbose FALSE
vertical FALSE
connect_timeout 43200
shutdown_timeout 3600
Default options are read from the following files in the given order:
/etc/my.cnf ~/.my.cnf
The following groups are read: mysqladmin client
The following options may be given as the first argument:
--print-defaults Print the program argument list and exit
--no-defaults Don't read default options from any options file
--defaults-file=# Only read default options from the given file #
--defaults-extra-file=# Read this file after the global files are read
Where command is a one or more of: (Commands may be shortened)
create databasename Create a new database
debug Instruct server to write debug information to log
drop databasename Delete a database and all its tables
extended-status Gives an extended status message from the server
flush-hosts Flush all cached hosts
flush-logs Flush all logs
flush-status Clear status variables
flush-tables Flush all tables
flush-threads Flush the thread cache
flush-privileges Reload grant tables (same as reload)
kill id,id,... Kill mysql threads
password new-password Change old password to new-password, MySQL 4.1 hashing.
old-password new-password Change old password to new-password in old format.
ping Check if mysqld is alive
processlist Show list of active threads in server
reload Reload grant tables
refresh Flush all tables and close and open logfiles
shutdown Take server down
status Gives a short status message from the server
start-slave Start slave
stop-slave Stop slave
variables Prints variables available
version Get version info from server
Alix:/usr/local/mysql alix$
macbri - Aug 29, 2005 - 1:55 am
Hi Alix -
If you run 'mysqladmin' without additional arguments you do normally see what you report in your last message. So that's no problem. As for the "command not found" in the message before that, this looks like an environment issue still. Have you made sure you followed step 5? If you open a new shell in the terminal app and type the following commands:
echo $SHELL
echo $PATH
which mysqladmin
which mysql
What do you get? Also do you have one pieces of one or more old installations of MySQL hanging around?
- Brian
--------
Brian S.
MacOSX.com Technical Support
brian@macosx.com
alixerie - Oct 3, 2005 - 2:51 am
hi!
i finally have the time to work with this again. i am trying to start mysql using the command:
sudo ./bin/mysqld_safe --user=mysql &
[1] 540
but all i am getting is that a mysqld process already exists. so, i checked my /usr/local folder and i find that actually there are 4 existing files of mysql:
Alix:/usr/local alix$ ls
mysql
mysql-standard-4.1.13-apple-darwin7.9.0-powerpc
mysql-standard-4.1.14-apple-darwin7.9.0-powerpc
mysql-standard-5.0.11-beta-osx10.2-powerpc
Alix:/usr/local alix$ rm mysql-standard-5.0.11-beta-osx10.2-powerpc
rm: mysql-standard-5.0.11-beta-osx10.2-powerpc: is a directory
________________
so i tried many different ways to remove the directories but i can seem to get the command right.
furthermore, when i installed mysql this time i did remember to remove the socket, so i am guessinbg that the reason that i cant start the server is
alixerie - Oct 3, 2005 - 2:51 am
hi!
i finally have the time to work with this again. i am trying to start mysql using the command:
sudo ./bin/mysqld_safe --user=mysql &
[1] 540
but all i am getting is that a mysqld process already exists. so, i checked my /usr/local folder and i find that actually there are 4 existing files of mysql:
Alix:/usr/local alix$ ls
mysql
mysql-standard-4.1.13-apple-darwin7.9.0-powerpc
mysql-standard-4.1.14-apple-darwin7.9.0-powerpc
mysql-standard-5.0.11-beta-osx10.2-powerpc
Alix:/usr/local alix$ rm mysql-standard-5.0.11-beta-osx10.2-powerpc
rm: mysql-standard-5.0.11-beta-osx10.2-powerpc: is a directory
________________
so i tried many different ways to remove the directories but i can seem to get the command right.
furthermore, when i installed mysql this time i did remember to remove the socket, so i am guessinbg that the reason that i cant start the server is
macbri - Oct 3, 2005 - 4:27 am
Hi Alix -
Welcome back!
Anyway, as mentioned before I think your safest course of action is to remove ALL versions of MySQL on your system. The way to do this is:
cd /usr/local
sudo rm -rf ./mysql*
Be careful to not make any mistakes in the above command, especially NO SPACES in the last argument: ./mysql*
This is because "rm -rf" will remove *anything* you tell it to when combined with "sudo", and thus could trash a lot more than the intended target!
Now, again check that the socket files are removed. Finally, reboot your machine to make sure there's no vestiges of MySQL left.
At this stage if you open a terminal and type "mysqladmin" you should get a "command not found" error or similar, and of course /usr/local should not contain anything related to MySQL.
Now, quickly run through the install again, using the standalone installer if you want to skip a few steps, and then pick it up at step 8 and see how you go....
- Brian
--------
Brian S.
MacOSX.com Technical Support
brian@macosx.com
alixerie - Oct 3, 2005 - 6:13 am
okie dokie, so at step 8 this is what happens:
Alix:/usr/local/mysql alix$ sudo ./bin/mysqld_safe --user=mysql &
[1] 396
Alix:/usr/local/mysql alix$ [1] 8186Password:
bash: [1]: command not found
Alix:/usr/local/mysql alix$
______
for the password, i just used my main password that i use with my computer (which is just set to be the key)
i also tried :
Alix:/usr/local/mysql alix$ mysqladmin version
bash: mysqladmin: command not found
______
and this is what i have inside:
Alix:~ alix$ cd /usr/local/mysql
Alix:/usr/local/mysql alix$ ls
COPYING data scripts
EXCEPTIONS-CLIENT docs share
INSTALL-BINARY include sql-bench
README lib support-files
bin man tests
configure mysql-test
macbri - Oct 4, 2005 - 3:14 am
Hi Alix -
Ok, so have you made sure your path is set up correctly? You're using /bin/bash as I recall, so you should edit ~/.profile and add:
export PATH=$PATH:/usr/local/mysql/bin
Then open a new terminal window and go back to step 8 again. let me know what happens from there!
Incidentally, if you're tired of doing this over again, there is a new feature of macosx.com called "Help!" which is a program you can download and then allow me (or another tech) to remotely "drive" your computer. If you are interested in this (of course we both need to be sitting down at our macs at the same time) then check out
http://www.macosx.com/apps/help.htm
--------
Brian S.
MacOSX.com Technical Support
brian@macosx.com
alixerie - Oct 4, 2005 - 11:27 am
I followed directions from number five...here goes.
alix:~ alix$ cd /usr/local/mysql
alix:/usr/local/mysql alix$ echo $shell
/bin/bash
alix:/usr/local/mysql alix$ touch ~/.profile
alix:/usr/local/mysql alix$ echo 'export path=$path:/usr/local/mysql/bin' >> ~/.profile
alix:/usr/local/mysql alix$ . ~/.profile
declare -x home="/users/alix"
declare -x oldpwd="/users/alix"
declare -x path="/usr/bin:/bin:/usr/sbin:/sbin:/users/alix:/usr/local/mysql/bin"
declare -x pwd="/usr/local/mysql"
declare -x securitysessionid="212eb0"
declare -x shell="/bin/bash"
declare -x shlvl="1"
declare -x term="xterm-color"
declare -x term_program="apple_terminal"
declare -x term_program_version="100.1.8"
declare -x user="alix"
declare -x __cf_user_text_encoding="0x1f5:0:0"
declare -x home="/users/alix"
declare -x oldpwd="/users/alix"
declare -x path="/usr/bin:/bin:/usr/sbin:/sbin:/users/alix:/usr/local/mysql/bin:/usr/local/mysql/bin"
declare -x pwd="/usr/local/mysql"
declare -x securitysessionid="212eb0"
declare -x shell="/bin/bash"
declare -x shlvl="1"
declare -x term="xterm-color"
declare -x term_program="apple_terminal"
declare -x term_program_version="100.1.8"
declare -x user="alix"
declare -x __cf_user_text_encoding="0x1f5:0:0"
declare -x home="/users/alix"
declare -x oldpwd="/users/alix"
declare -x path="/usr/bin:/bin:/usr/sbin:/sbin:/users/alix:/usr/local/mysql/bin:/usr/local/mysql/bin:/usr/local/mysql/bin"
declare -x pwd="/usr/local/mysql"
declare -x securitysessionid="212eb0"
declare -x shell="/bin/bash"
declare -x shlvl="1"
declare -x term="xterm-color"
declare -x term_program="apple_terminal"
declare -x term_program_version="100.1.8"
declare -x user="alix"
declare -x __cf_user_text_encoding="0x1f5:0:0"
declare -x home="/users/alix"
declare -x oldpwd="/users/alix"
declare -x path="/usr/bin:/bin:/usr/sbin:/sbin:/users/alix:/usr/local/mysql/bin:/usr/local/mysql/bin:/usr/local/mysql/bin:/usr/local/mysql/bin:/usr/local/mysql/bin"
declare -x pwd="/usr/local/mysql"
declare -x securitysessionid="212eb0"
declare -x shell="/bin/bash"
declare -x shlvl="1"
declare -x term="xterm-color"
declare -x term_program="apple_terminal"
declare -x term_program_version="100.1.8"
declare -x user="alix"
declare -x __cf_user_text_encoding="0x1f5:0:0"
alix:/usr/local/mysql alix$
alixerie - Oct 4, 2005 - 11:39 am
Well everything in step five worked, but I have realized where my problem is (I think). When I get to step 8 I am prompted for a password:
Alix:~ alix$ cd /usr/local/mysql
Alix:/usr/local/mysql alix$ sudo ./bin/mysqld_safe --user=mysql &
[1] 569
Alix:/usr/local/mysql alix$ [1] 8186Password:
bash: [1]: command not found
Alix:/usr/local/mysql alix$
________
I have tried my computer password (which is just ) and I have also tried entering the folder path (as that is how it appears with the feedback from step 5: declare -x pwd="/usr/local/mysql").
I never set a password.
macbri - Oct 5, 2005 - 5:16 am
Hi Alix -
Ok, there's 2 things going on there which I didn't spot yesterday. First, in step 8 I wrote the following:
[powerbook:/usr/local/mysql] user% sudo ./bin/mysqld_safe --user=mysql &
[1] 8186
I probably didn't make this clear enough, but the first line (minus the prompt) is the only bit you should type in. The "[1] 8186" is the output I got (it means job number 1 running in the background, with a process ID of 8186). In your last entry you got a similar result: with a diff. number: [1] 569.
Second, it's a bit confusing but the password you're being prompted for is your own password, and mysql isn't asking for a password at all. This is because "sudo" wants your password so that it can run mysql with elevated priviliges. After you enter your password you're getting the "[1] 8186 command not found" probably because of the extra stuff you entered on the comand line (the [1] 8186). So, bascially, just do:
cd /usr/local/mysql
sudo ./bin/mysqld_safe --user=mysql &
I hope that clears things up a little!
- Brian
--------
Brian S.
MacOSX.com Technical Support
brian@macosx.com
alixerie - Oct 12, 2005 - 2:23 am
brian i have now downloaded the Help! application. so now we should be online at the same time.
i will have open my AIM (screenname: acetgsw), MSN (a_erie), and Yahoo (a_erie1). i dont know if you need this but i will also check back to see if you have replied.
macbri - Oct 12, 2005 - 3:25 am
Hi Alix -
Ok great. I've added you to my Yahoo! list and when we're both online we'll see what we can do. Meantime, I'll also check into the "Chat" here on macosx.com to see if you're on there.
- Brian
--------
Brian S.
MacOSX.com Technical Support
brian@macosx.com
alixerie - Oct 16, 2005 - 12:39 pm
ok brian...now that i have up my mysql...i am having trouble with my apache server. when i enter localhost i get a page that says that i have apache installed but that i need to add content to my directory. if i type in localhost/path i can see a directroy, but then if i want to test a default page i can only view source code. these pages work when uploaded to the internet, but not on my localhost. from some research that i did, i found that if i am seeing this "Apache Installation Worked" then it means that it did not work and that it is from a server on the net that i have visited before and has Apache installed.
I hope you can believe me when i say that i dont want you to build my page for me!!!! HAHAHA! I guess i just need to work out the kinks.
TTFN!
alixerie - Oct 16, 2005 - 1:22 pm
ok so i downloaded the apache tar file and tried to unpack it:
Alix:~ alix$ cd /usr/local
Alix:/usr/local alix$ sudo tar xvf ~/Desktop/httpd-2.0.55.tar
Password:
tar: This does not look like a tar archive
tar: Skipping to next header
tar: Archive contains obsolescent base-64 headers
tar: Error exit delayed from previous errors
Alix:/usr/local alix$
also...i have not yet deleted all other instances of apache...although there are not any installed into /usr/local
macbri - Oct 16, 2005 - 4:34 pm
Hi Alix -
The fact that you're seeing the page that says you have apache installed is good - in fact you wouldn't see that if it wasn't running. By default web pages go in /Library/WebServer/Documents/. however, For testing etc. I usually put files in ~/Sites (remember, ~ is your home directory) and then you can access them from Safari as
http://localhost/~yourusername. For example my username is 'brian' so my stuff is at
http://localhost/~brian
Tell you what. Since the original MySQL issue is resolved, can we close out this ticket and have you start a new one for "Apache not working on Mac OS X". I'll pick it up as soon as I see it, and I'll be happy to continue helping you.
- Brian
--------
Brian S.
MacOSX.com Technical Support
brian@macosx.com
alixerie - Oct 17, 2005 - 2:09 am
I want to ask you one more time, since I forgot to save the terminal window
How do I do the grep command to see in MySQL is running? I did:
Alix:~ alix$ sudo ./bin/mysqld_safe --user=mysql &
[1] 464
Alix:~ alix$ Password:
Alix:~ alix$ mysqladmin version
and I got the long output. But it just gave me the same prompt instead of "mysql>"
I did:
Alix:~ alix$ echo $PATH
/usr/bin:/bin:/usr/sbin:/sbin:/Users/alix:/usr/local/mysql/bin
So that is good.
alixerie - Oct 17, 2005 - 2:30 am
nevermind! I was able to do it all by myself!!! Yippeeee!