•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the MySQL section within the Web Development category of DaniWeb, a massive community of 423,887 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 4,274 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our MySQL advertiser: Programming Forums
Views: 4957 | Replies: 0
![]() |
•
•
Join Date: Jun 2005
Posts: 9
Reputation:
Rep Power: 0
Solved Threads: 0
I cannot get MySQL working. Can someone please help? I have changed permissions on the /var/lib/msql directory and I still can't get it started.
Running Suse Linux Enterprise Server 9
# mysql -V
mysql Ver 12.22 Distrib 4.0.18, for suse-linux (i686)
# mysql start
ERROR 2002: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
I have checked /var/lib/mysql and there is no mysql.sock. I created one with full permissions.
my.cnf
-------------------------------------
# The following options will be passed to all MySQL clients
[client]
password = password
port = 3306
socket = /var/lib/mysql/mysql.sock
# Here follows entries for some specific programs
# The MySQL server
[mysqld]
port = 3306
socket = /var/lib/mysql/mysql.sock
skip-locking
key_buffer = 16M
max_allowed_packet = 1M
table_cache = 64
sort_buffer_size = 512K
net_buffer_length = 8K
myisam_sort_buffer_size = 8M
Running Suse Linux Enterprise Server 9
# mysql -V
mysql Ver 12.22 Distrib 4.0.18, for suse-linux (i686)
# mysql start
ERROR 2002: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
I have checked /var/lib/mysql and there is no mysql.sock. I created one with full permissions.
my.cnf
-------------------------------------
# The following options will be passed to all MySQL clients
[client]
password = password
port = 3306
socket = /var/lib/mysql/mysql.sock
# Here follows entries for some specific programs
# The MySQL server
[mysqld]
port = 3306
socket = /var/lib/mysql/mysql.sock
skip-locking
key_buffer = 16M
max_allowed_packet = 1M
table_cache = 64
sort_buffer_size = 512K
net_buffer_length = 8K
myisam_sort_buffer_size = 8M
![]() |
•
•
•
•
•
•
•
•
DaniWeb MySQL Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
ad advertising algos architecture backup beta business centro crash daniweb database dell development doubleclick enterprise fortitude google hope internet linux longhorn mail microsoft mmorpg news novell open qmail red hat rhel server smtp software source struggle suse trial-and-error victory windows windows server
- mysql_query(): supplied argument is not a valid MySQL-Link (PHP)
- how do I connect to MySQL server which is firewall protected? (Python)
- mysql errors, from submit.php and index.php (PHP)
- HTML Form post to PHP? (PHP)
- Can't connect error on createuser (PHP)
- Can't connect to local MySQL server (MySQL)
Other Threads in the MySQL Forum
- Previous Thread: passing variables threw query
- Next Thread: help!! update mysql problem


Linear Mode