View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 4 posts ] 
Print view Previous topic   Next topic  
Author Message
Search for:
PostPosted: Mon Apr 24, 2006 8:10 pm 
Offline
Joined: Wed Feb 15, 2006 1:15 pm
Posts: 9
My root directory was filling up, so I moved /var and /tmp to their own partitions to free up some space. Now mysql is hosed. I'm not conversant in mysql, so I don't know how to fix it.

I suspect that I goofed up file ownership or permissions in either /var or /tmp, but I don't know where I went astray. Can some kind soul point me in the right direction? I'm running knoppmyth R5A16.

Thanks,

-Jeff
(more details below)

When I run 'mythbackend', I get the following:

root@mythtv:/var/run# mysql
ERROR 2002: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
root@mythtv:/var/run# mythbackend
2006-04-24 19:07:51.541 New DB connection, total: 1
2006-04-24 19:07:51.544 Unable to connect to database!
2006-04-24 19:07:51.544 Driver error was [1/2002]:
QMYSQL3: Unable to connect
Database error was:
Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)

2006-04-24 19:07:51.549 Failed to init MythContext, exiting.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Apr 25, 2006 4:40 am 
Offline
Joined: Tue Feb 21, 2006 2:25 pm
Posts: 39
So mysql isn't starting. First, try a manual start as root to see if any messages are revealed:

Code:
/etc/init.d/mysql start


Also take a look at the mysql log files - /var/log/mysql/* and /var/log/mysql.* - to see if any clues exist.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Apr 25, 2006 6:40 pm 
Offline
Joined: Wed Feb 15, 2006 10:06 am
Posts: 2
I just moved my /var also...but I used the command cp -a which preserves all permssions (-a stands for archive). All seems to be working. Try that instead perhaps, or have you deleted the old /var by now?


Top
 Profile  
 
 Post subject:
PostPosted: Wed Apr 26, 2006 2:07 am 
Offline
Joined: Mon Jun 21, 2004 5:28 am
Posts: 700
Location: Germany
If your root directory is filling up, it may be because you have a large sql log file (mine hit over 2G before my system crashed). Take a look in /var/log/mysql/ and see if there are any unusally large log files. I deleted mine (mysql.log I think) and linked it to /dev/null. This takes a reboot to take affect and free up disk space.

Note: You might want to check the log file to see what is filling it up. In my case, I was doing repeated music scans of ~300 albums as I was re-organizing my collection. Each sql query was logged and never cleaned up.

You can also do a search for "logrotate". There is a post somewhere on how to set it up. I took the easier route and got rid of the log file all together as it didn't seem to contain anything useful.

Allen

_________________
ASUS AT3N7A-I (Atom 330)
TBS 8922 PCI (DVB-S2)


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 


All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 1 guest


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
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu