![]() |
|
FreeBSD General Other questions regarding FreeBSD which do not fit in any of the categories below. |
![]() |
|
Thread Tools | Display Modes |
|
|||
![]()
Hai Friends,
I am just one day old in FreeBSD. I just installed it and am in facing big problem now. These are only some of my problems. Here beside the problems I am mentioning the output displayed when I use that particular command. 1. Wget command is not working. (wget: command not found) 2. export is not working (export: command not found) 3.locate is not working ( locate:database too small: /var/db/locate.database) 4.When I want to run a service and If i give the statement service xxx start then the output is again service : command not found 5. How can I get mysql package installed in the box now. Please help me to solve these problems. Thanks, Prakash. |
|
|||
![]()
Hi and welcome to the forum.
Go through the handbook if you need to find out more info about how to use FreeBSD. |
|
||||||
![]() Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
By the way: FreeBSD is not linux. It is a different OS and predates linux. They are both superficially similar, as they both have roots in UNIX philosophies (and BSD is actually based on the ancient UNIX codebase), but they are different animals.
__________________
The only dumb question is a question not asked. The only dumb answer is an answer not given. Last edited by robbak; 11th July 2008 at 01:10 PM. |
|
||||
![]()
man locate.updatedb
you run it as Code:
sudo /usr/libexec/locate.updatedb It normally is on a cron and mostly runs once a week. But will not run if the machine is down at the specified time/date. To prevent this, add anacron. /var/db/locate.database must exist, touch if needed and chown root:wheel, chmod 444.
__________________
da more I know I know I know nuttin' |
|
|||
![]()
Hai,
First of all thanks to all. I worked on this. There are still some problems. 1. Locate did not work although i followed all the steps you have mentioned. 2. I installed mysql by following above steps. Now how can I access it. I mean to say that in Linux, If we give mysql then we can access mysql databases and tables. How can I do like that here. Thanks, Prakash. |
|
||||
![]() Quote:
2. mysql -u username -p db_name -h hostname(if any) |
|
|||
![]()
Hi,
I installed mysql package as told above. I executed both these statements. pkg_add -r mysql50-server mysql50-client cd /usr/ports/databases/mysql50-server/ && make install I also find these are installed by giving the command "pkg_info | grep -i mysql" the output of this command is mysql-client-5.0.45_1 Multithreaded SQL database (client) mysql-server-5.0.45_1 Multithreaded SQL database (server) But when ever I type mysql (as we did in linux) i am not getting access to mysql (as in linux). How can i get this? When ever i give mysql the output is ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) Last edited by prakash512; 14th July 2008 at 06:18 AM. |
|
||||
![]()
You have not yet started mysql.
As you saw when you read the rc man page, mysql will be started on boot by /usr/local/etc/rc.d/mysql (or similar: I use postgres), if there are the required entries in /etc/rc.conf. The messages that were displayed on the screen when you finished installing mysql would have told you how to start it. It will be something like this. 1. add a line like mysql_enable="YES" to /etc/rc.conf. 2. run, as root, /usr/local/etc.rc.d/mysql start (or similar - the script should be named mysql, but it might be slightly different. re locate: If you run either of the programs /etc/periodic/weekly/310.locate or /usr/libexec/locate.updatedb (and there are no error messages), locate will work. If there are any error messages, you will need to deal with them. Tell us what they are, and we might just be able to help.
__________________
The only dumb question is a question not asked. The only dumb answer is an answer not given. |
|
||||
![]()
One thing to keep in mind is that in many ways FreeBSD is the opposite of RH based systems. (I am guessing you've used a RH based one because you mention the service command--hrrm, maybe the others have it too, I don't know.)
At any rate, in many cases, in RedHat, when a program is installed, it's often set to start automatically in /etc/init.d. In FreeBSD, even when a program is installed, it is not set to run at startup. To get it to run at startup, you'll look at the /usr/local/etc/rc.d script for the program--it will tell you what to enter in /etc/rc.conf to get the program to start. It takes some getting used to but you might find that you like it better once you've adjusted to the differences. |
|
||||
![]() Quote:
As root: # /etc/periodic/weekly/310.locate And, Quote:
Last edited by Weaseal; 15th July 2008 at 08:35 AM. |
![]() |
Thread Tools | |
Display Modes | |
|
|