New instalation - mysql, mysql.sock problem

ilkar

New member
Joined
Apr 20, 2011
Messages
4
Hi

yesterday i've installed new Centos 5 64 bit with directadmin no my serwer.

Everything was fine, till i saw, that i cant login to mysql. Than i saw, that mysql is down, i was trying to up, but the i saw informations that there is no mysql.sock file.

I was searching this file through system, but there is no such as file.

I decide to rebuild mysql, but nothing changed.... new instalation is not putting new mysql.sock file into /var/lib/mysql/mysql.sock

I cant start mysql.

What can i do? rebuild all from Directadmin ?
 
addition

in addition:

on my my.cnf file i have only:

[mysqld]
local-infile=0
bind-address=127.0.0.1


nothing more


Hi

yesterday i've installed new Centos 5 64 bit with directadmin no my serwer.

Everything was fine, till i saw, that i cant login to mysql. Than i saw, that mysql is down, i was trying to up, but the i saw informations that there is no mysql.sock file.

I was searching this file through system, but there is no such as file.

I decide to rebuild mysql, but nothing changed.... new instalation is not putting new mysql.sock file into /var/lib/mysql/mysql.sock

I cant start mysql.

What can i do? rebuild all from Directadmin ?
 
no file

Yes, you are right, but there is no mysql.sock file.

Should i reinstall mysql?

yum remove mysql , and then yum install mysql ?

is new installation can create this file ?


as far as i remember the mysql.sock should be in /tmp from default installation.

I should be wrong ofc.

Regards
 
never use yum to mange mysql httpd bind exim and programs that directadmin manage.

for reinstall mysql
Code:
cd /usr/local/directadmin/custombuild
./build mysql
./build php n

Regards
 
:(

not helping -

when im searching for mysql.sock file, linux shows me

/var/lib/mysql/mysql.sock , but when i'm trying to vim this file, there is no such as file...

when i go to /var/lib/mysql and ls , there is no file like this

what is wrong?

never use yum to mange mysql httpd bind exim and programs that directadmin manage.

for reinstall mysql
Code:
cd /usr/local/directadmin/custombuild
./build mysql
./build php n

Regards
 
try edit the /etc/my.cnf file like this

Code:
[client]
port            = 3306
socket          = /var/lib/mysql/mysql.sock


then restart mysql

Regards
 
Back
Top