Sinisterly
Having Problem in Mysql - Printable Version

+- Sinisterly (https://sinister.li)
+-- Forum: Computers (https://sinister.li/Forum-Computers)
+--- Forum: Operating Systems (https://sinister.li/Forum-Operating-Systems)
+--- Thread: Having Problem in Mysql (/Thread-Having-Problem-in-Mysql)



Having Problem in Mysql - D@rk1433 - 07-06-2015

This is my problm when i type mysql

ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)


And i not see mysqld.sock file here :- /var/run/mysqld In this directory is se only this file mysql.pid


I can't start mysql :-
[FAIL] Starting MySQL database server: mysqld . . . . . . . . . . . . . . failed!
I tried everything but failed

Please help me


RE: Having Problem in Mysql - Crypt - 07-06-2015

Install mysql-server, not mysql-client. You're getting that error because that file doesn't exist.


RE: Having Problem in Mysql - D@rk1433 - 07-06-2015

Already installed sir but having problem in start mysql


RE: Having Problem in Mysql - Crypt - 07-06-2015

(07-06-2015, 03:36 AM)D@rk1433 Wrote: Already installed sir but having problem in start mysql

If you have both mysql-client and mysql-server installed and it doesn't work then there's something wrong with your configuration files.


RE: Having Problem in Mysql - roger_smith - 07-06-2015

have you created a mysql user? are you running a linux machine? Are you root when you try and start the service?


RE: Having Problem in Mysql - D@rk1433 - 07-06-2015

I made a python webserver and give the port 1010 and localhost is 127.0.1.1 but i didn't change configuration file


RE: Having Problem in Mysql - Tirus - 07-07-2015

Try to cd into /var/run/mysqld and type ls. Show us the results of that.


RE: Having Problem in Mysql - D@rk1433 - 07-08-2015

There s only one file :-
mysqld.pid


RE: Having Problem in Mysql - Equinox - 07-09-2015

Why is this in `Operating SYstems`? Also, you've given us close to no information; we need to know what operating system you're running, what MySQL version would be helpful, etc.