Re: Insatlling MySQL
- From: "J.O. Aho" <user@xxxxxxxxxxx>
- Date: Sat, 21 Oct 2006 10:29:21 +0200
tg@xxxxxxxxx wrote:
Now having bought a dedicated server at a company, most things are
working but not MySQL. OS is Centos and I am working at the console. I
can find mopst of the mysql start-files at /urs/bin.
When I try to start with ./mysql I get this message:
You should use the init script to start mysql, this works fine if you was smart enough to install the mysql that came with CentOS (the one you can download from mysql.com is a general version, which don't work as well in all environments).
You look in /etc/init.d (if not there, /etc/rc.d/init.d/)
example: /etc/init.d/mysql start
If you want the mysql to be started automatically you use the chkconfig to set on which runlevels mysql will be started, keep in mind that see to that it's turned off on levels 0 and 6 as those are the halt and reboot levels.
Can't connect to local MySQL server through
socket'/var/lib/mysql/mysql.sock' (2)
At /var/lib/ there are no mysql directory at all. Looking for file
mysql.sock with locate mysql.sock I get no result.
mysql is the command line client, it needs the mysqld to be started before it can connect, on a localhost, the socket method to access the server is the most common, while for remote servers you use tcp-stack.
//Aho
.
- Follow-Ups:
- Re: Insatlling MySQL
- From: gn_
- Re: Insatlling MySQL
- References:
- Insatlling MySQL
- From: tg
- Insatlling MySQL
- Prev by Date: Insatlling MySQL
- Next by Date: Re: Insatlling MySQL
- Previous by thread: Insatlling MySQL
- Next by thread: Re: Insatlling MySQL
- Index(es):
Relevant Pages
|