Jump to content

Couldn't Connect To Mysql


Recommended Posts

Стоит у меня стг версии 2.404.9.7, все работало, но мне захотелось воспользоваться готовой сборкой Apache + php + mysql. Называется XAMPP

Выключил старый мускул и апач, установил и запускаю XAMPP - работает.

Пробую запускать стг - не работает. Вот лог

2008-02-01 18:49:44 -- Stg v. Stg 2.404
2008-02-01 18:49:44 -- Message queue created successfully. msgKey=5555 msgID=196608
2008-02-01 18:49:44 -- Timer thread started successfully.
2008-02-01 18:49:44 -- Parse 'mysql_store v.0.67' module settings error: Couldn't connect to mysql engine! With error:
Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
2008-02-01 18:49:45 -- Queue removed successfully.
2008-02-01 18:49:45 -- StgTimer: Stop successfull.
2008-02-01 18:49:45 -- Stg stopped successfully.

 

Глянул в настройки мускула, вот

# Example MySQL config file for medium systems.
# The following options will be passed to all MySQL clients
[client]
#password   = your_password
port        = 3306
socket     = /opt/lampp/var/mysql/mysql.sock

# Here follows entries for some specific programs

# The MySQL server
[mysqld]
port        = 3306
socket     = /opt/lampp/var/mysql/mysql.sock
skip-locking
key_buffer = 16M
max_allowed_packet = 1M
table_cache = 64
sort_buffer_size = 512K
net_buffer_length = 8K
read_buffer_size = 256K
read_rnd_buffer_size = 512K
myisam_sort_buffer_size = 8M

# Don't listen on a TCP/IP port at all. This can be a security enhancement,
# if all processes that need to connect to mysqld run on the same host.
# All interaction with mysqld must be made via Unix sockets or named pipes.
# Note that using this option without enabling named pipes on Windows
# (via the "enable-named-pipe" option) will render mysqld useless!
#
#skip-networking

# Replication Master Server (default)
# binary logging is required for replication
# log-bin deactivated by default since XAMPP 1.4.11
#log-bin=mysql-bin

# required unique id between 1 and 2^32 - 1
# defaults to 1 if master-host is not set
# but will not function as a master if omitted
server-id   = 1

Я понимаю, что это больше к мускулу относится но все же, что делать ?

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...