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 > Mac OS X > MySQL install help needed

MySQL install help needed
Thread Tools
Dedicated MacNNer
Join Date: Nov 2001
Location: Richmond, VA
Status: Offline
Reply With Quote
Jan 26, 2003, 11:07 AM
 
Hi Everyone,

I'm hoping there might be someone able to help me with this dilemma. I've posted in a previous forum, but have received no responses.

I've got OS X 10.2 Server on a B&W/450. I know that it comes with a version of MySQL, but I wanted to try compiling and installing the binaries, so I've rm-ed the previous MySQL folder (which, by the way, was not placed in usr/local but instead in usr/shared --??). I've followed the instructions as per http://developer.apple.com/internet/macosx/osdb.html and at this point I've installed everything but the configuration file, and once I try to ./configure the information, this is what I get:

Sorry, the host 'GrotzHost' could not be looked up.
Please configure the 'hostname' command to return a correct hostname.
If you want to solve this at a later stage, restart this script with
the --force option

I'm not sure what to do next. When I do a ./install_test_db from within the /usr/local/mysql/mysql-test/ director, I get the following:

mysqld is missing - looked in ../sql

If anyone is available to help or point me in the right direction, I am on via iChat -- my "handle" is tulsadrone. I am on pretty much all the time. I'd really appreciate it! Thanks very much.

What I'm trying to do, ultimately, is get movabletype to work on this box via static IP. Hopefully, I'll get there!


Erik
------
Friend of All Cats.
     
Nep2ne  (op)
Dedicated MacNNer
Join Date: Nov 2001
Location: Richmond, VA
Status: Offline
Reply With Quote
Jan 26, 2003, 12:09 PM
 
Okay, I've found the solution to my localhost dilemma, but now I cannot get mysqld to install. Might be a permission problem:

<quote>

To help you a bit, I am now going to create the needed MySQL databases
and start the MySQL server for you. If you run into any trouble, please
consult the MySQL manual, that you can find in the Docs directory.

mkdir: ./data/mysql: Permission denied
chmod: ./data/mysql: Permission denied
mkdir: ./data/test: Permission denied
chmod: ./data/test: Permission denied
Preparing db table
Preparing host table
Preparing user table
Preparing func table
Preparing tables_priv table
Preparing columns_priv table
Installing all prepared tables
./bin/mysqld: Can't change dir to '/usr/local/mysql/./data/' (Errcode: 13)
030126 12:57:48 Aborting

</quote>

...anyone know my solution here? Thanks in advance!

Erik
AIM: tulsadrone
------
Friend of All Cats.
     
Forum Regular
Join Date: May 2001
Location: Hong Kong
Status: Offline
Reply With Quote
Jan 26, 2003, 02:23 PM
 
First of all, add a user called "mysql" in the Users preferences panel.

In the terminal, login as mysql:

% login mysql

Then, goto the mysql root directory:

% cd /usr/local/mysql

Chnage the owner of the data folder to the user, mysql:

% chown -R mysql.staff data

Execute the shell script:

% ./scripts/mysql_install_db

Run the mysql server:

% ./bin/safe_mysqld &

Start mysql client:

% ./bin/mysql

Please note that different version and distribution of mysql may have different installation method.
     
Nep2ne  (op)
Dedicated MacNNer
Join Date: Nov 2001
Location: Richmond, VA
Status: Offline
Reply With Quote
Jan 27, 2003, 10:04 AM
 
I'd already added and deleted the user several times. I did manage to get MySQL working late last night.

Stupid me, but it turns out that in printing the entropy.ch pages out at 80% I couldn't even see the commands correctly. I mistyped "mysqld" for "mysql" in one line, and that's what did it.

Thanks!
('')
------
Friend of All Cats.
     
   
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 12:14 PM.
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