*BSDThis forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
i have a fresh install of freebsd 5.3; no errors and the cvsupdate has been done with no resulting errors.
i switch to and did a "cd /usr/ports/databases/mysql50-server"
i then did "make"
i then did "make install"
i rebooted the machine
i then tried to:
"mysqladmin -u root password mynewpswd"
it returned:
connect to server at 'localhost' failed
error: 'Can't connect to local MySQL server through socket: '/tmp/mysql.sock' (61)
Check that mysqld is running and that the socket: '/tmp/mysql.sock' exist!
Well...
i did a where is on mysqld and it does not exist
and
'/tmp/mysql.sock' does exist.
i then went to mysql docs and could not find a reference to this kind of problem.
there is an err file in /var/db/mysql stating that mysqld does not have sufficent rights. the entire install has been done through the root id so how can this be possible unless the install process is flawed.
You need to create the default database files. The command to do this mysql_install_db.
If you are planning to run mysql as mysql user, which is what you must do, for security reasons,
if the is no mysql user/group do as root
did you do mysql_install_db as mysql user as I suggested you?
Because if you have executed this as root the permissions will be root.root and mysql won't be able to access them.
If you did this go and change the ownership of /var/db/mysql/mysql directory and all the files under this directory to mysql.mysql
ok...just for the PURE fun of it i reloaded freebsd and updated the ports
i also created my id and mysql (and associated grps)
SO...i am suppose to install mysql as the msql user and create the DBs in the same manner (IF i want mysql to manage them). right? how about other apps like Apache 2 and PHP for that matter? what id should be used to install them?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.