views:

40

answers:

2

I am trying to install mysql on snow leopard and having some problems.

I followed these steps in the hivelogic blog

http://hivelogic.com/articles/compiling-mysql-on-snow-leopard

all goes well but when i get to the final step i try to do

mysql -uroot 

i get this

-bash: mysql: command not found

what am i doing wrong

A: 

What is the output of the following command in the shell:

ls /usr/local/mysql/bin

?

Bytecode Ninja
i get innochecksum mysql_fix_privilege_tables mysqld_multimsql2mysql mysql_install_db mysqld_safemy_print_defaults mysql_secure_installation mysqldumpmyisam_ftdump mysql_setpermission mysqldumpslowmyisamchk mysql_tzinfo_to_sql mysqlhotcopymyisamlog mysql_upgrade mysqlimportmyisampack mysql_waitpid mysqlshowmysql mysql_zap mysqlslapmysql_client_test mysqlaccess mysqltestmysql_config mysqladmin perrormysql_convert_table_format mysqlbinlog replacemysql_find_rows mysqlbug resolve_stack_dumpmysql_fix_extensions mysqlcheck resolveip
Matt
I have it working the "source ~/.profile"
Matt
+1  A: 

Step 1: Set the PATH

Did you do that (including the "source ~/.profile" bit)? Your shell cannot find the mysql command. So, you have either not installed it at all or installed in a location not listed in your PATH environment variable.

You can run a spotlight query from the command line to find all occurances of the mysql command like this:

$ mdfind mysql | grep '/mysql$'
bromfiets
thanks that worked "source ~/.profile"
Matt