Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 05-26-2003, 12:14 AM   #1
Registered: May 2003
Location: Vancouver
Distribution: RH9
Posts: 100

Rep: Reputation: 15
MySQL problems

I'm having a bit of a trouble getting tikiwiki up and running. My main problem is that I'm using RH9 with the default apache, php and mysql installed. Now tikiwiki wants to use mysql 4.0 and RH9 ships with 3.xx. So what I did was download the binary install of MySQL and installed it. I didn't remove the MySQL 3.xx though. When I go to the mysql directoty in /usr/local and tell it to ./bin/mysql_safe &, everything is ok. It says it starts up and if I ps -aux | grep mysql, its all there. But when I try to connect to the server either using mysqladmin or phpmyadmin it gives my an error of : "Access denied for user: 'root@localhost' (Using password: NO)"

So I checked the documentation and it told me that I had to set a password. So... inside the mysql directory it typed :"./bin/mysqladmin -u root password 'new-password'

The server then immediatly replies with the error
"./bin/mysqladmin: connect to server at 'localhost' failed
error: 'Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)'"

So I don't understand how it can't connect even though the mysql daemon is running.
Old 05-26-2003, 08:35 AM   #2
Registered: Mar 2003
Location: Macondo
Distribution: Mandrake 9.1, 10.1, SuSE 8.1 pro, 10.1, Red Hat 8.0/9.0
Posts: 380

Rep: Reputation: 30
What happens if you do a start with safestartmysql anf then just type in mysql?

Do you get logged in, or you do you get an error? If so, which error?


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
ERROR 2002: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql. NoviceW Linux - Networking 17 09-17-2014 03:13 PM
ERROR 2002: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql. suziecorbett Linux - Software 8 10-09-2008 02:52 AM
Problems with MySQL on SuSE: Can't Connect (/var/lib/mysql/mysql.sock) neocookie Linux - Software 8 02-08-2008 12:48 AM
mysql error Can't connect to local MySQL server through socket '/var/lib/mysql/mysql. Dannux Linux - Software 3 03-24-2006 09:44 AM
DBD::MySQL + MySQL install problems. Elleroth Linux - Software 4 03-24-2006 07:53 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:26 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration