Contact SalesSitemapCustomer Login

Warning: mysql_connect() [/function.mysql-connect]: Can't connect to MySQL server on 'coredb-01.spry.com' (13) in [path]/vpslink_template_files/contextual_ads.inc.php on line 56

Go Back   VPSlink Forums > Operating Systems > Fedora

Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 11-02-2006, 04:12 PM
Junior Member
 
Join Date: Nov 2006
Posts: 4
Default Problem with MySQL after Fedora LAMP Install

After upgrading to VPS 3, I chose the Fedora LAMP install, after the installation everything looks good, except when I try to run MySQL in any way, I get:

Code:
[root@rudedwarf mysql]# mysql -u root
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
And when I go to /var/lib/mysql/ there isnt anything there....

You can check out my phpinfo file here, if that helps:

www.eternalheroes.org/info.php

Thanks for any help you can give!
Reply With Quote
  #2 (permalink)  
Old 11-02-2006, 04:33 PM
Senior Member
 
Join Date: Jun 2006
Location: Guadalajara, Mexico
Posts: 541
Default

i don't know about those default installations but maybe it just didn't created the mysql table, try to start it with '/etc/init.d/mysql start' and then follow the instructions when it complains
__________________
pablasso.com (spanish)
Reply With Quote
  #3 (permalink)  
Old 11-02-2006, 07:06 PM
Junior Member
 
Join Date: Oct 2006
Posts: 21
Default

what shows in your mysql error log?

tail -f /var/lib/mysql/.... .er ??
Reply With Quote
  #4 (permalink)  
Old 11-03-2006, 04:16 PM
Junior Member
 
Join Date: Nov 2006
Posts: 4
Default

Quote:
Originally Posted by freevps
what shows in your mysql error log?

tail -f /var/lib/mysql/.... .er ??

the folder is empty...there is no log file there

Last edited by nate; 11-03-2006 at 04:20 PM.
Reply With Quote
  #5 (permalink)  
Old 11-03-2006, 04:24 PM
Junior Member
 
Join Date: Nov 2006
Posts: 4
Default

Quote:
Originally Posted by pablasso
i don't know about those default installations but maybe it just didn't created the mysql table, try to start it with '/etc/init.d/mysql start' and then follow the instructions when it complains

awesome, i got it:

[root@rudedwarf init.d]# ./mysqld start

that did it!

thanks guys for the help, much appreciated
Reply With Quote
  #6 (permalink)  
Old 11-03-2006, 04:41 PM
Senior Member
 
Join Date: Aug 2006
Posts: 1,021
Default

Try the following:

---------------------
# DEBUG=10
# export DEBUG
# /etc/init.d/mysql start
---------------------

Post back the response if what it gives you isn't obvious.
Reply With Quote
  #7 (permalink)  
Old 11-03-2006, 04:43 PM
Senior Member
 
Join Date: Aug 2006
Posts: 1,021
Default

Quote:
Originally Posted by nate
[root@rudedwarf init.d]# ./mysqld start
mysqld instead of mysql within the /etc/init.d directory? Hmm. Something seems odd about that. Oh well, as long as it works.
Reply With Quote
  #8 (permalink)  
Old 11-04-2006, 12:17 AM
Administrator
 
Join Date: Oct 2006
Posts: 29
Default

I think that the Fedora LAMP install doesn't have mysql turned on by default. You can check this by typing chkconfig --list on the command line. Look for the line that lists mysql to see if its turned on. If you want to have it turn on automatically you can enter chkconfig --level <level> mysqld on. Substituting <level> with the appropriate runlevel for your server.
__________________
Andrew
VSPLink Support
Reply With Quote
  #9 (permalink)  
Old 11-02-2008, 04:20 AM
Junior Member
 
Join Date: Nov 2008
Posts: 15
Default

This would have been helpful info for me - I just got Fedora LAMP installed on my OpenVZ server, and I get the same message OP got - but chkconfig does not exist.
Reply With Quote
  #10 (permalink)  
Old 11-02-2008, 06:58 PM
Senior Member
 
Join Date: Jun 2008
Location: California
Posts: 253
Default

Quote:
Originally Posted by factorial View Post
This would have been helpful info for me - I just got Fedora LAMP installed on my OpenVZ server, and I get the same message OP got - but chkconfig does not exist.
Are you logged in as root?
Try using the full path: /sbin/chkconfig

Otherwise install it with yum
Code:
yum install chkconfig
__________________
The Universes - Server Management, Hosting, & Consulting
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



All times are GMT. The time now is 11:26 AM.


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.2.0