MySQL 5.1 install on freebsd 6.2 - problems.... please help!

This is a discussion on MySQL 5.1 install on freebsd 6.2 - problems.... please help! within the MySQL Database forums, part of the Database Forums category; Hello everyone, I am trying to install MySQL on a freebsd virtual server (a "jail") and I'm ...


Go Back   Usenet Forums > Database Forums > MySQL Database

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 05-13-2008
zeltus.bill@gmail.com
 
Posts: n/a
Default MySQL 5.1 install on freebsd 6.2 - problems.... please help!

Hello everyone,

I am trying to install MySQL on a freebsd virtual server (a "jail")
and I'm falling at pretty much the first fence - if some kind soul
could take pity on me, review the following session and tell me what I
am doing wrong, I would be eternally grateful! Whatever it is, it's
driving me nuts!

Thanks

Bill
-----------------------------

$ su - root

jail0043# grep mysql /etc/passwd
mysql:*:88:88:MySQL Daemon:/nonexistent:/sbin/nologin
jail0043# grep mysql /etc/group
mysql:*:88:

jail0043# cd /usr/ports/databases/mysql51-server
jail0043# make install clean

jail0043# mysql_install_db

jail0043# chown -R mysql /var/db/mysql/
jail0043# chgrp -R mysql /var/db/mysql/

jail0043# grep mysql /etc/rc.conf
mysql_enable="YES"
# mysql_limits (bool): Set to "NO" by default.
# mysql_dbdir (str): Default to "/var/db/mysql"
# mysql_args (str): Custom additional arguments to be passed to
mysqld_safe (default empty).

jail0043# /usr/local/bin/mysqld_safe -user=mysql &
[1] 17146
jail0043# usage:
touch [-A [-][[hh]mm]SS] [-acfhm] [-r file] [-t [[CC]YY]MMDDhhmm[.SS]]
file ...
usage: chown [-fhv] [-R [-H | -L | -P]] owner[:group] file ...
chown [-fhv] [-R [-H | -L | -P]] :group file ...
080513 10:34:47 mysqld_safe Starting mysqld daemon with databases
from /var/db/mysql

jail0043# mysqladmin -u root password
'TopSecret' <------------------
Aaaarrrggghhh!!!!!!
mysqladmin: connect to server at 'localhost' failed
error: 'Access denied for user 'root'@'localhost' (using password:
NO)'

jail0043# ps aux
USER PID %CPU %MEM VSZ RSS TT STAT STARTED TIME
COMMAND
-----(non-relevant processes omitted from list)-----
root 17146 0.0 0.0 5188 1460 p0 IJ 10:34AM 0:00.01 /bin/
sh /usr/local/bin/mysqld_safe -user=mysql
mysql 17182 0.0 0.9 60464 35604 p0 SJ 10:34AM 0:00.19 /usr/
local/libexec/mysqld --basedir=/usr/local --datadir=/var/db/mysql --
user=mysql -us
root 17183 0.0 0.0 2556 824 p0 IJ 10:34AM 0:00.00 sed -
e s/^[0-9]\\{6\\} [0-9:]\\{8\\} *//
root 17184 0.0 0.0 2504 700 p0 IJ 10:34AM 0:00.00
logger -i -t mysqld -p daemon.error

jail0043# hostname
jail0043.vps.secretweb.net
jail0043# uname -a
FreeBSD jail0043.vps.secretweb.net 6.2-STABLE FreeBSD 6.2-STABLE #0:
Sat Aug 11 15:50:16 BST 2007 root@moa.secretweb.net:/usr/src/
sys.xxo/amd64/compile/JAIL amd64
jail0043# uname -n
jail0043.vps.secretweb.net
Reply With Quote
  #2 (permalink)  
Old 05-13-2008
Rik Wasmus
 
Posts: n/a
Default Re: MySQL 5.1 install on freebsd 6.2 - problems.... please help!

On Tue, 13 May 2008 12:17:50 +0200, <zeltus.bill@gmail.com> wrote:
> I am trying to install MySQL on a freebsd virtual server (a "jail")
> and I'm falling at pretty much the first fence - if some kind soul
> could take pity on me, review the following session and tell me what I
> am doing wrong, I would be eternally grateful! Whatever it is, it's
> driving me nuts!


> jail0043# mysqladmin -u root password
> 'TopSecret' <------------------
> Aaaarrrggghhh!!!!!!
> mysqladmin: connect to server at 'localhost' failed
> error: 'Access denied for user 'root'@'localhost' (using password:
> NO)'


mysqladmin -uroot -pTopSecret

mysqladmin -?:
....
-p, --password[=name]
-u, --user=name User for login if not current user.
....
--
Rik Wasmus
[SPAM] Now temporarily looking for some smaller PHP/MySQL projects/work to
fund a self developed bigger project, mail me at rik at rwasmus.nl. [/SPAM]
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 08:28 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0