Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Траблы с запуском mysql-4.0.20
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Russian
View previous topic :: View next topic  
Author Message
tipoc
n00b
n00b


Joined: 28 Jun 2004
Posts: 10
Location: Dolgoprudny

PostPosted: Thu Jul 15, 2004 3:33 am    Post subject: Траблы с запуском mysql-4.0.20 Reply with quote

Установил я значит mysql.Запускаю:

bash-2.05b$ mysql
ERROR 2002: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
bash-2.05b$

Чтение мануала не помогло.Файла /var/run/mysqld/mysqld.sock не существует(и вообще папка /var/run/mysqld пустая),а что в нем должно содержаться не знаю.Может кто-знает,в чем трабла?
Back to top
View user's profile Send private message
deadlyFROZEN
Tux's lil' helper
Tux's lil' helper


Joined: 11 Jun 2004
Posts: 114

PostPosted: Thu Jul 15, 2004 5:31 am    Post subject: Reply with quote

IMHO mysql немножко не так запускается.
Code:
/etc/init.d/mysql start

я, например, добавил его в default runlevel
Code:
rc-update add mysql default

mysql - это не демон, а монитор базы данных.
_________________
...whether tis nobler? from the win to suffer,
from the bugs ´n issues of a commercial system
or to raise your mind against a sea of troubles,
and by a LINUX end them?...
Back to top
View user's profile Send private message
GreenDragon
Guru
Guru


Joined: 31 Jul 2003
Posts: 319

PostPosted: Thu Jul 15, 2004 9:22 am    Post subject: Re: Траблы с запуском mysql-4.0.20 Reply with quote

tipoc wrote:
Установил я значит mysql.Запускаю:

bash-2.05b$ mysql
ERROR 2002: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
bash-2.05b$

Чтение мануала не помогло.Файла /var/run/mysqld/mysqld.sock не существует(и вообще папка /var/run/mysqld пустая),а что в нем должно содержаться не знаю.Может кто-знает,в чем трабла?

После установки mysql запуск последнего обычно происходит в следующей последовательности (информация об этом выводится на экран в конце установки, да и в доке описано):
Code:

# mysql_install_db
# /etc/init.d/mysql start
# mysqladmin -u root password 'your_passworf'
Back to top
View user's profile Send private message
deadlyFROZEN
Tux's lil' helper
Tux's lil' helper


Joined: 11 Jun 2004
Posts: 114

PostPosted: Thu Jul 15, 2004 9:39 am    Post subject: Re: Траблы с запуском mysql-4.0.20 Reply with quote

GreenDragon wrote:

После установки mysql запуск последнего обычно происходит в следующей последовательности (информация об этом выводится на экран в конце установки, да и в доке описано):
Code:

# mysql_install_db
# /etc/init.d/mysql start
# mysqladmin -u root password 'your_passworf'

Когда я это устанавливал, меня эти процедуры очень удивили.
Ведь по идее все ебилды должны быть сделаны так, чтобы после их установки пользователь мог сразу же работать с программой. :cry:
_________________
...whether tis nobler? from the win to suffer,
from the bugs ´n issues of a commercial system
or to raise your mind against a sea of troubles,
and by a LINUX end them?...
Back to top
View user's profile Send private message
tipoc
n00b
n00b


Joined: 28 Jun 2004
Posts: 10
Location: Dolgoprudny

PostPosted: Sat Jul 17, 2004 4:51 pm    Post subject: Reply with quote

Спасибо,я разобрался.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Russian All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum