472,353 Members | 1,373 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,353 software developers and data experts.

Can't connect to local MySQL

I have downloaded the source code for mysql-3.23.58. I unzip and untarred
it and ran

$ ./configure --prefix=/usr/local --localstatedir=/usr/local/mysql
$ make
$ make install
$ ./scripts/mysql_install_db

I have a user mysql, and group mysql.
I ran
$ chown -R root /usr/local/mysql
$ chgrp -R mysql /usr/local/mysql

I try to run
$ ./scripts/safe_mysqld --user=mysql &

and get...
Can't connect to local MySQL server through socket '/tmp/mysql.sock'

/tmp/mysql.sock exists.

Is there anyting major I have overlooked? I have installed from source
before but never really had too many problems.

Just throw out some ideas to me. I am looking for a brain-storm of possible
fixes.

Thanks.
Jul 20 '05 #1
2 1465
You run as mysql, but start as root. Who owns /tmp/mysql.sock? Is it
writeable by mysql?

-Misk

Sean Berry wrote:
I have downloaded the source code for mysql-3.23.58. I unzip and untarred
it and ran

$ ./configure --prefix=/usr/local --localstatedir=/usr/local/mysql
$ make
$ make install
$ ./scripts/mysql_install_db

I have a user mysql, and group mysql.
I ran
$ chown -R root /usr/local/mysql
$ chgrp -R mysql /usr/local/mysql

I try to run
$ ./scripts/safe_mysqld --user=mysql &

and get...
Can't connect to local MySQL server through socket '/tmp/mysql.sock'

/tmp/mysql.sock exists.

Is there anyting major I have overlooked? I have installed from source
before but never really had too many problems.

Just throw out some ideas to me. I am looking for a brain-storm of possible
fixes.

Thanks.

--
================================================== ======================
Missaka Wijekoon (a.k.a. Misk) mw*******@RemoveThis.villageEdocs.com
Sr. Software Engineer http://www.villageEdocs.com
VillageEdocs
================================================== ======================
Jul 20 '05 #2
Sean Berry wrote:
Can't connect to local MySQL server through socket '/tmp/mysql.sock'


Have you tried this?

http://dev.mysql.com/doc/mysql/en/Ca...to_server.html
Jul 20 '05 #3

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

Similar topics

1
by: webhead74 | last post by:
Hi, I've worked on this for a couple of days & can't figure out what I'm doing wrong. I'm trying to connect to a remote AS400 database using odbc...
1
by: Peter Nikolaidis | last post by:
Greetings, I am attempting to get MySQLdb 0.9.2 installed on Mac OS 10.2 with a Fink distribution of Python 2.2.2. I have seen only a few posts...
0
by: Bill Hernandez | last post by:
Hi, I've been writing software on the mac since 1987, but am brand new at unix/php/mysql, and that's where I'm headed so I'm reading everything I...
0
by: Ian | last post by:
Dear All, I just downloaded & installed MYSQL. It seemed to work and I can start it and enter my password and change a directory but that is...
3
by: Pugi! | last post by:
On a freshly installed Fedora C3 (incl. webserver apache php mysql) i get the following problem when connecting to mysql through a browser...
1
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...
1
by: linux | last post by:
Sorry if this is a really dumb question. I am trying to connect to our remote MySQL server (which is running just fine). I have a perl script...
5
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...
1
by: sasimca007 | last post by:
Hi friends, I installed mysql in ubuntu but, i don't know how to connect to that mysql. Actually we connect to postgresql by psql...
1
by: Kemmylinns12 | last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and...
0
by: Naresh1 | last post by:
What is WebLogic Admin Training? WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge...
2
by: Matthew3360 | last post by:
Hi, I have a python app that i want to be able to get variables from a php page on my webserver. My python app is on my computer. How would I make it...
0
by: AndyPSV | last post by:
HOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and on my computerHOW CAN I CREATE AN AI with an .executable...
0
hi
by: WisdomUfot | last post by:
It's an interesting question you've got about how Gmail hides the HTTP referrer when a link in an email is clicked. While I don't have the specific...
0
by: Matthew3360 | last post by:
Hi, I have been trying to connect to a local host using php curl. But I am finding it hard to do this. I am doing the curl get request from my web...
0
by: Carina712 | last post by:
Setting background colors for Excel documents can help to improve the visual appeal of the document and make it easier to read and understand....
0
BLUEPANDA
by: BLUEPANDA | last post by:
At BluePanda Dev, we're passionate about building high-quality software and sharing our knowledge with the community. That's why we've created a SaaS...
0
by: Rahul1995seven | last post by:
Introduction: In the realm of programming languages, Python has emerged as a powerhouse. With its simplicity, versatility, and robustness, Python...

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.