Results 1 to 6 of 6
Hi,
I'm using fedora 13(x86_64).
i got an error message while starting the mysql database software through the kernel.....
Code:
[pradeep@localhost ~]$ mysql
ERROR 2002 (HY000): Can't connect to local ...
- 07-04-2010 #1
Mysql not starting....
Hi,
I'm using fedora 13(x86_64).
i got an error message while starting the mysql database software through the kernel.....
this is the first time i'm using the mysql in linux environment....Code:[pradeep@localhost ~]$ mysql ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) [pradeep@localhost ~]$
do i have to configure anything before using it for the first time ?!
- 07-04-2010 #2Just Joined!
- Join Date
- Jul 2010
- Posts
- 1
Hi,
Looks like mysql is not installed on your host, try this out
rpm -qa |grep -i mysql
if you don't find any related rpm's then you may need to install the rpm for the same.
- 07-04-2010 #3
First of all....Thank u very much sathish...
actually, the problem is mysql, is installed in my system(which came along with my distro),
but,i didnt know how to start it...
now the problem is over....
i used the following command to start it(after logging in as root user)....
then,Code:./mysqld start
i used the command "mysql",
now its working fine...
- 07-07-2010 #4
sorry sorry....
actually, logged in as root....
after that type,Code:mysql_install_db
then type,Code:mysqld_safe
thats it.....Code:mysql
mysql window appeared,and works just fine....
- 07-07-2010 #5Linux Newbie
- Join Date
- Apr 2010
- Location
- Novosibirsk, Russia
- Posts
- 136
orCode:sudo service mysqld_safe start
of course you have to start mysql server before trying to connectCode:sudo /etc/init.d/mysqld_safe start
- 03-10-2011 #6Code:
mysql -u user_name -p db_name
This way it starts well.!Code:Enter Password:
db_name is optional.


Reply With Quote