critical
09-06-2002, 11:09 PM
in my redhat i installed my mysql ..but when i type mysql i got this error :
Error 2002: can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
how do i fix that?
sitekeeper
09-06-2002, 11:12 PM
The error (2002) Can't connect to ... normally means that there isn't a MySQL server running on the system or that you are using a wrong socket file or TCP/IP port when trying to connect to the mysqld server.
Start by checking (using ps) that there is a process running named mysqld on your server! If there isn't any mysqld process, you should start one.
critical
09-06-2002, 11:22 PM
no there isn't so how do i start the mysql?
sitekeeper
09-07-2002, 03:27 AM
Before we go any further do you have cPanel/WHM installed?
I am not nagging but you should have done a little more research before attempting these kinds of things. ;)
Try reading the manual a little, this section is on starting MySQL:
http://www.mysql.com/doc/en/Starting_server.html
critical
09-07-2002, 06:09 AM
i do not have cpanel installed..
ok i have installed mysql.. how do i add a username, password and a database ..wats the command to type in redhat?
StevenG
09-07-2002, 09:13 PM
Try this, type in a shell session:
mysql
then type
help
:D
The source is a great place to look.
http://www.mysql.com/doc/en/Adding_users.html
Lats...
modihost
09-08-2002, 06:29 AM
the goooooood ool RTFM :rolleyes: