Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
 Post subject: Installing MySQL
PostPosted: Wed Jun 18, 2003 2:31 pm 
Offline
Junior Member

Joined: Tue Jun 17, 2003 2:18 pm
Posts: 47
Website: http://www.clan-intrepid.com
AOL: mshine311
Well, I want to install mysql because most of my site are database driven.. so I installed with 'apt-get install mysql-server' and it installs and I go through the setup screens with debconf and after it finishes it tries to start up the mysql server with 'mysqld' and it fails to start. Any ideas?


Top
   
 Post subject:
PostPosted: Wed Jun 18, 2003 2:34 pm 
Offline
Linode Staff
User avatar

Joined: Tue Apr 15, 2003 6:24 pm
Posts: 3090
Website: http://www.linode.com/
Location: Galloway, NJ
I did "apt-get install mysql-server" and answered the questions - it booted right up.

Is this the hostname issue again?


Top
   
 Post subject:
PostPosted: Wed Jun 18, 2003 2:38 pm 
Offline
Junior Member

Joined: Tue Jun 17, 2003 2:18 pm
Posts: 47
Website: http://www.clan-intrepid.com
AOL: mshine311
hehe hmm... i removed it and going to take another shot at it..

...

yep that worked.. im not sure what the problem was.

EDIT:
well after trying to setup root password, it gives me the following error:

PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !
This is done with:
/usr/bin/mysqladmin -u root -p password 'new-password'
/usr/bin/mysqladmin -u root -h li-24 -p password 'new-password'
See the manual for more instructions.

The first command worked just fine, but after I tried to do the second command I get this error:

mysqladmin: connect to server at 'li-24' failed
error: 'Can't connect to MySQL server on 'li-24' (111)'
Check that mysqld is running on li-24 and that the port is 3306.
You can check this by doing 'telnet li-24 3306'

This may be a hostname issue.


Top
   
 Post subject:
PostPosted: Wed Jun 18, 2003 3:15 pm 
Offline
Linode Staff
User avatar

Joined: Tue Apr 15, 2003 6:24 pm
Posts: 3090
Website: http://www.linode.com/
Location: Galloway, NJ
Execute this command:

EDIT (append, not overwrite)

echo "search members.linode.com" >> /etc/resolv.conf

That should fix it.

I should probably add that to all the distros... DHCP clients are supposed to pick this info up, but it doesn't seem to work in all setups..

-Chris


Top
   
 Post subject:
PostPosted: Wed Jun 18, 2003 8:47 pm 
Offline
Junior Member

Joined: Tue Jun 17, 2003 2:18 pm
Posts: 47
Website: http://www.clan-intrepid.com
AOL: mshine311
Well after I can login into mysql and run some commands and view the databases/tables, I was sure it was working.. now that I have sendmail installed I want to install a webmail program so that I can check my mail. I decided to go ahead with horde. I ran 'apt-get install horde' and it downloads and installs.. after it installs it tries to conenct to the mysql database and gives me the following error:

Error when trying to connect to the mysql database.
This error can occur if you have no database to connect to, or
if the password was incorrect.
use: dpkg-reconfigure -plow packagename to reconfigure.
Error when trying to connect to the mysql database.
This error can occur if you have no database to connect to, or
if the password was incorrect.
use: dpkg-reconfigure -plow packagename to reconfigure.

I tried running the command they gave me and just exits out with an error.


Top
   
 Post subject:
PostPosted: Wed Jun 18, 2003 8:59 pm 
Offline
Junior Member

Joined: Tue Jun 17, 2003 2:18 pm
Posts: 47
Website: http://www.clan-intrepid.com
AOL: mshine311
if there is a better webmail program out there let me know.. i know there is openwebmail .. should i use that one?


Top
   
 Post subject:
PostPosted: Wed Jun 18, 2003 11:05 pm 
Offline
Linode Staff
User avatar

Joined: Tue Apr 15, 2003 6:24 pm
Posts: 3090
Website: http://www.linode.com/
Location: Galloway, NJ
sec39 wrote:
if there is a better webmail program out there let me know.. i know there is openwebmail .. should i use that one?


horde stuff is kind of hard to install (from source, anyhow).. lots of perl deps..

SquirrelMail gets good reviews.. and it's PHP based.

http://freshmeat.net/projects/squirrelmail/


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group