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 > MySQL install roadblock

MySQL install roadblock
Thread Tools
Mac Elite
Join Date: Jun 2001
Location: NYNY
Status: Offline
Reply With Quote
May 16, 2002, 03:38 PM
 
Near the bottom of the installation procedure found hereweb page, there is the following:

---------------------------------------------------------------------------------------
Important: You should at least run this command in order to secure the open master account in the default installation:

mysqladmin -u root password new_password_here

------------------------------------------------------------------------------------------
But when I type that command into the terminal mysql tells me I have a syntax error.

What am I doing wrong? Any ideas?
"Well done is better than well said." -BF
Commercial Range
     
Occasionally Useful
Join Date: Jun 2001
Location: Liverpool, UK
Status: Offline
Reply With Quote
May 16, 2002, 03:50 PM
 
say you're going to use "banana" as your password, you'd type:

mysqladmin -u root password banana
"Have sharp knives. Be creative. Cook to music" ~ maxelson
     
Mac Elite
Join Date: Jun 2001
Location: NYNY
Status: Offline
Reply With Quote
May 16, 2002, 04:14 PM
 
Originally posted by philzilla:
<STRONG>say you're going to use "banana" as your password, you'd type:

mysqladmin -u root password banana</STRONG>
can I use numbers?
"Well done is better than well said." -BF
Commercial Range
     
Mac Elite
Join Date: Jun 2001
Location: NYNY
Status: Offline
Reply With Quote
May 16, 2002, 04:23 PM
 
Originally posted by Moderator:
<STRONG>

can I use numbers?</STRONG>

alright...problem solved..much thanks again
"Well done is better than well said." -BF
Commercial Range
     
Mac Elite
Join Date: Jun 2001
Location: NYNY
Status: Offline
Reply With Quote
May 16, 2002, 04:29 PM
 
How can I test to make sure its running?
Do you use a graphic front end for it?
"Well done is better than well said." -BF
Commercial Range
     
Mac Enthusiast
Join Date: Mar 2001
Location: Scotland
Status: Offline
Reply With Quote
May 17, 2002, 10:40 AM
 
Originally posted by Moderator:
<STRONG>How can I test to make sure its running?
Do you use a graphic front end for it?</STRONG>
You mean check that mySQL is running?
open Terminal,
type:
mysql -u root -p;
(and then enter the password that you just created at the prompt)

Mysql should now load.
There should be a test database, called "test" unsurprisingly, that you can use.

type:
use test

to use it.

HTH
     
Junior Member
Join Date: Jun 2001
Location: Antioch
Status: Offline
Reply With Quote
May 18, 2002, 05:53 AM
 
For those interested- here is a shell script that will compile MySQL on your system for you-
http://12.233.82.128/seti/build_mysql.sh

If using IE then command click link to save, don't view it first- as IE will give it mac line breaks if you view it in your browser first (sh*tty browser)

You still will need to set the MySQL passwd though
Don't take candy from strangers
     
Mac Elite
Join Date: Mar 2001
Status: Offline
Reply With Quote
May 22, 2002, 02:19 PM
 
Originally posted by Moderator:
<STRONG>How can I test to make sure its running?
Do you use a graphic front end for it?</STRONG>
i like phpmyAdmin
     
Junior Member
Join Date: Jun 2001
Location: Antioch
Status: Offline
Reply With Quote
May 23, 2002, 04:36 AM
 
How to tell if mysql is running-

[osx:~] michael% ps -waux |grep mysqld
root 283 0.0 0.2 1732 424 ?? S 0:00.05 sh /usr/local/bin/safe_mysqld
mysql 302 0.0 0.1 11152 332 ?? S 0:00.59 /usr/local/sbin/mysqld
[osx:~] michael%

here's a way to do it remotely-

[root@12-233-82-128 nmap-2.54BETA34]# nmap 192.168.3.72

Starting nmap V. 2.54BETA34 ( www.insecure.org/nmap/ )
WARNING! The following files exist and are readable: /usr/local/share/nmap/nmap-services and ./nmap-services. I am choosing /usr/local/share/nmap/nmap-services for security reasons. set NMAPDIR=. to give priority to files in your local directory
Interesting ports on osx.petershomenetwork.org (192.168.3.72):
(The 1553 ports scanned but not shown below are in state: closed)
Port State Service
22/tcp open ssh
3306/tcp open mysql
8081/tcp open blackice-icecap

Nmap run completed -- 1 IP address (1 host up) scanned in 2 seconds
[root@12-233-82-128 nmap-2.54BETA34]#
Don't take candy from strangers
     
   
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 06:01 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