problem with mysql 5 install and configuration
Érico
ericomtx at gmail.com
Sun Jan 8 13:22:12 PST 2012
Hi Brian
I didn't remove content and files created by ports
I had created the symb links at the beginning ... and we covered that they
were unnecessary . I only removed what I created before
I executed the steps you posted :
1. $ sudo port deactivate mysql5-server mysql5
2. $ sudo port activate mysql5 mysql5-server
3. $ sudo port load mysql5-server
4. $ mysql5 -uroot -p
so with my id ... I do need to execute step 3 , instead of using the
command :
/opt/local/bin/mysqld_safe5
.... ?
2012/1/8 Bradley Giesbrecht <pixilla at macports.org>
>
> On Jan 8, 2012, at 11:54 AM, Érico wrote:
>
> > ==================
> >
> > when using "sudo bash" and starting it , I see these processes up :
> >
> > bash-3.2# ps aux | grep mysql
> > root 403 0.3 0.0 2425524 172 s000 R+ 5:52PM 0:00.00
> grep mysql
> > _mysql 378 0.0 0.4 2511112 17844 s000 S 5:42PM 0:00.24
> /opt/local/libexec/mysqld --basedir=/opt/local
> --datadir=/opt/local/var/db/mysql5 --user=_mysql
> --log-error=/opt/local/var/db/mysql5/Ericos-MacBook-Pro.local.err
> --pid-file=/opt/local/var/db/mysql5/Ericos-MacBook-Pro.local.pid
> > root 334 0.0 0.0 2435544 864 s000 S 5:42PM 0:00.03
> /bin/sh /opt/local/bin/mysqld_safe5
> > bash-3.2#
> >
> > I have fully removed the primary symb links, sockets file and content
> ... and I have removed the files from start up also :
> > bash-3.2# ls -la /Library/LaunchDaemons
> > total 0
> > drwxr-xr-x 2 root wheel 68 Jan 8 17:19 .
> > drwxrwxr-t+ 60 root admin 2040 Dec 3 20:17 ..
>
> Why are you removing files that are provided by ports you want installed?
> The mysql5 and mysql5-server ports do not require any additional
> symlinks/files nor the removal of any files installed the ports install.
>
> > So , is it mandatory to start it after "sudo bash" ... is there anything
> I can do with my id so it can start mysql ?
>
> $ sudo port deactivate mysql5-server mysql5
> $ sudo port activate mysql5 mysql5-server
> $ sudo port load mysql5-server
> $ mysql5 -uroot -p
>
>
>
> Regards,
> Bradley Giesbrecht (pixilla)
>
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-users/attachments/20120108/dd8fa75d/attachment.html>
More information about the macports-users
mailing list