March 16th, 2007, 03:09 PM
How to restart mysql
I'm on FreeBSD 6.2 dedicated server with root access
Today i check that i cann't login into directadmin. at the same time ftp and ssh access are live.
try to do restart and after this mysql service is down too.
all my attempts to do restart aren't successful.
1. don't have http access to DA
2. have ftp access, but cann't overwrite files
3. have ssh access
4. mysql service is stoped
try to do mysql restart with this command
but there isn't such file
try to connect to mysql and get such output
Warning: mysql_connect() [function.mysql-connect]: Can't connect to local
MySQL server through socket '/tmp/mysql.sock' (2) in
what to do ?
any advise will be appreciated
March 16th, 2007, 03:50 PM
If you moved mysql-server.sh into the rc.d folder, it'd be /etc/rc.d I believe this file is located in the scripts folder within your mysql installation folder, which is usually /usr/local/mysql.
You could also just use mysqld_safe directly. In either case, did you read the MySQL manual for information on starting and stopping the server? You can also search for your error message.
Explain your problem instead of asking how to do what you decided was the solution.
March 22nd, 2007, 04:12 PM
in my case right path is