July 14, 2021 . 1 MIN READ
http://www.linuxquestions.org/questions/linux-software-2/can’t-connect-to-local-mysql-server-through-socket-‘-var-lib-mysql-mysql-sock-281557/
Can’t connect to local MySQL server through socket ‘/var/lib/mysql/mysql.sock’
so I ran:
find / -name mysql.sock
and it doesn’t show up, what should I do now? I’m using Mandrake 10.1 and this is the first time I’m using mysql. Should i try uninstalling mysql and reinstalling. I also noticed that there was an error file in
/var/lib/mysql
which had this in it:
50124 23:05:00 mysqld started
^G/usr/sbin/mysqld: Can’t read dir of ‘/root/tmp/’ (Errcode: 13)
InnoDB: The first specified data file ./ibdata1 did not exist:
InnoDB: a new database to be created!
050124 23:05:00 InnoDB: Setting file ./ibdata1 size to 10 MB
InnoDB: Database physically writes the file full: wait…
050124 23:05:01 InnoDB: Log file ./ib_logfile0 did not exist: new to be created
InnoDB: Setting log file ./ib_logfile0 size to 5 MB
InnoDB: Database physically writes the file full: wait…
050124 23:05:01 InnoDB: Log file ./ib_logfile1 did not exist: new to be created
InnoDB: Setting log file ./ib_logfile1 size to 5 MB
InnoDB: Database physically writes the file full: wait…
InnoDB: Doublewrite buffer not found: creating new
InnoDB: Doublewrite buffer created
InnoDB: Creating foreign key constraint system tables
InnoDB: Foreign key constraint system tables created
050124 23:05:02 InnoDB: Started
/usr/sbin/mysqld: ready for connections.
Version: ‘4.0.20’ socket: ‘/var/lib/mysql/mysql.sock’ port: 0
050124 23:05:02 /usr/sbin/mysqld: Normal shutdown
050124 23:05:02 InnoDB: Starting shutdown…
050124 23:05:04 InnoDB: Shutdown completed
050124 23:05:04 /usr/sbin/mysqld: Shutdown Complete
050124 23:05:04 mysqld ended