WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: mysql compile error  (Read 4650 times)

Offline q7x

  • Newbie
  • *
  • Posts: 26
  • TinyCore Is The Best
mysql compile error
« on: October 23, 2009, 04:33:11 AM »
after compile and execute mysql In command line I would get “ERROR 2002 (HY000): Can’t connect to local MySQL server through socket ‘/tmp/mysql.sock’ (2)”
>>>> Ony Tiny Core <<<<

Offline q7x

  • Newbie
  • *
  • Posts: 26
  • TinyCore Is The Best
Re: mysql compile error
« Reply #1 on: October 23, 2009, 04:37:04 AM »
i've compile mysql in tc with :
addgroup mysql
adduser -G mysql mysql
./configure --prefix=/usr/local/mysql
make
make install
cp support-files/my-medium.cnf /etc/my.cnf
cd /usr/local/mysql
chown -R mysql .
chgrp -R mysql .
bin/mysql install_db --user=mysql
after last command i get this error:

ERROR 2002 (HY000): Can’t connect to local MySQL server through socket ‘/tmp/mysql.sock’ (2)
« Last Edit: October 24, 2009, 03:21:18 AM by q7x »
>>>> Ony Tiny Core <<<<

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: mysql compile error
« Reply #2 on: October 24, 2009, 02:59:30 AM »
mysql daemon is not running.
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline q7x

  • Newbie
  • *
  • Posts: 26
  • TinyCore Is The Best
Re: mysql compile error
« Reply #3 on: October 24, 2009, 03:16:53 AM »
after run bin/mysqld_safe

091024 15:23:07 mysqld_safe Logging to '/usr/local/mysql/var/box.err'.
091024 15:23:07 mysqld_safe Starting mysqld daemon with databases from /usr/local/mysql/var
091024 15:23:07 mysqld_safe mysqld from pid file /usr/local/mysql/var/box.pid ended


bin/mysql install_db --user=mysql

ERROR 2002 (HY000): Can’t connect to local MySQL server through socket ‘/tmp/mysql.sock’ (2)
>>>> Ony Tiny Core <<<<

Offline q7x

  • Newbie
  • *
  • Posts: 26
  • TinyCore Is The Best
Re: mysql compile error
« Reply #4 on: October 24, 2009, 03:20:13 AM »
cat var/box.err

091024 15:22:44 mysqld_safe Starting mysqld daemon with databases from /usr/local/mysql/var/usr/local/mysql/libexec/mysqld: File './mysql-bin.index' not found (Errcode: 13)
091024 15:22:44 [ERROR] Aborting

091024 15:22:44 [Note] /usr/local/mysql/libexec/mysqld: Shutdown complete

091024 15:22:44 mysqld_safe mysqld from pid file /usr/local/mysql/var/box.pid ended
091024 15:23:07 mysqld_safe Starting mysqld daemon with databases from /usr/local/mysql/var/usr/local/mysql/libexec/mysqld: File './mysql-bin.index' not found (Errcode: 13)
091024 15:23:07 [ERROR] Aborting

091024 15:23:07 [Note] /usr/local/mysql/libexec/mysqld: Shutdown complete

091024 15:23:07 mysqld_safe mysqld from pid file /usr/local/mysql/var/box.pid ended
>>>> Ony Tiny Core <<<<

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: mysql compile error
« Reply #5 on: October 24, 2009, 03:20:26 AM »
Most probably configuration error. Log files, error messages and studying sample config and docs may help as well as to analyze how is it working on another system where it is preinstalled.
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline q7x

  • Newbie
  • *
  • Posts: 26
  • TinyCore Is The Best
Re: mysql compile error
« Reply #6 on: October 24, 2009, 03:31:17 AM »
i used only these command for compile mysql

unzip mysql-5.1.39.zip
cd mysql-5.1.39
addgroup mysql
adduser -G mysql mysql
./configure --prefix=/usr/local/mysql
make
make install
cp support-files/my-medium.cnf /etc/my.cnf
cd /usr/local/mysql
chown -R mysql .
chgrp -R mysql .
bin/mysql install_db --user=mysql

ERROR 2002 (HY000): Can’t connect to local MySQL server through socket ‘/tmp/mysql.sock’ (2)



bin/mysqld_safe

091024 15:23:07 mysqld_safe Logging to '/usr/local/mysql/var/box.err'.
091024 15:23:07 mysqld_safe Starting mysqld daemon with databases from /usr/local/mysql/var
091024 15:23:07 mysqld_safe mysqld from pid file /usr/local/mysql/var/box.pid ended




cat var/box.err

091024 15:22:44 mysqld_safe Starting mysqld daemon with databases from /usr/local/mysql/var/usr/local/mysql/libexec/mysqld: File './mysql-bin.index' not found (Errcode: 13)
091024 15:22:44 [ERROR] Aborting

091024 15:22:44 [Note] /usr/local/mysql/libexec/mysqld: Shutdown complete

091024 15:22:44 mysqld_safe mysqld from pid file /usr/local/mysql/var/box.pid ended
091024 15:23:07 mysqld_safe Starting mysqld daemon with databases from /usr/local/mysql/var/usr/local/mysql/libexec/mysqld: File './mysql-bin.index' not found (Errcode: 13)
091024 15:23:07 [ERROR] Aborting

091024 15:23:07 [Note] /usr/local/mysql/libexec/mysqld: Shutdown complete

091024 15:23:07 mysqld_safe mysqld from pid file /usr/local/mysql/var/box.pid ended
>>>> Ony Tiny Core <<<<

Offline q7x

  • Newbie
  • *
  • Posts: 26
  • TinyCore Is The Best
Re: mysql compile error
« Reply #7 on: October 24, 2009, 03:33:24 AM »
Mr bmarkus  do you use another method for compile mysql?another commands?
>>>> Ony Tiny Core <<<<

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: mysql compile error
« Reply #8 on: October 24, 2009, 11:44:22 AM »
I will post mysql in few days. It is working on my machine, need some cleanup and testing.
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline q7x

  • Newbie
  • *
  • Posts: 26
  • TinyCore Is The Best
Re: mysql compile error
« Reply #9 on: October 24, 2009, 02:53:03 PM »
what is your mysql version?
>>>> Ony Tiny Core <<<<

Offline q7x

  • Newbie
  • *
  • Posts: 26
  • TinyCore Is The Best
Re: mysql compile error
« Reply #10 on: October 24, 2009, 05:25:16 PM »
solved thanks
>>>> Ony Tiny Core <<<<

Offline rebelj12a

  • Newbie
  • *
  • Posts: 1
Re: mysql compile error
« Reply #11 on: January 03, 2011, 07:37:41 PM »
How was this solved? Getting this error right now.