473,770 Members | 5,136 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

MySQL.sock

noob here
I just got slack9.0 running about a week ago.
My proble is that I cant connect to mysql
This is the error it gives me.
---------------------------------------------------------------
ERROR 2002: Can't connect to local MySQL server through socket
'/var/run/mysql/mysql.sock' (2)
---------------------------------------------------------------
I'm pretty new still to linux and thouroghly confused.
I dont know where to get this file.
And I cant find my mysql error log file.. sniffle sniffle
some one please help.
David

Jul 19 '05 #1
4 6640
For what its worth, I have exactly the same problem on redhat9
I put a message out and was told by someone who's got it working
to get the manual and work through the setup.

I got the manual in pdf format from www.mysql.com, am in the process
of configuring it now.

Alex

p.s. dont send any riply to the e-mail address as it has 50megs
of ms viruses which need removing before I can start using it again.

Alex

blizeach wrote:
noob here
I just got slack9.0 running about a week ago.
My proble is that I cant connect to mysql
This is the error it gives me.
---------------------------------------------------------------
ERROR 2002: Can't connect to local MySQL server through socket
'/var/run/mysql/mysql.sock' (2)
---------------------------------------------------------------
I'm pretty new still to linux and thouroghly confused.
I dont know where to get this file.
And I cant find my mysql error log file.. sniffle sniffle
some one please help.
David


Jul 19 '05 #2
For what its worth, I have exactly the same problem on redhat9
I put a message out and was told by someone who's got it working
to get the manual and work through the setup.

I got the manual in pdf format from www.mysql.com, am in the process
of configuring it now.

Alex

p.s. dont send any riply to the e-mail address as it has 50megs
of ms viruses which need removing before I can start using it again.

Alex

blizeach wrote:
noob here
I just got slack9.0 running about a week ago.
My proble is that I cant connect to mysql
This is the error it gives me.
---------------------------------------------------------------
ERROR 2002: Can't connect to local MySQL server through socket
'/var/run/mysql/mysql.sock' (2)
---------------------------------------------------------------
I'm pretty new still to linux and thouroghly confused.
I dont know where to get this file.
And I cant find my mysql error log file.. sniffle sniffle
some one please help.
David


Jul 19 '05 #3
On Thu, 20 Nov 2003 12:47:50 +0000, clara wrote:
For what its worth, I have exactly the same problem on redhat9
I put a message out and was told by someone who's got it working
to get the manual and work through the setup.

I got the manual in pdf format from www.mysql.com, am in the process
of configuring it now.

Alex

p.s. dont send any riply to the e-mail address as it has 50megs
of ms viruses which need removing before I can start using it again.

Alex

blizeach wrote:
noob here
I just got slack9.0 running about a week ago.
My proble is that I cant connect to mysql
This is the error it gives me.
---------------------------------------------------------------
ERROR 2002: Can't connect to local MySQL server through socket
'/var/run/mysql/mysql.sock' (2)
---------------------------------------------------------------
I'm pretty new still to linux and thouroghly confused.
I dont know where to get this file.
And I cant find my mysql error log file.. sniffle sniffle
some one please help.
David


Hey man hope I'm not to late.
What I figured out is that you have to change users to the mysql user
by the su command.
su mysql
Then run the build db script
mysql_install_d b
You should be able to just run this from the console np without changing
directories. If not just do a find on it.
After that type exit to go back to being the root user and
I think in redhat the path is the same go to /etc/rc.d and there should
be a file in there called rc.mysqld or rc.mysqld.new or mysqld.server.
Either way if not there find for them again.
When found chmod the file with chmod 755.
This makes it executable.
After that you can run the file like this from the console
../rc.mysqld
or ./filename what ever it may be.
whats cool is if redhat is like slack that file will be in the etc/rc.d
dir and when you chmod it it will start at boot time.
Hope this helped man. Whats funny is I thought I was missing that file
mysql.sock but what I found out was the server deamon creats the file on
the fly at startup.
Hope I helped... let me know what you did if you dont mind.
Take care and Happy Thanksgiving everyone.

David Dalrymple

Jul 19 '05 #4
On Thu, 20 Nov 2003 12:47:50 +0000, clara wrote:
For what its worth, I have exactly the same problem on redhat9
I put a message out and was told by someone who's got it working
to get the manual and work through the setup.

I got the manual in pdf format from www.mysql.com, am in the process
of configuring it now.

Alex

p.s. dont send any riply to the e-mail address as it has 50megs
of ms viruses which need removing before I can start using it again.

Alex

blizeach wrote:
noob here
I just got slack9.0 running about a week ago.
My proble is that I cant connect to mysql
This is the error it gives me.
---------------------------------------------------------------
ERROR 2002: Can't connect to local MySQL server through socket
'/var/run/mysql/mysql.sock' (2)
---------------------------------------------------------------
I'm pretty new still to linux and thouroghly confused.
I dont know where to get this file.
And I cant find my mysql error log file.. sniffle sniffle
some one please help.
David


Hey man hope I'm not to late.
What I figured out is that you have to change users to the mysql user
by the su command.
su mysql
Then run the build db script
mysql_install_d b
You should be able to just run this from the console np without changing
directories. If not just do a find on it.
After that type exit to go back to being the root user and
I think in redhat the path is the same go to /etc/rc.d and there should
be a file in there called rc.mysqld or rc.mysqld.new or mysqld.server.
Either way if not there find for them again.
When found chmod the file with chmod 755.
This makes it executable.
After that you can run the file like this from the console
../rc.mysqld
or ./filename what ever it may be.
whats cool is if redhat is like slack that file will be in the etc/rc.d
dir and when you chmod it it will start at boot time.
Hope this helped man. Whats funny is I thought I was missing that file
mysql.sock but what I found out was the server deamon creats the file on
the fly at startup.
Hope I helped... let me know what you did if you dont mind.
Take care and Happy Thanksgiving everyone.

David Dalrymple

Jul 19 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
2319
by: MJL | last post by:
This is a mysql/php question (but a little more on the mysql side.) The two are so closely related these days, I thought it would be ok to ask here. I installed on my Suse Linux system mysql 4.0 using an rpm. I also installed all of the appropriate PHP 4.3 and Apache 2.0 rpms. I set my socket path in my.cnf to /tmp/mysql.sock. I then, just to be safe and thorough, copied this my.cnf to ~/.my.cnf and to the /var/lib/mysql directory...
0
6528
by: JL | last post by:
Platform: Linux Red Hat RHEL 3 (and red hat 9) Installed MySQL from source. As a matter of fact, installed all LAMPS from source, and the mysql socket file was arranged in a place other than /tmp/mysql.sock. Let's say, /opt/mysql_root/sock/mysql.sock. Installed DBI without any problem. In /etc/my.cnf there are lines as ----- ----- -----
0
1863
by: Oliver Etzel - GoodnGo.COM | last post by:
Hello all, after Installing mysql I started the mysql daemon.. The I tried to log in to my mysql database and got the message could not find mysql.sock in /tmp. In the mysql-configuration file /etc/my.cnf (in my redhat system 8.0) I changed the place for the socket file from "socket=/var/lib/mysql/mysql.sock" to "socket=/tmp/mysql.sock".
0
1458
by: Oliver Etzel - GoodnGo.COM | last post by:
Hello all, after Installing mysql I started the mysql daemon.. The I tried to log in to my mysql database and got the message could not find mysql.sock in /tmp. In the mysql-configuration file /etc/my.cnf (in my redhat system 8.0) I changed the place for the socket file from "socket=/var/lib/mysql/mysql.sock" to "socket=/tmp/mysql.sock".
0
1451
by: Oliver Etzel - GoodnGo.COM | last post by:
Hello all, after Installing mysql I started the mysql daemon.. Then I tried to log in to my mysql database and got the message could not find mysql.sock in /tmp. In the mysql-configuration file /etc/my.cnf (in my redhat system 8.0) I changed the place for the socket file from "socket=/var/lib/mysql/mysql.sock" to "socket=/tmp/mysql.sock". That doesn´t work.
1
121535
by: jiing | last post by:
Now let me describe what I have done and my purpose: Originally, I want to user ports to install phpBB But I found that phpBB doesn't support mysql 5.x (but the ports installed mySQL 5.0.0 alpha) so I deinstall mysql5-server and mysql5-client And then I install mysql41-server and mysql41-client on FreeBSD 5.3 by ports but now , mysql is not workable
1
3379
by: jlee | last post by:
I'm pretty much a newbie on mysql, and I need some help. I am running mysql Ver 12.22 Distrib 4.0.24, for portbld-freebsd5.4 (i386) on a server hosting an active website. The site's developer uses his own php shopping cart to receive customer orders. The configuration was done via cPanel with no external modifications - which produced no protests when built, ran and connected with no
2
2710
by: balavignesh | last post by:
Hello frends! I want to connect with mysql using php. In my mysql "my.cnf" file i have specified the socket for both client and server as "/usr/local/mysql/var/mysql.sock" In my "php.ini" file, for mysql socket i have specified
2
18770
by: Michal Stankoviansky | last post by:
Hi Environment: some version of Slackware, Apache 2.2.x, PHP 5.1.5, MySQL 5.0.24. The issue: I'm using Zend Framework Zend_Db component (which uses PDO). We have 2 mysql socket related settings in php.ini: mysql.default_socket = /var/run/mysql/mysql.sock mysqli.default_socket = /var/run/mysql/mysql.sock
5
2635
by: scorpionbilli | last post by:
Hi, The local mysql server is running on my Macbook. I can access it through the console client: $ mysql -u root Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 4 Server version: 5.0.45 MySQL Community Server (GPL)
0
9592
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10230
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10058
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8886
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7416
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6678
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5450
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3576
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2817
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.